<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Learning ActionScript 3.0</title>
	<link>http://www.learningactionscript3.com</link>
	<description>A digital supplement for the O'Reilly book</description>
	<pubDate>Wed, 24 Feb 2010 04:04:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>Welcome</title>
		<link>http://www.learningactionscript3.com/2007/11/02/welcome/</link>
		<comments>http://www.learningactionscript3.com/2007/11/02/welcome/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 07:35:07 +0000</pubDate>
		<dc:creator>Rich and Zevan</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2007/11/02/welcome/</guid>
		<description><![CDATA[Welcome to the companion website for Learning ActionScript 3.0 (O&#8217;Reilly). Ideally, you have found your way here after acquiring a copy of the book, and you are looking for further information about material referenced therein. If you&#8217;re new to this site, please continue reading. If you are a veteran to these pages, thanks for coming [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to the companion website for <em>Learning ActionScript 3.0</em> (O&#8217;Reilly). Ideally, you have found your way here after acquiring a copy of the book, and you are looking for further information about material referenced therein. If you&#8217;re new to this site, please continue reading. If you are a veteran to these pages, thanks for coming back, and have fun exploring.</p>
<p> <a href="http://www.learningactionscript3.com/2007/11/02/welcome/#more-24" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2007/11/02/welcome/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Collecting Colors</title>
		<link>http://www.learningactionscript3.com/2010/02/24/collecting-colors/</link>
		<comments>http://www.learningactionscript3.com/2010/02/24/collecting-colors/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 04:04:38 +0000</pubDate>
		<dc:creator>Zevan</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[color occurence]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2010/02/24/collecting-colors/</guid>
		<description><![CDATA[Some of you may have seen these preliminary test images images on my flickr:


If your up for it &#8230;. i am working on collecting colors and words for use with this project &#8230; so watch the video (below) and go to the link (below) you will be able to make a contribution. 
LEARN ABOUT THE [...]]]></description>
			<content:encoded><![CDATA[<p>Some of you may have seen these preliminary test images images on my flickr:</p>
<p><img src="http://farm3.static.flickr.com/2736/4346776021_36406fb6e9.jpg" /><br />
<img src="http://farm3.static.flickr.com/2804/4347517212_81f66afa76.jpg" /></p>
<p>If your up for it &#8230;. i am working on collecting colors and words for use with this project &#8230; so watch the video (below) and go to the link (below) you will be able to make a contribution. </p>
<p>LEARN ABOUT THE TOOLS<br />
<a href="http://mtcanvas.com/11am_call/tool_vid.html" target = "blank">video, (may not all make sense but the tool is shown which is the important part)</a></p>
<p>POPULATE THE DB<br />
<a href="http://mtcanvas.com/co/data_pop.html" target=blank>population tool add some colors</a></p>
<p>I have a smart filter that checks for people doing weird things like curses etc&#8230; so don&#8217;t bother trying to do that.</p>
<p><embed type="application/x-shockwave-flash" width="500" height="375" flashvars="&amp;file=http://medialab-prado.es/mmedia/4/4465/4465.flv&amp;height=375&amp;width=&amp;autostart=false&amp;skin=http://medialab-prado.es/static/player/skin.swf&amp;frontcolor=ffffff&amp;lightcolor=cc9900&amp;controlbar=over&amp;stretching=fill&amp;image=http://medialab-prado.eshttp://medialab-prado.es/mmedia/4465/preview_image" allowfullscreen="true" src="http://medialab-prado.es/static/player/player.swf"></embed></p>
<p><a href="http://medialab-prado.es/article/taller_open_up">Additional info here, scroll down to see our presentation about the project</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2010/02/24/collecting-colors/feed/</wfw:commentRss>
<enclosure url="http://medialab-prado.es/mmedia/4/4465/4465.flv&amp;amp" length="65025032" type="video/x-flv" />
		</item>
		<item>
		<title>Processing Class at FMA</title>
		<link>http://www.learningactionscript3.com/2009/09/24/processing-class-at-fma/</link>
		<comments>http://www.learningactionscript3.com/2009/09/24/processing-class-at-fma/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 16:22:20 +0000</pubDate>
		<dc:creator>Zevan</dc:creator>
		
		<category><![CDATA[Happenings]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2009/09/24/processing-class-at-fma/</guid>
		<description><![CDATA[This Sunday I&#8217;m doing a free one day workshop in Processing. 
Processing is a gateway programming language. It helped me to ease my way into Java, C++ and OpenGL. Without Processing, learning those languages would have been much harder for me. Processing is also an amazing tool for prototyping and doing proof of concept tests.
The [...]]]></description>
			<content:encoded><![CDATA[<p>This Sunday I&#8217;m doing a free one day workshop in <a href="http://www.processing.com" target="blank">Processing</a>. </p>
<p>Processing is a gateway programming language. It helped me to ease my way into Java, C++ and OpenGL. Without Processing, learning those languages would have been much harder for me. Processing is also an amazing tool for prototyping and doing proof of concept tests.</p>
<p>The class itself is eleven weeks long but the first class is free. If you&#8217;d like to read more about it, or sign up for the whole eleven weeks check out this link:<br />
<a href="http://www.fmaonline.com/processing_class/"><br />
Processing Class at FMA</a></p>
<p>If you want to attend the free workshop, simply post a comment and you&#8217;ll be e-mailed a free pass for the class.</p>
<p>And if you haven&#8217;t seen <a href="http://processingjs.org/learning/ide">Processing.js</a> yet&#8230; check it out <a href="http://processingjs.org/learning/ide">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2009/09/24/processing-class-at-fma/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Inverse Kinematics in Flash CS4: FOTB&#8217;09</title>
		<link>http://www.learningactionscript3.com/2009/09/21/inverse-kinematics-in-flash-cs4-fotb09/</link>
		<comments>http://www.learningactionscript3.com/2009/09/21/inverse-kinematics-in-flash-cs4-fotb09/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 00:02:12 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2009/09/21/inverse-kinematics-in-flash-cs4-fotb09/</guid>
		<description><![CDATA[Over at LearningFlashCS4.com, I posted the files from my Flash on the Beach presentation on IK in Flash CS4 Pro. You can read about it here, and look for more posts on the subject in the future.
]]></description>
			<content:encoded><![CDATA[<p>Over at <a href="http://www.LearningFlashCS4.com">LearningFlashCS4.com</a>, I posted the files from my Flash on the Beach presentation on IK in Flash CS4 Pro. You can read about it <a href="http://www.learningflashcs4.com/2009/09/20/inverse-kinematics-in-flash-cs4-fotb09/">here</a>, and look for more posts on the subject in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2009/09/21/inverse-kinematics-in-flash-cs4-fotb09/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AS3 Tips, Tricks and Experiments</title>
		<link>http://www.learningactionscript3.com/2009/06/30/as3-tips-tricks-and-experiments/</link>
		<comments>http://www.learningactionscript3.com/2009/06/30/as3-tips-tricks-and-experiments/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 16:31:24 +0000</pubDate>
		<dc:creator>Zevan</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[actionsnippet]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2009/06/30/as3-tips-tricks-and-experiments/</guid>
		<description><![CDATA[Back in late October of last year I started up a new website called ActionSnippet.com. I created the site because I really enjoy reading code - I often skip all the paragraphs in a blog post and just go straight for the code.  A new code snippet is posted daily on ActionSnippet.com, usually with [...]]]></description>
			<content:encoded><![CDATA[<p>Back in late October of last year I started up a new website called <a href="http://actionsnippet.com" target="blank">ActionSnippet.com</a>. I created the site because I really enjoy reading code - I often skip all the paragraphs in a blog post and just go straight for the code.  A new code snippet is posted daily on <a href="http://actionsnippet.com" target="blank">ActionSnippet.com</a>, usually with a brief description.</p>
<p>I would have linked to <a href="http://actionsnippet.com" target="blank">ActionSnippet.com</a> sooner but I wasn't sure what direction the site would go in, so I wanted to give it some time to evolve before linking to it. After approximately 260 code snippet posts I can safely say there is much more useful/educational code on <a href="http://actionsnippet.com" target="blank">ActionSnippet.com</a> than there is weird useless experimental code. </p>
<p>In this post I'd like to highlight a handful of useful snippets for everyday projects and I'll link to a few advanced graphical snippets. If you just want to dig right in, you can look at the <a href="http://actionsnippet.com/?page_id=549" target="blank">all posts</a> page which is just a list of every code snippet on the site. </p>
<p><i>As you read each of the following descriptions, consider opening Flash, pasting the code into timeline script and testing the swf.</i></p>
<p>&nbsp;</p>
<h3>FileReference.save()</h3>
<div class="igBar"><span id="lactionscript3-2"><a href="#" onclick="javascript:showPlainTxt('actionscript3-2'); return false;">SHOW PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ActionScript 3.0:</span>
<div id="actionscript3-2">
<div class="actionscript3">
<ol>
<li style="font-family: Courier, 'Courier New', monospace; color: #000000; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color: #0033ff;">var</span> file:<span style="color: #0033ff;">FileReference</span> = <span style="color: #0033ff;">new</span> <span style="color: #0033ff;">FileReference</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#000033;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color: #0033ff;">stage</span>.<span style="color: #0033ff;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff;">MouseEvent</span>.<span style="color: #0033ff;">CLICK</span>, onClick, <span style="color: #0033ff;">false</span>, <span style="color: #FF00FF;color:#000000;">0</span>, <span style="color: #0033ff;">true</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: Courier, 'Courier New', monospace; color: #000000; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color: #0033ff;">function</span> onClick<span style="color: #000000;">&#40;</span>evt:<span style="color: #0033ff;">MouseEvent</span><span style="color: #000000;">&#41;</span>:<span style="color: #0033ff;">void</span> <span style="color: #000000;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#000033;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;">&nbsp; &nbsp; file.<span style="color: #0033ff;">save</span><span style="color: #000000;">&#40;</span><span style="color: #00AA00;">"some text.<span style="">\n</span>some more text"</span>, <span style="color: #00AA00;">"actionsnippet.txt"</span><span style="color: #000000;">&#41;</span>;</div>
</li>
<li style="font-family: Courier, 'Courier New', monospace; color: #000000; font-weight: normal; font-style: normal;color:#000000;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal; color:#000000;"><span style="color: #000000;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>This is one of my favorite features of Flash 10. We can save any kind of file to a user's computer using the <span class='inlineas'>FileReference.save()</span> method. Its first argument is for the data to put in the file. This can be a <span class='inlineas'>String</span>, <span class='inlineas'>ByteArray</span>, or <span class='inlineas'>XML</span> object. The second argument is the name of the file. </p>
<p>If you paste this code in your timeline all you need to do is click the stage and you'll get a dialogue asking where you would like to save the file "actionsnippet.txt".</p>
<p> <a href="http://www.learningactionscript3.com/2009/06/30/as3-tips-tricks-and-experiments/#more-61" class="more-link">(more...)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2009/06/30/as3-tips-tricks-and-experiments/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wow. Flash on the Beach Miami</title>
		<link>http://www.learningactionscript3.com/2009/01/13/wow-flash-on-the-beach-miami/</link>
		<comments>http://www.learningactionscript3.com/2009/01/13/wow-flash-on-the-beach-miami/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 18:05:03 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2009/01/13/wow-flash-on-the-beach-miami/</guid>
		<description><![CDATA[I just got a newsletter with a shocking tidbit. Flash on the Beach is offering an amazing 48-hour recession-beater discount as a thank you to the Flash community. Until midnight on January 14th, you can get a full three-day pass to the Miami conference for only $99! Check the other conferences out there. That is [...]]]></description>
			<content:encoded><![CDATA[<p>I just got a newsletter with a shocking tidbit. Flash on the Beach is offering an amazing 48-hour recession-beater discount as a thank you to the Flash community. Until midnight on January 14th, you can get a full three-day pass to the Miami conference for only $99! Check the other conferences out there. That is a GREAT deal, and this is one of the best shows around. Peruse the following for more information:</p>
<ul>
<li><a href="http://www.flashonthebeach.com/">Flash on the Beach website</a></li>
<li><a href="/2008/11/21/flash-on-the-us-beach/">My recommendation</a></li>
</ul>
<p>To get this deal, go to <a href="http://www.flashonthebeach.com/tickets/">this page</a> and use the code "RSKNUTS1" at checkout.</p>
<pre class="alert">
UPDATE: The recession has hit everyone very hard and Flash on the Beach Miami is no exception. With everyone either forgoing travel and events, or waiting until the last minute to see how things play out, pre-registration was too low to proceed with the conference. John Davey, the event founder and organizer, felt that it was too risky to allow registrants to book possibly non-refundable flights, or to allow sponsors to commit funding, for fear of a possible later cancellation and the effect that would have on early adopters. As a gesture far too rare these days, he has given all early registrants not only a full refund, but a free pass to Flash on the Beach Brighton. Now that's class. We're sorry to see the event cancelled for 2009, but we sure are impressed at the way it was handled. Our sympathies to John for the iscal impact this decision probably had--another scar from financial world gone mad.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2009/01/13/wow-flash-on-the-beach-miami/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Grids: Image Gallery</title>
		<link>http://www.learningactionscript3.com/2008/12/12/grids-image-gallery/</link>
		<comments>http://www.learningactionscript3.com/2008/12/12/grids-image-gallery/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 18:36:33 +0000</pubDate>
		<dc:creator>Zevan</dc:creator>
		
		<category><![CDATA[Ch03: Properties, Methods, Events]]></category>

		<category><![CDATA[Ch07: Motion]]></category>

		<category><![CDATA[Ch13: Loading Assets]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2008/12/12/grids-image-gallery/</guid>
		<description><![CDATA[Making image galleries in flash is very common. There are lots of different approaches, but the basic concepts stay the same. They're usually XML driven and they usually have external image files that are dynamically loaded into Flash. This post contains an image gallery shell that builds off of the Grids: Arranging Clips post. This [...]]]></description>
			<content:encoded><![CDATA[<p>Making image galleries in flash is very common. There are lots of different approaches, but the basic concepts stay the same. They're usually XML driven and they usually have external image files that are dynamically loaded into Flash. This post contains an image gallery shell that builds off of the <a href="/2008/05/17/grids-arranging-clips/">Grids: Arranging Clips</a> post. This post assumes you are familiar with that post, and with AS3 XML parsing. We won't be building this image gallery from scratch. Instead, I'll walk you through the key aspects of the code This post also contains source for the shell with some TweenLite animation added.</p>
<p> <a href="http://www.learningactionscript3.com/2008/12/12/grids-image-gallery/#more-52" class="more-link">(more...)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2008/12/12/grids-image-gallery/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash on the U.S. Beach</title>
		<link>http://www.learningactionscript3.com/2008/11/21/flash-on-the-us-beach/</link>
		<comments>http://www.learningactionscript3.com/2008/11/21/flash-on-the-us-beach/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 22:19:12 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[conference]]></category>

		<category><![CDATA[flash on the beach]]></category>

		<category><![CDATA[Training]]></category>

		<category><![CDATA[workshop]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2008/11/21/flash-on-the-us-beach/</guid>
		<description><![CDATA[
I have been meaning to write about this for a while, but Flash on the Beach, the best Flash conference to date, is finally coming to the United States. 
For some of us yanks, part of the charm of Flash on the Beach may be it's Brighton, UK location, and we won't lose that any [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/wp-content/uploads/fotb_miami.jpg" width="616" height="145"></p>
<p>I have been meaning to write about this for a while, but <a href="http://www.flashonthebeach.com">Flash on the Beach</a>, the best Flash conference to date, is finally coming to the United States. </p>
<p>For some of us yanks, part of the charm of Flash on the Beach may be it's Brighton, UK location, and we won't lose that any time soon. There will still be a UK event a year from now. For others in our neck of the woods, traveling to England may not be affordable or may be a harder sell (psychologically) for employers, family, etc.--especially with the weakness of the economy.</p>
<p>Now, everyone can take advantage of these former liabilities by joining John Davey and his amazing crew in sunny Miami. Americans get home-field advantage, and everyone else gets to buy a few more rounds on the U.S. dollar. </p>
<p>There has never been a better time to commit to a Flash conference, for several reasons. Flash CS4 and Flash Player 10 are finally out, and bring with them a slew of new features and additional ActionScript classes to take advantage of. A lot of new projects are hitting, or soon to be hitting <a href="http://labs.adobe.com/">labs.adobe.com</a>, such as Flex 4 (brewing nicely), Flash Catalyst (formerly Thermo), AIR 1.5, PixelBender, Cocomo, Alchemy (rock!), and much more. </p>
<p>Most importantly, perhaps, the big impact this economy is having on the job market means that being up to date, and networking with colleagues, peers, and even possible employers, has never been more important.</p>
<p>Those are some of the practical reasons you should go to Flash on the Beach. Some may argue that a better reason is that it's <i>so much damn fun</i>. Everyone from the conference host and brain trust, John Davey, all the way across the board to the volunteer Lifeguards, work really hard to make this an intimate, fun event. John puts a limit on how large the event can be, he works really hard on carefully picking speakers and shaping topics, and he plans nighttime events that are purely social so everyone can connect. I don't mean parties (of which there are nightly affairs) I mean "Inspired Sessions" where creative folk talk about their process and everyone gathers in one big theater to imbibe and enjoy.</p>
<p>Back to the capacity again, this idea has come up in discussion that John may impose a limit that he guards a little too aggressively. The past two years, Flash on the Beach has sold out well before it was scheduled to begin. That's positively awesome for those that get tickets early because you can really meet the folks you've learned from and read about, connect with friends, and focus on content. Unfortunately, it also means that a lot of folks are left out every year. I got <i>a lot</i> of emails asking if I could get people into my AS3 workshop this year--something I had little to no influence over, I'm afraid.</p>
<p>So, if you're thinking of going, be sure to act sooner, rather than later. <a href="http://www.flashonthebeach.com/tickets/">Early-bird tickets are already on sale.</a> </p>
<p>Here is a list of the speakers that have been announced so far (with more on the way). FotB usually gathers the best speakers from around the globe, and this event seems to be carrying that tradition forward.</p>
<ul>
<li>Mark Anders</li>
<li>Carlo Blatz</li>
<li>Lee Brimelow</li>
<li>Rob Chiu</li>
<li>Brendan Dawes</li>
<li>Carla Diana</li>
<li>Julian Dolce</li>
<li>Joa Ebert</li>
<li>Chuck Freedman</li>
<li>Richard Galvan</li>
<li>Hoss Gifford</li>
<li>GMUNK Bradley Grosh</li>
<li>Branden Hall</li>
<li>Ralph Hauwert</li>
<li>Robert Hodgin</li>
<li>Elliott Hugh</li>
<li>Mike Jones</li>
<li>Mario Klingemann</li>
<li>Koen De Weggheleire</li>
<li>Lisa Larson-Kelley</li>
<li>Seb Lee-Delisle</li>
<li>Andre Michelle</li>
<li>Stacey Mulcahy</li>
<li>Chris Orwig</li>
<li>Robert Reinhardt</li>
<li>Rich Shupe</li>
<li>Grant Skinner</li>
<li>Geoff Stearns</li>
<li>Craig Swann</li>
<li>Jer Thorp</li>
<li>Carlos Ulloa</li>
<li>Dr. Woohoo!</li>
</ul>
<pre class="information">
You can even win a 3-day pass, if you have a blog or web site. Just display a linked event badge (see the badge on this page), let Flash on the Beach folks know about it, and you'll be entered into a drawing to win admission! Check out the info on the FotB site for more: <a href="http://www.flashonthebeach.com">Win a 3-day pass!</a> 

(I wonder if we're eligible to win?)
</pre>
<p>I hope to see you there!</p>
<br><h4>Related Content</h4><ul class="related_post"><li><a href="http://www.learningactionscript3.com/2008/04/26/as3-teachers-wanted/" title="Opinions from AS3 Teachers Wanted">Opinions from AS3 Teachers Wanted</a></li><li><a href="http://www.learningactionscript3.com/2008/04/23/looking-forward-to-flashbelt/" title="Looking Forward to Flashbelt">Looking Forward to Flashbelt</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2008/11/21/flash-on-the-us-beach/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash CS4 still uses AS3</title>
		<link>http://www.learningactionscript3.com/2008/11/13/flash-cs4-still-uses-as3/</link>
		<comments>http://www.learningactionscript3.com/2008/11/13/flash-cs4-still-uses-as3/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 20:17:08 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[as4]]></category>

		<category><![CDATA[ecma4]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2008/11/13/flash-cs4-still-uses-as3/</guid>
		<description><![CDATA[I guess this is answer questions week. I seem to be writing a series of posts (more coming) written to address questions from multiple emails or conference appearances. This has to do with AS4/ECMA 4. If you frequent any of the blogs, forums, lists, or other sources for current Flash info, this post will not [...]]]></description>
			<content:encoded><![CDATA[<p>I guess this is answer questions week. I seem to be writing a series of posts (more coming) written to address questions from multiple emails or conference appearances. This has to do with AS4/ECMA 4. If you frequent any of the blogs, forums, lists, or other sources for current Flash info, this post will not contain any new information. However, if you're new to AS3 and have come to this site by way of our book, you will probably be reassured to know that <b>Flash CS4 still uses ActionScript 3</b>.</p>
<p>Flash CS4 does introduce some new classes and ActionScript features, but these are consistent with minor language updates that accompany most new authoring tool versions. Here's <a href="http://www.mikechambers.com/blog/2008/10/14/new-flash-cs4-and-flash-player-10-articles-online/">a short round up of links</a> that Mike Chambers put together and the new <a href="http://help.adobe.com/en_US/Flash/10.0_Welcome">CS4/AS3 docs</a>. </p>
<p>ActionScript 3.0 will likely remain the primary scripting language of the Flash Platform for at least another 18 months, if not longer. (This is assumed because Adobe tends to release product upgrades approximately every 18 months). Furthermore, if the next version of Flash (or another Flash Platform app, such as Flex) introduces ActionScript 4, it will likely be an expansion of AS3. That is, AS3 is probably the last major language rewrite for quite some time, so now is a great time to invest in learning ActionScript 3. </p>
<p>On a loosely related note (and, again, nothing new for the community-aware), the recent rejection of the ECMA 4 proposal will likely have little impact on ActionScript. Here's <a href="http://www.mikechambers.com/blog/2008/08/14/actionscript-3-and-ecmascript-4/">a bit more on the subject</a>, also from Mr. Chambers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2008/11/13/flash-cs4-still-uses-as3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Passing Arguments with Events</title>
		<link>http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/</link>
		<comments>http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/#comments</comments>
		<pubDate>Tue, 11 Nov 2008 03:19:43 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
		
		<category><![CDATA[Ch03: Properties, Methods, Events]]></category>

		<category><![CDATA[events]]></category>

		<guid isPermaLink="false">http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/</guid>
		<description><![CDATA[One of the questions about ActionScript 3 that I am most often asked is how to send arguments to a listener function along with an event. Recently, a reader named Jim asked just such a question. 
To provide some background for this question, you could send argument data to a standard function like this?

function showMsg(msg:String):void [...]]]></description>
			<content:encoded><![CDATA[<p>One of the questions about ActionScript 3 that I am most often asked is how to send arguments to a listener function along with an event. Recently, a reader named Jim <a href=" /2007/11/20/dispatching-custom-events/#comment-1091">asked just such a question</a>. </p>
<p>To provide some background for this question, you could send argument data to a standard function like this?</p>
<pre class="code">
function showMsg(msg:String):void {
    trace(msg);
}
showMsg("Claire");
</pre>
<p>However, in an event listener, only one argument is allowed in the listener function: the argument responsible for receiving the event data. Using a standard mouse click listener as an example...</p>
<pre class="code">
stage.addEventListener(MouseEvent.CLICK, showMsg, false, 0, true);
function showMsg(evt:MouseEvent):void {
    trace("hello");
}
</pre>
<p>...the kind of question asked is, can you do something like this:</p>
<pre class="code">
stage.addEventListener(MouseEvent.CLICK, showMsg, "hello",
                       false, 0, true);
function showMsg(evt:MouseEvent, msg:String):void {
    trace(msg);
}
</pre>
<p>The answer is, not out of the box. The existing AS3 events do not provide for this capability. However, to answer Jim's question, the best way to pass arguments with an event is to create your own event class by extending AS3's <span class="inlineas">Event</span> class. </p>
<p> <a href="http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/#more-56" class="more-link">(more...)</a></p>
<br><h4>Related Content</h4><ul class="related_post"><li><a href="http://www.learningactionscript3.com/2007/11/21/mandatory-argument-types/" title="Mandatory Argument Types">Mandatory Argument Types</a></li><li><a href="http://www.learningactionscript3.com/2007/11/20/dispatching-custom-events/" title="Dispatching Custom Events">Dispatching Custom Events</a></li><li><a href="http://www.learningactionscript3.com/2007/11/19/stopping-event-propagation/" title="Stopping Event Propagation">Stopping Event Propagation</a></li><li><a href="http://www.learningactionscript3.com/2007/11/19/interesting-use-for-capture-phase/" title="Interesting Use for Capture Phase">Interesting Use for Capture Phase</a></li><li><a href="http://www.learningactionscript3.com/2007/11/17/the-event-object/" title="The Event Object">The Event Object</a></li><li><a href="http://www.learningactionscript3.com/2007/11/10/event-phases-in-action/" title="Event Phases in Action">Event Phases in Action</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.learningactionscript3.com/2008/11/11/passing-arguments-with-events/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
