<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Kommentare zu: Bilder links rechts scrollen</title>
	<atom:link href="http://www.flashdevelop.de/actionscript-3/bilder-links-rechts-scrollen.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.flashdevelop.de/actionscript-3/bilder-links-rechts-scrollen.html</link>
	<description>a fool with a tool is still a fool</description>
	<lastBuildDate>Mon, 28 Feb 2011 22:16:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Von: Birger</title>
		<link>http://www.flashdevelop.de/actionscript-3/bilder-links-rechts-scrollen.html/comment-page-1#comment-71</link>
		<dc:creator>Birger</dc:creator>
		<pubDate>Thu, 10 Jun 2010 10:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashdevelop.de/?p=286#comment-71</guid>
		<description>Das ist ja echt ne coole Sache. Das werde ich bei Gelegenheit gleich auf meiner Seite testen. Dann kann ich endlich auch Produkte platzsparend anzeigen.
Viele Dank 
birger</description>
		<content:encoded><![CDATA[<p>Das ist ja echt ne coole Sache. Das werde ich bei Gelegenheit gleich auf meiner Seite testen. Dann kann ich endlich auch Produkte platzsparend anzeigen.<br />
Viele Dank<br />
birger</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Stefan</title>
		<link>http://www.flashdevelop.de/actionscript-3/bilder-links-rechts-scrollen.html/comment-page-1#comment-65</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 12:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashdevelop.de/?p=286#comment-65</guid>
		<description>Hey, vielen Dank! Das ging ja fix! Werde ich gleich mal ausprobieren :-)</description>
		<content:encoded><![CDATA[<p>Hey, vielen Dank! Das ging ja fix! Werde ich gleich mal ausprobieren <img src='http://www.flashdevelop.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: A. Khong</title>
		<link>http://www.flashdevelop.de/actionscript-3/bilder-links-rechts-scrollen.html/comment-page-1#comment-64</link>
		<dc:creator>A. Khong</dc:creator>
		<pubDate>Wed, 10 Mar 2010 11:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashdevelop.de/?p=286#comment-64</guid>
		<description>So oder ähnlich kannst du am Randbereich langsamer werden.
&lt;pre class=&quot;brush:as3&quot;&gt;/**
 * Lässt band_mc in Richtung _dir bewegen
 */
function update(evt:Event):void
{
	//Begrenzung für links und rechts
	var maxLeft:Number = left_btn.width&gt;&gt;2 + left_btn.x;
	var maxRight:Number = right_btn.x - (right_btn.width&gt;&gt;2);
	
	//An den Randbereichen langsamer werden
	var dx:Number;
	if (_dir &lt; 0)
	{
		dx = (band_mc.x + band_mc.width) - maxRight;
		if (dx &lt; 50) _speed = 100 * dx / band_mc.width;
	}
	else if (_dir &gt; 0)
	{
		dx = maxLeft - band_mc.x;
		if (dx &lt; 50) _speed = 100 * dx / band_mc.width; 
	}
	else
	{
		_speed = 10;
	}
	
	//band_mc in Richung _dir mit _speed bewegen
	band_mc.x += (_dir * _speed);
	
	//Auf maximale Werte zurücksetzen
	if (band_mc.x &gt; maxLeft)
		band_mc.x = maxLeft;
		
	if (band_mc.x + band_mc.width &lt; maxRight)
		band_mc.x = maxRight - band_mc.width;
		
}&lt;/pre&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>So oder ähnlich kannst du am Randbereich langsamer werden.<br />
/**<br />
 * Lässt band_mc in Richtung _dir bewegen<br />
 */<br />
function update(evt:Event):void<br />
{<br />
	//Begrenzung für links und rechts<br />
	var maxLeft:Number = left_btn.width>>2 + left_btn.x;<br />
	var maxRight:Number = right_btn.x - (right_btn.width>>2);</p>
<p>	//An den Randbereichen langsamer werden<br />
	var dx:Number;<br />
	if (_dir < 0)<br />
	{<br />
		dx = (band_mc.x + band_mc.width) - maxRight;<br />
		if (dx < 50) _speed = 100 * dx / band_mc.width;<br />
	}<br />
	else if (_dir > 0)<br />
	{<br />
		dx = maxLeft - band_mc.x;<br />
		if (dx < 50) _speed = 100 * dx / band_mc.width;<br />
	}<br />
	else<br />
	{<br />
		_speed = 10;<br />
	}</p>
<p>	//band_mc in Richung _dir mit _speed bewegen<br />
	band_mc.x += (_dir * _speed);</p>
<p>	//Auf maximale Werte zurücksetzen<br />
	if (band_mc.x > maxLeft)<br />
		band_mc.x = maxLeft;</p>
<p>	if (band_mc.x + band_mc.width < maxRight)<br />
		band_mc.x = maxRight - band_mc.width;</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Von: Stefan</title>
		<link>http://www.flashdevelop.de/actionscript-3/bilder-links-rechts-scrollen.html/comment-page-1#comment-63</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 10:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.flashdevelop.de/?p=286#comment-63</guid>
		<description>Super, danke. Wie kann ich das dahingehend erweitern, dass das Ende der Seiten mit einem weichen Abbremsen erreicht wird? :-)</description>
		<content:encoded><![CDATA[<p>Super, danke. Wie kann ich das dahingehend erweitern, dass das Ende der Seiten mit einem weichen Abbremsen erreicht wird? <img src='http://www.flashdevelop.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

