<?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>Comments on: Making a simple button using Tweens and Sprites in ActionScript 3</title>
	<atom:link href="http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Sat, 04 Feb 2012 08:16:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: weindians</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-6160</link>
		<dc:creator>weindians</dc:creator>
		<pubDate>Wed, 02 Mar 2011 20:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-6160</guid>
		<description>i have some difficulty with on firefox</description>
		<content:encoded><![CDATA[<p>i have some difficulty with on firefox</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Dremann</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-6041</link>
		<dc:creator>Zachary Dremann</dc:creator>
		<pubDate>Sat, 05 Feb 2011 22:28:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-6041</guid>
		<description>@colin

alpha ranges from 0 to 1 in as3, not from 0 to 100 like in as2.

you should be setting destArray[i].alpha to 0.5, not 50.</description>
		<content:encoded><![CDATA[<p>@colin</p>
<p>alpha ranges from 0 to 1 in as3, not from 0 to 100 like in as2.</p>
<p>you should be setting destArray[i].alpha to 0.5, not 50.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Dremann</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-6040</link>
		<dc:creator>Zachary Dremann</dc:creator>
		<pubDate>Sat, 05 Feb 2011 22:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-6040</guid>
		<description>One line, actually. 

var testButton:simpleButton =simpleButton(addChild(new simpleButton (&quot;test&quot;)));

that works because add child returns the display object you are adding to the display list. You have to cast it back to simpleButton because addChild returns it as an object of type DisplayObject.

Btw, generally, classes are done with capitals as the first letter, to differentiate them from variables.</description>
		<content:encoded><![CDATA[<p>One line, actually. </p>
<p>var testButton:simpleButton =simpleButton(addChild(new simpleButton (&#8220;test&#8221;)));</p>
<p>that works because add child returns the display object you are adding to the display list. You have to cast it back to simpleButton because addChild returns it as an object of type DisplayObject.</p>
<p>Btw, generally, classes are done with capitals as the first letter, to differentiate them from variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: colin</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-5851</link>
		<dc:creator>colin</dc:creator>
		<pubDate>Wed, 12 Jan 2011 07:07:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-5851</guid>
		<description>i &#039;m trying to figure out how to add a down state from and have multiple buttons interact to create a basic nav. in the base class i have. for (var i:int = 0; i &lt; destArray.length; i++) {
				var testButton:simpleButton = new simpleButton (destArray[i]);
				testButton.name = destArray[i];
				trace(testButton.name);
				addChild (testButton);
				destArray[i] = testButton;
				destArray[i].x = (i*80)+80;
				destArray[i].y = 300; 

				destArray[i].buttonMode = true;
				destArray[i].addEventListener(MouseEvent.CLICK, clickHandler);
			}
but if i try and add destArray[i].alpha = 50; for example it doesn&#039;t effect the buttons i create.  ideas?</description>
		<content:encoded><![CDATA[<p>i &#8216;m trying to figure out how to add a down state from and have multiple buttons interact to create a basic nav. in the base class i have. for (var i:int = 0; i &lt; destArray.length; i++) {<br />
				var testButton:simpleButton = new simpleButton (destArray[i]);<br />
				testButton.name = destArray[i];<br />
				trace(testButton.name);<br />
				addChild (testButton);<br />
				destArray[i] = testButton;<br />
				destArray[i].x = (i*80)+80;<br />
				destArray[i].y = 300; </p>
<p>				destArray[i].buttonMode = true;<br />
				destArray[i].addEventListener(MouseEvent.CLICK, clickHandler);<br />
			}<br />
but if i try and add destArray[i].alpha = 50; for example it doesn&#039;t effect the buttons i create.  ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KTLE</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-5127</link>
		<dc:creator>KTLE</dc:creator>
		<pubDate>Sun, 16 May 2010 11:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-5127</guid>
		<description>&lt;a href=&quot;#comment-4931&quot; rel=&quot;nofollow&quot;&gt;@jHaas&lt;/a&gt; 
Because you have not any object named Over. On the layer “Over” on the rectangle instance name box type &quot;Over&quot;.</description>
		<content:encoded><![CDATA[<p><a href="#comment-4931" rel="nofollow">@jHaas</a><br />
Because you have not any object named Over. On the layer “Over” on the rectangle instance name box type &#8220;Over&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denesh</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-5059</link>
		<dc:creator>Denesh</dc:creator>
		<pubDate>Thu, 06 May 2010 11:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-5059</guid>
		<description>Please put the Source files here so we can have demo on this .</description>
		<content:encoded><![CDATA[<p>Please put the Source files here so we can have demo on this .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jHaas</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-4931</link>
		<dc:creator>jHaas</dc:creator>
		<pubDate>Tue, 30 Mar 2010 19:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-4931</guid>
		<description>I get this error:

1119: Access of possibly undefined property Over through a reference with static type simpleButton.

at this source:

alphaOver=new Tween(this.Over,&quot;alpha&quot;,Strong.easeOut,this.Over.alpha,0,0.5,true);</description>
		<content:encoded><![CDATA[<p>I get this error:</p>
<p>1119: Access of possibly undefined property Over through a reference with static type simpleButton.</p>
<p>at this source:</p>
<p>alphaOver=new Tween(this.Over,&#8221;alpha&#8221;,Strong.easeOut,this.Over.alpha,0,0.5,true);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lala</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-4470</link>
		<dc:creator>lala</dc:creator>
		<pubDate>Tue, 01 Dec 2009 21:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-4470</guid>
		<description>&lt;a href=&quot;#comment-4058&quot; rel=&quot;nofollow&quot;&gt;@DavidC&lt;/a&gt; 
to set the positiong of testButton2, you need to specify testButton2:

testButton2.y = 100;

Thank for the toot :)</description>
		<content:encoded><![CDATA[<p><a href="#comment-4058" rel="nofollow">@DavidC</a><br />
to set the positiong of testButton2, you need to specify testButton2:</p>
<p>testButton2.y = 100;</p>
<p>Thank for the toot <img src='http://www.zedia.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DavidC</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-4058</link>
		<dc:creator>DavidC</dc:creator>
		<pubDate>Wed, 07 Oct 2009 04:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-4058</guid>
		<description>Thanks for posting this. I&#039;m new to AS3 and have what has to be a bonehead question. How do I place two (or more) of these buttons on the stage at the same time. I have everything working (but I needed to add a instance name of &quot;Over&#039; to the second sprite), but I can&#039;t seem to have two of these buttons appear at the same time. Here&#039;s what I thought I needed to use:

var testButton1:simpleButton = new simpleButton (&quot;DA&quot;);
addChild (testButton1);

var testButton2:simpleButton = new simpleButton (&quot;RD&quot;);
addChild (testButton2);
y = 100;

Thanks again for the great tutorial!</description>
		<content:encoded><![CDATA[<p>Thanks for posting this. I&#8217;m new to AS3 and have what has to be a bonehead question. How do I place two (or more) of these buttons on the stage at the same time. I have everything working (but I needed to add a instance name of &#8220;Over&#8217; to the second sprite), but I can&#8217;t seem to have two of these buttons appear at the same time. Here&#8217;s what I thought I needed to use:</p>
<p>var testButton1:simpleButton = new simpleButton (&#8220;DA&#8221;);<br />
addChild (testButton1);</p>
<p>var testButton2:simpleButton = new simpleButton (&#8220;RD&#8221;);<br />
addChild (testButton2);<br />
y = 100;</p>
<p>Thanks again for the great tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sokina</title>
		<link>http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/comment-page-1/#comment-3733</link>
		<dc:creator>Sokina</dc:creator>
		<pubDate>Mon, 22 Jun 2009 08:55:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/making-a-simple-button-using-tweens-and-sprites-in-actionscript-3/#comment-3733</guid>
		<description>I&#039;m a bit confused on the last section. I added the button on the stage. I made an actions layer and added the final script, but nothing happened. Can you please explain exactly the final steps please. I&#039;m new to AS3 and I&#039;m using Flash cs4. A demo file would be great.

Cheers</description>
		<content:encoded><![CDATA[<p>I&#8217;m a bit confused on the last section. I added the button on the stage. I made an actions layer and added the final script, but nothing happened. Can you please explain exactly the final steps please. I&#8217;m new to AS3 and I&#8217;m using Flash cs4. A demo file would be great.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>

