<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6442692497332904681</id><updated>2011-09-16T10:48:28.503-07:00</updated><category term='Gallery'/><category term='dynamic text'/><category term='Preloader'/><category term='tween class'/><category term='loops'/><category term='arrays'/><category term='parse'/><category term='AS3'/><category term='field'/><category term='ActionScript 3'/><category term='volume'/><category term='load'/><category term='loadMovie'/><category term='XML'/><category term='attachMovie'/><category term='parsing'/><category term='onEnterFrame'/><category term='sound object'/><category term='enterframe'/><category term='setInterval'/><category term='actionscript 3.0'/><category term='SoundChannel'/><category term='text'/><category term='Mouse events'/><category term='Sound'/><category term='SoundTransform'/><category term='addChild'/><category term='Preload external files'/><category term='new getURL'/><category term='URLRequest'/><category term='external'/><category term='load movie'/><category term='removeChild'/><category term='ENTER_FRAME'/><category term='tweening'/><category term='tween'/><category term='setTimer'/><category term='target paths'/><title type='text'>Nate's AS 3.0 Journal</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-5827529996017060925</id><published>2009-12-17T09:39:00.000-08:00</published><updated>2009-12-17T09:43:36.677-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='enterframe'/><category scheme='http://www.blogger.com/atom/ns#' term='ActionScript 3'/><category scheme='http://www.blogger.com/atom/ns#' term='removeChild'/><category scheme='http://www.blogger.com/atom/ns#' term='Preloader'/><category scheme='http://www.blogger.com/atom/ns#' term='tween class'/><category scheme='http://www.blogger.com/atom/ns#' term='Mouse events'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><category scheme='http://www.blogger.com/atom/ns#' term='Preload external files'/><category scheme='http://www.blogger.com/atom/ns#' term='arrays'/><category scheme='http://www.blogger.com/atom/ns#' term='addChild'/><category scheme='http://www.blogger.com/atom/ns#' term='Gallery'/><title type='text'>Basic ActionScript 3 XML Gallery</title><content type='html'>I built a gallery with actionscript 3 that runs off xml. Below you can view it or download the source files.&lt;br /&gt;&lt;br /&gt;[ &lt;a href="http://myftp.natesdesign.com/flash/other/nate/basic_gallery/gallery.html" target="_blank"&gt;SEE IT IN ACTION&lt;/a&gt; ]&lt;br /&gt;[ &lt;a href="http://myftp.natesdesign.com/flash/other/nate/basic_gallery.zip"&gt;DOWNLOAD THE FILES&lt;/a&gt; ]&lt;br /&gt;&lt;br /&gt;Issues this covers: ActionScript 3, AS3, Gallery, XML, Preloader, Preload external files, Tween Class, enterframe, Mouse events, Arrays, addChild, removeChild&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-5827529996017060925?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/5827529996017060925/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=5827529996017060925&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5827529996017060925'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5827529996017060925'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2009/12/basic-actionscript-3-xml-gallery.html' title='Basic ActionScript 3 XML Gallery'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-4954745807909724321</id><published>2009-06-23T12:08:00.000-07:00</published><updated>2009-10-28T16:21:28.648-07:00</updated><title type='text'>Setting and Reading Cookies in Flash AS3</title><content type='html'>&lt;a href="http://flashnate.blogspot.com/2009/06/setting-and-reading-cookies-in-flash.html"&gt;View actionscript 2 version of this post&lt;/a&gt;&lt;br /&gt;Setting a cookie with Flash (Actionscript 3.0) is really easy. Reading that cookie in Flash (or passing the value of the cookie back into flash) isn't so easy (well, at least that's what the internet would have you believe). After searching for some documentation on the matter without any luck, I took matters into my own hands. It turns out if you use the jquery library, it is actually pretty easy.&lt;br /&gt;&lt;br /&gt;First of all, you need to make sure you are using &lt;a href="http://blog.deconcept.com/swfobject/" target="_blank"&gt;SWFobject&lt;/a&gt; to embed your flash, like this example: (make sure you have the &lt;a href="http://code.google.com/p/swfobject/" target="_blank"&gt;swfobject js file&lt;/a&gt; included in your head)&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;lt;div id=&amp;quot;flashcontent&amp;quot;&amp;gt;Alt Content Goes Here&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;   var so = new SWFObject(&amp;quot;HomePageFlash.swf&amp;quot;, &amp;quot;mymovie&amp;quot;, &amp;quot;573&amp;quot;, &amp;quot;434&amp;quot;, &amp;quot;9&amp;quot;, &amp;quot;#f0af2c&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;so.addParam(&amp;quot;quality&amp;quot;, &amp;quot;high&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;so.addParam(&amp;quot;wmode&amp;quot;, &amp;quot;transparent&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;so.write(&amp;quot;flashcontent&amp;quot;);&lt;br /&gt;&amp;lt;/script&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Then you need &lt;a href="http://jquery.com/" target="_blank"&gt;jquery&lt;/a&gt; installed.&lt;br /&gt;And you also need the &lt;a href="http://plugins.jquery.com/project/Cookie" target="_blank"&gt;jquery cookie plugin&lt;/a&gt; included.&lt;br /&gt;&lt;br /&gt;ACTIONSCRIPT:&lt;br /&gt;To set a cookie from flash you just need to call a js function that is in the cookie plugin thusly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;var link:URLRequest = new URLRequest(&amp;quot;javascript:$.cookie('flash_cookie', 'loaded')&amp;quot;);&lt;br /&gt;box_mc.addEventListener(MouseEvent.CLICK, onClick);&lt;br /&gt;function onClick(event:MouseEvent):void{&lt;br /&gt;&amp;nbsp;&amp;nbsp;navigateToURL(link);&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;You can add as many params into the js call as you want thisly:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;var link:URLRequest = new URLRequest(&amp;quot;javascript:$.cookie('flash_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });&amp;quot;);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now for the exciting part. If you want to read that cookie in flash, all you need to do is pass it in using addVariables. In the SWFobject, just add this line of code BEFORE it writes the flash (so before the so.write part in my example):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&amp;nbsp;&amp;nbsp;so.addVariable(&amp;quot;theCookie&amp;quot;, $.cookie('flash_cookie'));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;('theCookie' being a variable that will be passed into flash and the $.cookie part will pull the value of that cookie and dump it into 'theCookie')&lt;br /&gt;You probably know this already, but to read that variable in AS3, you need to call it like this:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;myTextBox.text = this.loaderInfo.parameters.theCookie;&lt;/span&gt;&lt;br /&gt;(that's to display it's value in a textfield called 'myTextBox', but you can do whatever you want with it)&lt;br /&gt;&lt;br /&gt;If you have questions, feel free to comment.&lt;br /&gt;&lt;br /&gt;(issues: Setting cookies in flash, reading cookies with flash, passing cookies into flash, as3, actionscript3, flash CS3, flash CS4, pass cookies with addVariables, pass cookies with SWFobject)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-4954745807909724321?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/4954745807909724321/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=4954745807909724321&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/4954745807909724321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/4954745807909724321'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2009/06/setting-and-reading-cookies-in-flash.html' title='Setting and Reading Cookies in Flash AS3'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-1775151987587667669</id><published>2008-12-18T14:47:00.001-08:00</published><updated>2008-12-18T15:11:46.720-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='actionscript 3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='new getURL'/><category scheme='http://www.blogger.com/atom/ns#' term='URLRequest'/><category scheme='http://www.blogger.com/atom/ns#' term='setInterval'/><category scheme='http://www.blogger.com/atom/ns#' term='parsing'/><category scheme='http://www.blogger.com/atom/ns#' term='dynamic text'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><category scheme='http://www.blogger.com/atom/ns#' term='setTimer'/><category scheme='http://www.blogger.com/atom/ns#' term='parse'/><title type='text'>Neumont Widget</title><content type='html'>I had to make this widget for Neumont University and since it was a pretty simple app I decided to do it in AS3:&lt;br /&gt;&lt;br /&gt;&lt;object width="350" height="186"&gt;&lt;br /&gt;&lt;param name="movie" value="http://www.neumont.edu/cmsflash/facebookWidget.swf"&gt;&lt;br /&gt;&lt;embed src="http://www.neumont.edu/cmsflash/facebookWidget.swf" width="350" height="186"&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;This pulls from an XML file that is on their server and rotates through news and events. You can download the files here:&lt;br /&gt;&lt;br /&gt;[&lt;a href="http://myftp.natesdesign.com/flash/other/nate/cmsflash.zip"&gt;DOWNLOAD&lt;/a&gt;]&lt;br /&gt;&lt;br /&gt;The xml file is in there, although you'll have to change the link in the flash if you really want it to pull from that xml because right now it is pulling the xml off Neumonts server.&lt;br /&gt;&lt;br /&gt;Issues this covers: setTimer, new setInterval, dynamic text, XML, parsing, URLRequest, getURL, AS3, Actionscript 3.0&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-1775151987587667669?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/1775151987587667669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=1775151987587667669&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/1775151987587667669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/1775151987587667669'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/12/neumont-widget.html' title='Neumont Widget'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-8803766225399436742</id><published>2008-06-18T16:26:00.001-07:00</published><updated>2008-06-18T16:41:53.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='actionscript 3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><category scheme='http://www.blogger.com/atom/ns#' term='parse'/><category scheme='http://www.blogger.com/atom/ns#' term='arrays'/><title type='text'>Loading XML and Parsing with AS3</title><content type='html'>This is what the XML doc looks like:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;images&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;pic&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;image&amp;gt;photos/pic17.jpg&amp;lt;/image&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;thumb&amp;gt;thumbs/pic17.jpg&amp;lt;/thumb&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;title&amp;gt;Kevin's Evil Face&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;desc&amp;gt;This is Kevin layin down some tracks. Boho Digitalia - February 2008&amp;lt;/desc&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;/pic&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;pic&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;image&amp;gt;photos/pic18.jpg&amp;lt;/image&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;thumb&amp;gt;thumbs/pic18.jpg&amp;lt;/thumb&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;title&amp;gt;Matt&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;desc&amp;gt;This is Matt singin some live bgv's&amp;lt;/desc&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;/pic&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;pic&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;image&amp;gt;photos/pic26.jpg&amp;lt;/image&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;thumb&amp;gt;thumbs/pic26.jpg&amp;lt;/thumb&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;title&amp;gt;The 4923&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;desc&amp;gt;Once upon a time, Matt wasn't in the band yet and Kevin played bass. Kilby Court - A Really Long Time Ago&amp;lt;/desc&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;/pic&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&amp;lt;/images&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And this is how you load it into Flash and parse it:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;var thumbs:Array = new Array();&lt;br /&gt;var images:Array = new Array();&lt;br /&gt;var titles:Array = new Array();&lt;br /&gt;var descs:Array = new Array();&lt;br /&gt;&lt;br /&gt;///////////////////////////////////&lt;br /&gt;///// vvvvvv LOAD XML vvvvvv //////&lt;br /&gt;//+++++++++++++++++++++++++++++++//&lt;br /&gt;var loader:URLLoader = new URLLoader();&lt;br /&gt;var xml:XML = new XML();&lt;br /&gt;loader.addEventListener(Event.COMPLETE, loadXML);&lt;br /&gt;loader.load(new URLRequest("images.xml"));&lt;br /&gt;function loadXML(event:Event):void{&lt;br /&gt;    xml = new XML(event.target.data);&lt;br /&gt;    var total:Number = xml.pic.length();&lt;br /&gt;    for(var i:int = 0; i &lt; total; i++){&lt;br /&gt;        thumbs[i] = xml.pic.thumb.text()[i];&lt;br /&gt;        images[i] = xml.pic.image.text()[i];&lt;br /&gt;        titles[i] = xml.pic.title.text()[i];&lt;br /&gt;        descs[i] = xml.pic.desc.text()[i];&lt;br /&gt;    }&lt;br /&gt;    loadThumbs();&lt;br /&gt;}&lt;br /&gt;//+++++++++++++++++++++++++++++++//&lt;br /&gt;///////////////////////////////////&lt;br /&gt;///////////////////////////////////&lt;br /&gt;&lt;br /&gt;///// LOAD THE THUMBNAILS /////&lt;br /&gt;function loadThumbs():void{&lt;br /&gt;    // do whatever you need here&lt;br /&gt;    trace(thumbs);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;This will make 4 arrays (thumbs, images, titles, descs) and populates them with everything from your XML file. I still haven't taken the time to figure out how to parse it into a 2D array, so if anyone wants to tell me how to do it, that would rock.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-8803766225399436742?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/8803766225399436742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=8803766225399436742&amp;isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/8803766225399436742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/8803766225399436742'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/06/loading-xml-and-parsing-with-as3.html' title='Loading XML and Parsing with AS3'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-6634156724138412315</id><published>2008-06-13T15:37:00.000-07:00</published><updated>2008-06-13T15:56:55.479-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='actionscript 3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='SoundTransform'/><category scheme='http://www.blogger.com/atom/ns#' term='volume'/><category scheme='http://www.blogger.com/atom/ns#' term='sound object'/><category scheme='http://www.blogger.com/atom/ns#' term='AS3'/><category scheme='http://www.blogger.com/atom/ns#' term='SoundChannel'/><category scheme='http://www.blogger.com/atom/ns#' term='Sound'/><title type='text'>As3 Music Player</title><content type='html'>I reprogrammed the player I made for my &lt;a href="http://www.hearsayrock.com" target="_blank"&gt;band's website&lt;/a&gt; in as3. Check it out:&lt;object width="321" height="81"&gt;&lt;br /&gt;&lt;param name="movie" value="http://myftp.natesdesign.com/flash/other/nate/player/player.swf"&gt;&lt;br /&gt;&lt;embed src="http://myftp.natesdesign.com/flash/other/nate/player/player.swf" width="321" height="81"&gt;&lt;br /&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/object&gt;&lt;a href="http://myftp.natesdesign.com/flash/other/nate/player.zip"&gt;Download Files&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Somehow, and who knows how, the songs load super fast with the new sound object, which is awesome! I didn't even need to put a preloader on this one (which is good since I don't know how to make one yet). Some things about sound now are a little different but they aren't too annoying. The bar goes a little crazy when you click on it (to go to a different section in the song). It doesn't so that when I just export the swf. I'm hoping it's just some weird blogger thing.&lt;br /&gt;&lt;br /&gt;Issues this covers: AS3, Actionscript 3.0, Sound, SoundChannel, SoundTransform, volume&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-6634156724138412315?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/6634156724138412315/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=6634156724138412315&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6634156724138412315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6634156724138412315'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/06/as3-music-player.html' title='As3 Music Player'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-7444718110542289818</id><published>2008-06-11T15:00:00.000-07:00</published><updated>2008-09-30T12:08:17.108-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tween'/><category scheme='http://www.blogger.com/atom/ns#' term='loadMovie'/><category scheme='http://www.blogger.com/atom/ns#' term='ENTER_FRAME'/><category scheme='http://www.blogger.com/atom/ns#' term='load'/><category scheme='http://www.blogger.com/atom/ns#' term='target paths'/><title type='text'>Intro/Outro</title><content type='html'>This used to be a really simple task, but it's quite the ordeal in as3, but I figured it out:&lt;br /&gt;&lt;a href="http://myftp.natesdesign.com/flash/other/nate/introOutro/main.html" target="_blank"&gt;View it Here&lt;/a&gt;&lt;br /&gt;&lt;a href="http://myftp.natesdesign.com/flash/other/nate/introOutro.zip"&gt;download fla's&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It seems like there should be a way easier way of doing this.&lt;br /&gt;&lt;br /&gt;Issues this covers: load movie, tween class, enter frame, target paths, variables&lt;br /&gt;oh by the way, you have to do targets like this now:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;MovieClip(this.parent.parent.parent).loadNextMovie();&lt;/span&gt; //tell main timeline to call loadNextMovie function from loaded movie's timeline&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-7444718110542289818?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/7444718110542289818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=7444718110542289818&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7444718110542289818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7444718110542289818'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/06/introoutro.html' title='Intro/Outro'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-6457873510559956083</id><published>2008-06-10T13:43:00.000-07:00</published><updated>2008-06-11T14:19:59.382-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='loadMovie'/><category scheme='http://www.blogger.com/atom/ns#' term='load movie'/><title type='text'>new loadMovie</title><content type='html'>You don't need a container to load an external file anymore:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;var &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;= new Loader();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;addChild(&lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;.load(new URLRequest("page1.swf"));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;but if you do want it to load into a certain movie or container, do it like this:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;var &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;= new Loader();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;container_mc.addChild(&lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie &lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;.load(new URLRequest("page1.swf"));&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Apparently you can't just load a new movie in place of the new one anymore. You have to boot the old one out and then load in the new one:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;container.removeChild(loadMovie);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie = new Loader();&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;container.addChild(loadMovie);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;loadMovie.load(new URLRequest("page2.swf"));&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Talking to the new movie's timeline is different too, &lt;/span&gt;&lt;/span&gt;you'll have to cast it (it's called)&lt;span style="color: rgb(153, 153, 153);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;MovieClip(loadMovie.content).gotoAndStop("outro");&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;So far the new way to load a movie is the most annoying change about as3.&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-6457873510559956083?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/6457873510559956083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=6457873510559956083&amp;isPopup=true' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6457873510559956083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6457873510559956083'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/06/new-loadmovie.html' title='new loadMovie'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-6267890089375251476</id><published>2008-06-10T13:18:00.000-07:00</published><updated>2008-06-10T13:27:42.679-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tweening'/><category scheme='http://www.blogger.com/atom/ns#' term='tween class'/><title type='text'>AS3 Tween Class</title><content type='html'>The tween class is pretty much the same as it was in AS2. When you import everything, you just have to change 'mx' to 'fl'. Also if you want to do a tween event you have to import TweenEvent:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;import fl.transitions.Tween;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;import fl.transitions.easing.*;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;import fl.transitions.TweenEvent;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;var tw1:Tween = new Tween(object,"x",Strong.easeOut,start,end,time,true);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you want to do an event (like the old onMotionFinished), it's a little different now. You have to create an event listener like this:&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;tw1.addEventListener(TweenEvent.MOTION_STOP, tweenStop);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;function tweenStop(event:TweenEvent):void{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt; var tw2:Tween = new Tween(movieclip,"x",Back.easeOut,movieclip.x,300,1,true);&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 153, 153);"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-6267890089375251476?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/6267890089375251476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=6267890089375251476&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6267890089375251476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6267890089375251476'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/06/as3-tween-class.html' title='AS3 Tween Class'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-3095968373570793779</id><published>2008-06-09T15:01:00.000-07:00</published><updated>2008-06-09T15:13:03.126-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ENTER_FRAME'/><category scheme='http://www.blogger.com/atom/ns#' term='onEnterFrame'/><title type='text'>Tweening Experiments (Enter Frame)</title><content type='html'>&lt;object width="300" height="300"&gt;&lt;br /&gt;&lt;param name="movie" value="http://myftp.natesdesign.com/flash/other/nate/as3tweening/enterFrame.swf"&gt;&lt;br /&gt;&lt;embed src="http://myftp.natesdesign.com/flash/other/nate/as3tweening/enterFrame.swf" width="300" height="300"&gt;&lt;br /&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/object&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;CODE:&lt;/span&gt;&lt;br /&gt;var myBrain:MovieClip = new MovieClip(); //create a new empty movie clip&lt;br /&gt;var xPos:Number;&lt;br /&gt;var yPos:Number;&lt;br /&gt;&lt;br /&gt;box_mc.addEventListener(Event.ENTER_FRAME, rotate); //add new enter frame, call rotate function&lt;br /&gt;stage.addEventListener(MouseEvent.CLICK, moveBox); //add new mouse event, call moveBox function&lt;br /&gt;&lt;br /&gt;function rotate(event:Event):void{&lt;br /&gt; box_mc.rotation += 8; //rotate box by 8 degrees 31 times/second&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function moveBox(event:MouseEvent):void{&lt;br /&gt; xPos = mouseX; //set xPos variable&lt;br /&gt; yPos = mouseY; //set yPos veriable&lt;br /&gt; myBrain.addEventListener(Event.ENTER_FRAME, moveIt); //add new enter frame, call moveIt&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function moveIt(event:Event):void{&lt;br /&gt; if(Math.abs(xPos-box_mc.x)&lt;1 &amp;&amp; Math.abs(yPos-box_mc.y)&lt;1){ //when the box gets real close to destination...&lt;br /&gt;  myBrain.removeEventListener(Event.ENTER_FRAME, moveIt); //remove the enter frame that is on myBrain&lt;br /&gt;  box_mc.x = xPos; //snap box into position&lt;br /&gt;  box_mc.y = yPos; // " " "&lt;br /&gt; }else{&lt;br /&gt;  box_mc.x += .1 * (xPos - box_mc.x); //simple easing formula&lt;br /&gt;  box_mc.y += .1 * (yPos - box_mc.y); //simple easing formula&lt;br /&gt; }&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-3095968373570793779?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/3095968373570793779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=3095968373570793779&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/3095968373570793779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/3095968373570793779'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/06/tweening-experiments-enter-frame.html' title='Tweening Experiments (Enter Frame)'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-6723341663049477934</id><published>2008-05-09T12:29:00.000-07:00</published><updated>2008-05-09T12:35:31.686-07:00</updated><title type='text'>Moving Onward</title><content type='html'>Time to start learning AS3 again. This blog is going to start being FILLED with useful posts. To start it off, I'm posting this helpful as3 link:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.senocular.com/flash/tutorials/as3withflashcs3/"&gt;Getting Started with ActionScript 3.0 in Adobe Flash CS3&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-6723341663049477934?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/6723341663049477934/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=6723341663049477934&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6723341663049477934'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/6723341663049477934'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2008/05/moving-onward.html' title='Moving Onward'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-2507006429030413723</id><published>2007-09-17T10:08:00.000-07:00</published><updated>2007-09-17T10:19:08.272-07:00</updated><title type='text'>Arrays</title><content type='html'>Arrays are the same:&lt;br /&gt;&lt;br /&gt;var verbs:Array = ["jumped", "ran", "flew"];&lt;br /&gt;&lt;br /&gt;//2D array:&lt;br /&gt;var multiD:Array = [&lt;br /&gt;       ["row 0 col 0","row 0 col 1"],&lt;br /&gt;       ["row 1 col 0","row 1 col 1"],&lt;br /&gt;       ["row 2 col 0","row 2 col 1"],&lt;br /&gt;       ["row 3 col 0","row 3 col 1"]&lt;br /&gt;       ];&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Here is a list of Properties:&lt;/span&gt;&lt;br /&gt;array.pop() = This method removes the last item from an array&lt;br /&gt;array.push() = The push method adds a series of values to the end of an existing array&lt;br /&gt;array.shift() = removes a value from the beginning of array&lt;br /&gt;array.unshift() = adds a value or series of values to the beginning of your array&lt;br /&gt;array.concat() = merges two arrays together ... arrayOne.concat(arrayTwo);&lt;br /&gt;array.slice() = can create array with certain elements of existing array&lt;br /&gt;array.sort() = will sort an array (alphabetically by default)&lt;br /&gt;array.reverse() = Reverses the direction of an array.&lt;br /&gt;slice() = Extracts a section of an array and returns it as a new array.&lt;br /&gt;array.toString = Returns a string value representing the elements in the Array object.&lt;br /&gt;&lt;br /&gt;var myArray:Array = new Array(); //creates a new blank array&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;some links to help:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.kirupa.com/developer/actionscript/array2.htm"&gt;http://www.kirupa.com/developer/actionscript/array2.htm&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary059.html"&gt;Adobe Array Help&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-2507006429030413723?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/2507006429030413723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=2507006429030413723&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/2507006429030413723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/2507006429030413723'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/09/arrays.html' title='Arrays'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-7880633645201005775</id><published>2007-09-06T10:41:00.001-07:00</published><updated>2007-09-17T09:26:54.900-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text'/><category scheme='http://www.blogger.com/atom/ns#' term='load'/><category scheme='http://www.blogger.com/atom/ns#' term='external'/><category scheme='http://www.blogger.com/atom/ns#' term='field'/><title type='text'>Text Fields</title><content type='html'>&lt;span style="font-weight:bold;"&gt;This is how you can create a new text field with actionscript yo (amongst other things):&lt;/span&gt;&lt;br /&gt;var myText:TextField = new TextField(); //make a new text field&lt;br /&gt;var myFormat:TextFormat = new TextFormat(); //make text format object&lt;br /&gt;&lt;br /&gt;myFormat.font = "Verdana"; //set font&lt;br /&gt;myFormat.color = 0xFF0000; //set text color&lt;br /&gt;myFormat.size = 14; //set size&lt;br /&gt;&lt;br /&gt;addChild(myText); //add it to the stage (top-left)&lt;br /&gt;myText.text = "text goes in here"; //put text into it&lt;br /&gt;myText.autoSize = TextFieldAutoSize.LEFT; //text will auto size from the left&lt;br /&gt;&lt;br /&gt;myText.setTextFormat(myFormat); //You need this before you can modify proporties&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Capture data from text field:&lt;/span&gt;&lt;br /&gt;//assuming there is a button called "submit_btn" and a text field called "name_txt"&lt;br /&gt;&lt;br /&gt;var body_txt:TextField = new TextField(); //create a text field called "body_txt"&lt;br /&gt;yourName:String; //set up variable&lt;br /&gt;body_txt.x = 98; //you can place text where ever&lt;br /&gt;body_txt.y = 66;&lt;br /&gt;&lt;br /&gt;submit_btn.addEventListener(mouseEvent.CLICK, onClick); //set up click mouse event &lt;br /&gt;&lt;br /&gt;function onClick(event:MouseEvent):void{&lt;br /&gt;addChild(body_txt); //place body_txt on stage (this is where user will type)&lt;br /&gt;yourName = body_txt.text; //put whatever user types into yourName variable&lt;br /&gt;name_txt.text = "Hi " + yourName + "!"; //put that text in the name_txt field (plus "hi")&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Loading External Text File:&lt;/span&gt;&lt;br /&gt;//Assume there's a field called external_txt&lt;br /&gt;&lt;br /&gt;var externalReq:URLRequest = new URLRequest("news.txt"); //new URL Request (request file)&lt;br /&gt;var externalLoad:URLLoader = new URLLoader(); //new URL Loader&lt;br /&gt;&lt;br /&gt;externalLoad.load(externalReq); //Start Loading&lt;br /&gt;&lt;br /&gt;externalLoad.addEventListener(Event.COMPLETE, textReady); //Listen for load completion&lt;br /&gt;&lt;br /&gt;external_txt.wordWrap = true; //this will wrap the text&lt;br /&gt;&lt;br /&gt;function textReady(event:Event):void{ &lt;br /&gt;external_txt.text = event.target.data; //places data in txt file into text field&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Scroll Text&lt;/span&gt;&lt;br /&gt;Assume there is a text field full of dynamic text called myText_txt. Also assume there is a button called up_btn and one called down_btn:&lt;br /&gt;&lt;br /&gt;up_btn.addEventListener(MouseEvent.CLICK, scrollUp);&lt;br /&gt;down_btn.addEventListener(MouseEvent.CLICK, scrollDown);&lt;br /&gt;&lt;br /&gt;function scrollUp(event:MouseEvent):void{&lt;br /&gt;external_txt.scrollV --; //this moves the text down&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function scrollDown(event:MouseEvent):void{&lt;br /&gt;external_txt.scrollV ++; //this moves the text up&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-7880633645201005775?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/7880633645201005775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=7880633645201005775&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7880633645201005775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7880633645201005775'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/09/text-fields.html' title='Text Fields'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-5339047209263617977</id><published>2007-08-30T20:25:00.000-07:00</published><updated>2007-08-31T07:59:33.637-07:00</updated><title type='text'>Random Numbers</title><content type='html'>Generating random number is the same as it was in AS2, but I always forget how so here are a few ways:&lt;br /&gt;&lt;br /&gt;Math.round(Math.random() * 1000); //Gets a whole number anywhere from 0 - 1000&lt;br /&gt;Math.floor(Math.random() * 10); //From 0 - 9 (cuz floor always rounds down)&lt;br /&gt;Math.ceil(Math.random() * 10); //from 1 - 10 (cuz ceil always rounds up)&lt;br /&gt;Math.round(Math.random() * 15) + 5; //from 5 - 20&lt;br /&gt;Math.round(Math.random() * 10) - 5; //from -5 - 5&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-5339047209263617977?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/5339047209263617977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=5339047209263617977&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5339047209263617977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5339047209263617977'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/random-numbers.html' title='Random Numbers'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-3951637156721137815</id><published>2007-08-28T22:47:00.000-07:00</published><updated>2007-08-29T21:48:58.177-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='loops'/><category scheme='http://www.blogger.com/atom/ns#' term='attachMovie'/><title type='text'>Loops and pulling movieclips out of library at runtime</title><content type='html'>Loops are pretty much the same. The only difference is that you have to put what the variable is (a number)...like this:&lt;br /&gt;&lt;br /&gt;for(var i:Number = 0; i &lt; 6; i++){ //you have to put "var" and that i is a number&lt;br /&gt; trace(i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Before if you wanted to place a bunch of movieclips on the stage at runtime using a loop, you would use attachMovie. Now you do this:&lt;br /&gt;&lt;br /&gt;// this will pull six boxes out of the library and they will will each be placed up and to the right&lt;br /&gt;var myBox:mcBox; //this creates a box variable. mcBox is what I put as the class in the movieclip properties&lt;br /&gt;var myBoxX:Number = 127; //this is where the first box will be placed on the X axis&lt;br /&gt;var myBoxY:Number = 271; //ditto but on the Y axis&lt;br /&gt;var myBoxR:Number = 0; //start rotation at 0&lt;br /&gt;&lt;br /&gt;for(var i:Number = 0; i &lt; 6; i++){ //set the loop&lt;br /&gt; myBox = new mcBox(); //this pulls an instance of the box mc outta the library each time the loop runs&lt;br /&gt; addChild(myBox); //the new attachMovie. myBox is the variable I set above (will set 6 boxes on the stage)&lt;br /&gt; myBox.x = myBoxX; //set the x position&lt;br /&gt; myBox.y = myBoxY; //set y&lt;br /&gt; myBox.rotation = myBoxR; //set rotation&lt;br /&gt; myBoxY -= 35; //move each box up 35 pixels from the last one&lt;br /&gt; myBoxX += 75; //move each 75 px over&lt;br /&gt; myBoxR -= 45; //rotate each box 45 degrees clockwise&lt;br /&gt;}&lt;br /&gt;//Remember to click "export for actionscript" in the properties menu of the symbol in the library. In this case you have to put "mcBox" as the class name&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-3951637156721137815?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/3951637156721137815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=3951637156721137815&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/3951637156721137815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/3951637156721137815'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/loops-and-pulling-movieclips-out-of.html' title='Loops and pulling movieclips out of library at runtime'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-5683791680610499771</id><published>2007-08-28T22:41:00.000-07:00</published><updated>2007-08-29T13:05:43.998-07:00</updated><title type='text'>Conditions</title><content type='html'>Conditions in AS3 are exactly the same as they were previously (woo hoo!) All the operators are the same, you can nest conditions, you can have compound condtions and so forth. Here is an example of one:&lt;br /&gt;&lt;br /&gt;check_mc.addEventListener(MouseEvent.CLICK, onClick); //add mouse event, call onClick function&lt;br /&gt;&lt;br /&gt;function onClick(event:MouseEvent):void{ //define onClick function&lt;br /&gt; if(box1_mc.rotation == box2_mc.rotation || box1_mc.alpha == box2_mc.alpha){ //if rotation is the same OR alpha is the same..&lt;br /&gt;  trace("condition is true");&lt;br /&gt; }else{ //if not...&lt;br /&gt;  trace("condition is false");&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;check_mc.buttonMode = true; //set check_mc as a button/show hand cursor&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-5683791680610499771?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/5683791680610499771/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=5683791680610499771&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5683791680610499771'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5683791680610499771'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/conditions.html' title='Conditions'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-4455725869772058418</id><published>2007-08-19T21:54:00.001-07:00</published><updated>2007-08-20T09:26:19.876-07:00</updated><title type='text'>Classes</title><content type='html'>Actionscript 3 is super class based, which is cool because classes are extremely powerful, and I've never really used them before. Now I have to learn how to use them. Classes are awesome cuz you can make one and use it over and over again. Here are some examples of simple simple classes:&lt;br /&gt;&lt;br /&gt;You can download all the files here: &lt;a href="http://myftp.natesdesign.com/flash/other/as3/classes.zip"&gt;[download]&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;HERE IS HOW THE CODE IS SET UP FOR A SIMPLE CLASS:&lt;br /&gt;This code needs to be in a seperate .as file&lt;br /&gt;whatever you save this file as is what your CLASS NAME will be&lt;br /&gt;&lt;br /&gt;/// this class adds to the built in movie clip class ///&lt;br /&gt;package{&lt;br /&gt; import flash.display.MovieClip; //Imports movie clip class&lt;br /&gt; import flash.events.MouseEvent; //Imports the mouse event&lt;br /&gt; &lt;br /&gt; public class FunButton extends MovieClip{&lt;br /&gt;  private var _origXScale:Number; //create a variable to remember the original size of movie clip&lt;br /&gt;  private var _origYScale:Number; //ditto&lt;br /&gt;  &lt;br /&gt;  public function FunButton(){&lt;br /&gt;   _origXScale = this.scaleX; //set x scale variable&lt;br /&gt;   _origYScale = this.scaleY; //set y scale variable&lt;br /&gt;   this.addEventListener(MouseEvent.ROLL_OVER, grow); //add listener. call function "grow"&lt;br /&gt;   this.addEventListener(MouseEvent.ROLL_OUT, shrink); //add listener. call function "shrink"&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  private function grow(event:MouseEvent):void{&lt;br /&gt;   this.scaleX *= 1.5; //this is make the mc grow to 150% its size (width)&lt;br /&gt;   this.scaleY *= 1.5; //this is make the mc grow to 150% its size (height)&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  private function shrink(event:MouseEvent):void{&lt;br /&gt;   this.scaleX = _origXScale; //go back to normal&lt;br /&gt;   this.scaleY = _origYScale; //go back to normal&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;now if you have a movieclip in an fla file, right click on it in the library and go to "linkage" and in the class field type in the CLASS NAME (whatever you named your .as file) and all instances of that movieclip will have those proporties. This is the very very very tip of the iceburg of what classes can do.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-4455725869772058418?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/4455725869772058418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=4455725869772058418&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/4455725869772058418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/4455725869772058418'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/classes.html' title='Classes'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-7620266991962710966</id><published>2007-08-19T17:31:00.001-07:00</published><updated>2007-09-06T11:22:05.560-07:00</updated><title type='text'>Events</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Events are WAY different than they used to be. Here's a quick rundown:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;MOUSE EVENTS:&lt;/span&gt;&lt;br /&gt;You now have to create a listener whenever you have a mouse event. Here is an example:&lt;br /&gt;&lt;br /&gt;box_mc.addEventListener(MouseEvent.CLICK, onClick); //add click event and tell it to call onClick function&lt;br /&gt;box_mc.addEventListener(MouseEvent.ROLL_OVER, boxOver); //rollover event, call boxOver function&lt;br /&gt;box_mc.addEventListener(MouseEvent.ROLL_OUT, boxOut); //rollout even, call function called boxOver&lt;br /&gt;&lt;br /&gt;function boxOver(event:MouseEvent):void{&lt;br /&gt; event.target.alpha = .5;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function boxOut(event:MouseEvent):void{&lt;br /&gt; event.target.alpha = 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function onClick(event:MouseEvent):void{&lt;br /&gt; //trace("you've been clicked");&lt;br /&gt; event.target.y -= 15;&lt;br /&gt; event.target.rotation += 45;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;box_mc.buttonMode = true; //this tells box_mc to be a button and show the hand cursor&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;KEYBOARD EVENTS:&lt;/span&gt;&lt;br /&gt;stage.addEventListener(KeyboardEvent.KEY_DOWN, jump); //add listener just like the mouse events (key down)&lt;br /&gt;stage.addEventListener(KeyboardEvent.KEY_UP, land); //key up listener&lt;br /&gt;&lt;br /&gt;function jump(event:KeyboardEvent):void{&lt;br /&gt; //trace(event.keyCode);&lt;br /&gt; box_mc.y -= 50;&lt;br /&gt; stage.removeEventListener(KeyboardEvent.KEY_DOWN, jump); //this will delete the key down listener when you push a key&lt;br /&gt; stage.addEventListener(Event.ENTER_FRAME, flip); //this is the new enterframe event (this will call flip function)&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function land(event:KeyboardEvent):void{&lt;br /&gt; box_mc.y += 50; &lt;br /&gt; stage.addEventListener(KeyboardEvent.KEY_DOWN, jump); //this creates a new key down listener when you release a  key&lt;br /&gt; stage.removeEventListener(Event.ENTER_FRAME, flip); //this removes the enterframe event when you release a key&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function flip(event:Event):void{&lt;br /&gt; box_mc.rotation += 45; //constantly rotates the box 45 degrees&lt;br /&gt; box_mc.x += 10; //constantly moves the box 10 pixels to the right&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;LINK TO WEBSITE:&lt;/span&gt;&lt;br /&gt;var link:URLRequest = new URLRequest("http://www.google.com"); //make the request&lt;br /&gt;&lt;br /&gt;box_mc.addEventListener(MouseEvent.CLICK, onClick); //create the click listener, call function called onClick&lt;br /&gt;&lt;br /&gt;function onClick(event:MouseEvent):void{&lt;br /&gt; navigateToURL(link); //this will send the browser to the url specified above&lt;br /&gt;}&lt;br /&gt;box_mc.buttonMode = true; //make the movieclip a button&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;TIMER EVENT:&lt;/span&gt;&lt;br /&gt;this is like the new setInterval&lt;br /&gt;&lt;br /&gt;var jumpTimer:Timer = new Timer(5000, 10); //first peramiter is how often, second is how many times&lt;br /&gt;&lt;br /&gt;jumpTimer.addEventListener(TimerEvent.TIMER, jump); //sets a listener to the jumpTimer timer, call function "jump"&lt;br /&gt;&lt;br /&gt;function jump(event:TimerEvent):void{&lt;br /&gt; animation_mc.play();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;jumpTimer.start(); //this starts the timer DUH&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-7620266991962710966?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/7620266991962710966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=7620266991962710966&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7620266991962710966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7620266991962710966'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/events.html' title='Events'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-8637488434169140708</id><published>2007-08-19T17:27:00.000-07:00</published><updated>2007-09-06T11:21:23.100-07:00</updated><title type='text'>Functions</title><content type='html'>Functions in as3 are pretty much the same as they were in as2. Before you had the option of returning a value from the function and defining what was going to be returned. Now you HAVE to tell flash what is going to be returned, even if nothing is going to be. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;If you're going to return a number, this is how you do it:&lt;/span&gt;&lt;br /&gt;function moveBox():Number{&lt;br /&gt; box1_mc.y -= 100;&lt;br /&gt; box1_mc.rotation += 45;&lt;br /&gt; box1_mc.scaleX = 2;&lt;br /&gt; box1_mc.scaleY = 2;&lt;br /&gt; return box1_mc.y;&lt;br /&gt;}&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;If you're not going to return anything, this is how you do it&lt;/span&gt;&lt;br /&gt;function moveBox():void{&lt;br /&gt; box1_mc.y -= 100;&lt;br /&gt; box1_mc.rotation += 45;&lt;br /&gt; box1_mc.scaleX = 2;&lt;br /&gt; box1_mc.scaleY = 2;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-8637488434169140708?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/8637488434169140708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=8637488434169140708&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/8637488434169140708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/8637488434169140708'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/functions.html' title='Functions'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-7289971259299169975</id><published>2007-08-19T17:18:00.000-07:00</published><updated>2007-08-19T18:27:38.156-07:00</updated><title type='text'>Movieclip Proporties</title><content type='html'>Movie clip proporties no longer include a _ anymore. Before when it would be box_mc._x it is now box_mc.x. Also, the scale proporty has changed all together. One more thing, for anything that has a percentage (like alpha or scale) you need to put it in a decimal point. alpha = 50 is now alpha =.5 and so forth. Here is a list of some common proporties:&lt;br /&gt;&lt;br /&gt;movieclip_mc.alpha = .5;&lt;br /&gt;movieclip_mc.rotation = 0;&lt;br /&gt;movieclip_mc.x = 100;&lt;br /&gt;movieclip_mc.y = 100;&lt;br /&gt;movieclip_mc.scaleY = 1.5;&lt;br /&gt;movieclip_mc.scaleX = 1.5;&lt;br /&gt;movieclip_mc.width = 280;&lt;br /&gt;movieclip_mc.height = 10;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-7289971259299169975?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/7289971259299169975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=7289971259299169975&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7289971259299169975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/7289971259299169975'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/movieclip-proporties.html' title='Movieclip Proporties'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-791533537319708772</id><published>2007-08-19T17:11:00.000-07:00</published><updated>2007-12-03T13:31:34.723-08:00</updated><title type='text'>Variables</title><content type='html'>&lt;span style="font-weight:bold;"&gt;In as 3, you have to tell flash what you're going to put into a variable. For example:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;var userName:String = "Nate";&lt;br /&gt;var userAge:Number = 25;&lt;br /&gt;var myArray:Array = ["a","b","c","d"];&lt;br /&gt;var theToggle:Boolean = true;&lt;br /&gt;var whatever:*; //You can pass anything into that variable&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;You also HAVE to put the "var" on there. That wasn't required before, but now it is.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-791533537319708772?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/791533537319708772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=791533537319708772&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/791533537319708772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/791533537319708772'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/variables.html' title='Variables'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6442692497332904681.post-5394121036419331213</id><published>2007-08-17T10:01:00.001-07:00</published><updated>2007-08-29T10:01:00.464-07:00</updated><title type='text'>Actionscript 3.0</title><content type='html'>Everyone has to start somewhere, so here goes nothing. Just as I thought I was getting a handle on Flash and actionscript, they throw me a change-up and put out as3. In this blog I intend to document everything I learn so that I can reference this blog and remember things easily. If anyone else stumbles upon this blog and can get help from it, then that is just great. I have a pre-actionscript 3.0 blog that already has some good stuff in it, and you can see it here: &lt;a href="http://flashnate.blogspot.com" target="_blank"&gt;http://flashnate.blogspot.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6442692497332904681-5394121036419331213?l=as3journal.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://as3journal.blogspot.com/feeds/5394121036419331213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6442692497332904681&amp;postID=5394121036419331213&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5394121036419331213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6442692497332904681/posts/default/5394121036419331213'/><link rel='alternate' type='text/html' href='http://as3journal.blogspot.com/2007/08/actionscript-30.html' title='Actionscript 3.0'/><author><name>nate</name><uri>http://www.blogger.com/profile/05392430745134309332</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='15' src='http://www.natesdesign.com/other/avatar.gif'/></author><thr:total>0</thr:total></entry></feed>
