<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dreaming in Flash &#187; Tutorial</title>
	<atom:link href="http://www.dreaminginflash.com/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<lastBuildDate>Mon, 12 Jul 2010 15:22:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex Bindings in AS3 Projects</title>
		<link>http://www.dreaminginflash.com/2008/07/29/flex-bindings-in-as3-projects/</link>
		<comments>http://www.dreaminginflash.com/2008/07/29/flex-bindings-in-as3-projects/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 10:55:55 +0000</pubDate>
		<dc:creator>Tiago Bilou</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=155</guid>
		<description><![CDATA[Since 99.9% of the work we do is Flash, we pretty much use flex builder to develop Actionscript Projects. One of the things I really wanted to have was bindings. Here's how to use Flex Bindings in Actionscript only projects.
Remember that the Flash framework (textfields, movieclips, sprites, etc) doesn't dispatch the data-binding event. This means [...]]]></description>
			<content:encoded><![CDATA[<p>Since 99.9% of the work we do is Flash, we pretty much use flex builder to develop Actionscript Projects. One of the things I really wanted to have was bindings. Here's how to use Flex Bindings in Actionscript only projects.</p>
<p><strong>Remember that the Flash framework (textfields, movieclips, sprites, etc) doesn't dispatch the <em>data-binding event</em>. This means that pretty much the only things you can bind are variables.</strong></p>
<p>Make sure you add  the flex <em>framework.swc</em> to your project Library Path to have access to the mx.binding.util class.</p>
<p><strong>ChangeWatcher:</strong></p>
<p>Acts like the watch on AS2. It watches a variable for changes and when something happens fires an event. Make sure you call the canWatch to ensure that you can watch it!</p>
<p>There are 3 ways to specify the second parameter, the chain.</p>
<ol>
<li>A String containing the name of a public bindable property of the host object.
<p> <code>ChangeWatcher.watch(this, "myvar", handler)</code>
</li>
<li>An Object in the form: { name: property name, access: function(host) { return host[name] } }. The Object contains the name of a public bindable property, and a function which serves as a getter for that property.
<p><code>ChangeWatcher.watch(this, { name:"myvar", getter: function():String { return "something" }}, handler);</code>
</li>
<li>A non-empty Array containing any combination of the first two options. This represents a chain of bindable properties accessible from the host. For example, to watch the property host.a.b.c, call the method as: watch(host, ["a","b","c"]</li>
</ol>
<p><strong>BindingUtils.bindProperty</strong></p>
<p>Works pretty much the same way as the watch, but instead of having to handle and event it allows you to immediately bind two properties one-way.<br />
The first two parameters are for the the target, the second parameters are the triggers.</p>
<p><code>BindingUtils.bindProperty( this, "va1", this, "var2");</code></p>
<p>you can also use the same syntax for the chain.</p>
<p><strong>References:</strong><em></p>
<p><a href="http://livedocs.adobe.com/flex/3/langref/mx/binding/utils/package-detail.html">Language References</a><br />
<a href="http://labs.flexcoders.nl/2006/12/19/binding-101-changewatcher-and-bindingutils/">Another Tutorial</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/07/29/flex-bindings-in-as3-projects/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Dreaming in Flash at The Tech Labs</title>
		<link>http://www.dreaminginflash.com/2008/07/07/dreaming-in-flash-at-the-tech-labs/</link>
		<comments>http://www.dreaminginflash.com/2008/07/07/dreaming-in-flash-at-the-tech-labs/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 11:39:31 +0000</pubDate>
		<dc:creator>Idoru</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Dreaming in Flash]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Papervision3d]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[the tech labs]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=149</guid>
		<description><![CDATA[We're proud to announce that Dreaming has published a few tutorials over at The Tech Labs, these tutorials are exclusive and can be accessed at: http://www.thetechlabs.com/
They include an air contact manager, and two sound equalizer how-tos with one of them showing how to get those cool pv3d equalizers.
Enjoy!

]]></description>
			<content:encoded><![CDATA[<p>We're proud to announce that Dreaming has published a few tutorials over at <a href="http://www.thetechlabs.com/" target="_blank">The Tech Labs</a>, these tutorials are exclusive and can be accessed at: <a href="http://www.thetechlabs.com/" target="_blank">http://www.thetechlabs.com/</a></p>
<p>They include an air contact manager, and two sound equalizer how-tos with one of them showing how to get those cool pv3d equalizers.</p>
<p>Enjoy!</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/07/07/dreaming-in-flash-at-the-tech-labs/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Giving Flex Builder a Library (SWC)</title>
		<link>http://www.dreaminginflash.com/2008/02/27/giving-flex-builder-a-library-swc/</link>
		<comments>http://www.dreaminginflash.com/2008/02/27/giving-flex-builder-a-library-swc/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 16:55:06 +0000</pubDate>
		<dc:creator>Idoru</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/02/27/giving-flex-builder-a-library-swc/</guid>
		<description><![CDATA[Have you ever wondered why Flex doesn't have a nice library like Flash IDE?
You'd love to use Flex but not having that nice little library there puts you off?
Well here's how we do it:
First create your FLA file, then create all the items you want inside (they don't need to be on stage just library [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wondered why Flex doesn't have a nice library like Flash IDE?<br />
You'd love to use Flex but not having that nice little library there puts you off?<br />
Well here's how we do it:<br />
First create your FLA file, then create all the items you want inside (they don't need to be on stage just library will do), be sure to tick '<em>export for actionscript</em>' and '<em>export in firstframe</em>', also you can change the base class to something else that will add functionality to your movieclip.<br />
Then in <strong>export preferences</strong>, tick '<em>export swc</em>'.<br />
Ok so now we have a nice little SWC file, how do we get it into Flex? Easy <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Open project properties, go to <strong>Build Path &gt; Library Path</strong> and add your SWC file.<br />
That's it!<br />
Congratulations now you have auto complete goodness on your AS3 Flex Builder application <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Just keep in mind that these elements will be exported in the initial load of your website, so if you want to preload them be sure to use the <a TARGET="_blank" HREF="http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/">preloader</a>.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/02/27/giving-flex-builder-a-library-swc/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Customized actions for FLVPlayback Component</title>
		<link>http://www.dreaminginflash.com/2008/01/22/customized-actions-for-flvplayback-component/</link>
		<comments>http://www.dreaminginflash.com/2008/01/22/customized-actions-for-flvplayback-component/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 10:57:30 +0000</pubDate>
		<dc:creator>ruffy</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Components]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[WorkAround]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/01/22/customized-actions-for-flvplayback-component/</guid>
		<description><![CDATA[If you need a standard flash videoplayer, then the FLVPlayback component is the right thing for you.
Just create a new FLA and drag&#38;drop a FVLPlayback component from the components library into a movieclip in your library, export it for actionscript and compile the SWC.
All the functionallity stuff is already handled by adobe. But that's where [...]]]></description>
			<content:encoded><![CDATA[<p>If you need a standard flash videoplayer, then the FLVPlayback component is the right thing for you.</p>
<p class="MsoNormal"><span lang="FR-CH">Just create a new FLA and drag&amp;drop a FVLPlayback component from the components library into a movieclip in your<o:p></o:p> library, export it for actionscript and compile the SWC.<o:p></o:p></span></p>
<p class="MsoNormal">All the functionallity stuff is already handled by adobe. <span lang="FR-CH">But that's where I got stuck for quite some<o:p></o:p></span><br />
time. I needed a player, that used the forwardButton and backButton for switching the videos (and not seeking forward and back).</p>
<p class="MsoNormal"><span lang="FR-CH">The answer was really simple: Just override the functions once the component loaded its skin:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR-CH"><o:p><br />
</o:p></span><br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="250" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=250&file=index.php&ftf=true&postID=73&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="250" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=250&file=index.php&ftf=true&postID=73&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/01/22/customized-actions-for-flvplayback-component/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Auto-Generate Getters and Setters in Flex Builder</title>
		<link>http://www.dreaminginflash.com/2007/12/21/auto-generate-getters-and-setters-in-flex-builder/</link>
		<comments>http://www.dreaminginflash.com/2007/12/21/auto-generate-getters-and-setters-in-flex-builder/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 11:37:54 +0000</pubDate>
		<dc:creator>Tiago Bilou</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/12/21/auto-generate-getters-and-setters-in-flex-builder/</guid>
		<description><![CDATA[I've been writing a lot of getters and setters lately (and spending way too much time doing that...), so I googled for some sort of plug-in for Eclipse/Flex Builder and found a great resource called Project Dash Here's a nice script to use with Dash to generate getters and setters for your variables  

Inside [...]]]></description>
			<content:encoded><![CDATA[<p>I've been writing a lot of getters and setters lately (and spending way too much time doing that...), so I googled for some sort of plug-in for Eclipse/Flex Builder and found a great resource called <a href="http://www.eclipse.org/dash/">Project Dash</a> <a href="http://eokyere.blogspot.com/2007/09/productivity-with-dash-in-eclipse.html">Here's</a> a nice script to use with Dash to generate getters and setters for your variables <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<ol>
<li>Inside FlexBuilder goto Help-&gt;Software Updates-&gt;Find and Install (if you ran into an error about <em>retrieving "feature.xml"</em> delete the site.xml file in your Flex Builder directory)</li>
<li>add the <a href="http://download.eclipse.org/technology/dash/update/" title="remote update url">remote update url</a> ; update and restart</li>
<li>when you restart you should see a Scripts menu and a Project in your workplace called <em>Eclipse Monkey Examples</em></li>
<li>Create a new file (with a .js extension) in the scripts folder inside the <em>Eclipse Monkey Examples</em></li>
<li>Write you monkey script in there (copy and paste the script to generate the getters and setters into the new file)</li>
</ol>
<p>References:<br />
<a href="http://eokyere.blogspot.com/2007/09/productivity-with-dash-in-eclipse.html">Post with script to generate Getters and Setters</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2007/12/21/auto-generate-getters-and-setters-in-flex-builder/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Taking a snapshot of an flv</title>
		<link>http://www.dreaminginflash.com/2007/12/03/taking-a-snapshot-of-an-flv/</link>
		<comments>http://www.dreaminginflash.com/2007/12/03/taking-a-snapshot-of-an-flv/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 17:48:39 +0000</pubDate>
		<dc:creator>Idoru</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Bitmap]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[WorkAround]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/12/03/taking-a-snapshot-of-an-flv/</guid>
		<description><![CDATA[Following my last post on 9-Slice items, here comes another nice one on Bitmap.draw() and the security sandbox.
Many people know the solution to this one, but i just found myself looking for it for too long, so here it goes  
If you want to take a snapshot of a running Video object, you can't, [...]]]></description>
			<content:encoded><![CDATA[<p>Following my last post on 9-Slice items, here comes another nice one on Bitmap.draw() and the security sandbox.<br />
Many people know the solution to this one, but i just found myself looking for it for too long, so here it goes <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you want to take a snapshot of a running Video object, you can't, you'll be alerted by the flash player that you are violating<br />
the sandbox security. So how do we do it?<br />
Easy as pie <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<code><br />
video.attachNetStream( null );<br />
bitmapData.draw( video );<br />
video.attachNetStream ( myNetStreamObject );<br />
</code></p>
<p>Three very simple lines of code but that are hard to come by.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2007/12/03/taking-a-snapshot-of-an-flv/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Automating the Build Process &#8211; Part 1</title>
		<link>http://www.dreaminginflash.com/2007/11/30/automating-the-build-process-part-1/</link>
		<comments>http://www.dreaminginflash.com/2007/11/30/automating-the-build-process-part-1/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 20:01:41 +0000</pubDate>
		<dc:creator>Tiago Bilou</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/30/automating-the-build-process-part-1/</guid>
		<description><![CDATA[Improving the work flow in the development of Flash applications is something that has been in my mind for some time now, specially after seeing some presentations on the subject at Max Barcelona.
Usually the applications are not big, and are developed by a single programmer in less than a month, so they are manageable, but [...]]]></description>
			<content:encoded><![CDATA[<p>Improving the work flow in the development of Flash applications is something that has been in my mind for some time now, specially after seeing some presentations on the subject at Max Barcelona.</p>
<p>Usually the applications are not big, and are developed by a single programmer in less than a month, so they are manageable, but when a big one come along chaos is installed.</p>
<p><span id="more-48"></span><br />
Up until recently, every application developed was compiled (built) in the programmer's computer using Flex Builder. If, for some reason, another person had to do some changes and generate a new build, he would be, in lack of a better word, <em>screwed</em>. To make things worse, all the source code (actionscript classes) is in Subversion but all the graphical elements are in Adobe's Version Cue Server (for the designers).This means that you have to:</p>
<ul>
<li>get the source from the subversion</li>
<li>Get the .fla from Version Cue and compile an .swf or .swc</li>
<li>Place the .swf or .swc inside the project's folder</li>
<li>Discover which libraries the project uses</li>
<li>...</li>
</ul>
<p>There are many things wrong in the way we work, So we decided it was time to make some changes. After this "revolution" we hope to get on track. Some implementations are obvious and <strike>can</strike> should be used by everyone, others are more subtil and will only make sense in our work environment.</p>
<p>There are some great resources available out there. With this series we just want to describe in a detailed way all the steps we took to automate our build process</p>
<p><strong>Structure your Flex Projects</strong></p>
<p>The first thing we did was create a "structure template" for all our flex projects (this is one of the obvious ones).</p>
<p><img src="http://www.dreaminginflash.com/wp-content/uploads/2007/11/fb_directory_structure.png" alt="Flex Builderâ€™&lt;p&gt;s Directory Structure" /></p>
<p>This should look pretty obvious. The folders are all created manually after creating a new actionscript project inside flex builder.</p>
<p><strong>src</strong> - This folder holds all the classes used in the project. Make sure that when you create a new project you specify <em>src</em> as your Main source folder.</p>
<p><strong>externals</strong> - This was one of the __biggest__ improvements in our work flow. (read below)</p>
<p><strong>fla</strong> - This folder holds all the designer's FLA files. We make sure the export path on those files point to <em>../assets/</em></p>
<p><strong>assets</strong> - Holds all the assets needed by the application, like images, swf files, videos... Because the assets folder is not inside the main source file, all the references must be made using the ../ notation. (see deploy)</p>
<p><strong>docs</strong> - Holds the documentation for the project as well as ASDOC generated htmls docs for the API</p>
<p><strong>lib</strong> - Currently I'm only using this folder to store the <em>"flexTasks.jar"</em> file needed by ant to compile the project.</p>
<p><strong>bin</strong> - This is the folder used by Flex Builder and ANT to generate the swf file into.</p>
<p><strong>deploy</strong> - This is where we create the structure for the application deployment. Because the final swf file will look for assets in <em>../assets</em> we need to make sure the swf file is one level down the hierarchical directory structure.</p>
<p><img src="http://www.dreaminginflash.com/wp-content/uploads/2007/11/fb_deploy_structure.png" alt="Deploy Structure" /></p>
<p><strong>Use svn_externals</strong></p>
<p><em>"Sometimes it is useful to construct a working copy that is made out of a number of different checkouts. For example, you may want different subdirectories to come from different locations in a repository, or perhaps from different repositories altogether"</em> in <a href="http://svnbook.red-bean.com/en/1.1/ch07s04.html" target="_blank">svnbook</a></p>
<p>We always use a couple of libraries in our projects. Stuff like our own internal classes, <a href="http://code.google.com/p/tweener/" title="Tweener" target="_blank">Tweener</a> or <a href="http://code.google.com/p/papervision3d/" title="Papervision3D" target="_blank"> Papervision</a>. Before using externals, some developers in the flash team had the library classes stashed away somewhere in their hdd to centralize information and avoid replication, while others copied all the library classes into the main source folder every time they created a new project. Both approaches get the job done but, they both have flaws.</p>
<p>In order to successfully compile the project you had to have all the classes (dependencies) installed on your machine. This was troublesome most of the times when trying to compile the project in a machine other than the one used to program the application.</p>
<p>With <em>svn_externals</em> we don't keep copies of the library classes in our hdd. Every external class library has it's own svn project (prefixed by <em>external</em>). This means that in our svn server we have a project named <em>external_papervision</em>, or <em>extrenal_Tweener</em>. Having the libraries code in our svn server allows us to keep track of versions and we can easily specify which version we want to use in a given project.</p>
<p>We use externals not only for library classes, but for any external tool needed to compile the project (like ant).With svn_externals we guarantee that the project will build anywhere, anytime (because all the dependencies are taken care of by svn_externals).</p>
<p>Read how to do it in the <a href="http://svnbook.red-bean.com/en/1.1/ch07s04.html" target="_blank">svnbook</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2007/11/30/automating-the-build-process-part-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Actionscript 3 Preloader</title>
		<link>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/</link>
		<comments>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 10:20:34 +0000</pubDate>
		<dc:creator>Idoru</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/</guid>
		<description><![CDATA[Hey,
SoÂ recentlyÂ i'veÂ comeÂ toÂ aÂ problem,Â howÂ doÂ iÂ createÂ aÂ preloaderÂ forÂ myÂ 
websiteÂ ifÂ iÂ onlyÂ use EclipseÂ asÂ developmentÂ enviornment?
ThereÂ isÂ noÂ mainÂ timelineÂ per se,Â norÂ canÂ iÂ chooseÂ whereÂ toÂ exportÂ myÂ assets,Â 
soÂ afterÂ someÂ diggingÂ iÂ cameÂ upÂ withÂ Â this solution:
TheÂ mainÂ file:

		  
		  
		  
		  
		  
		  
		
AndÂ theÂ preloaderÂ file:

		  
		  
		  
		  
		  
		  
		
EssentiallyÂ whatÂ i'mÂ doingÂ hereÂ isÂ instructingÂ theÂ compilerÂ toÂ addÂ aÂ frame
withÂ myPreloader asÂ aÂ factory and calling my main file from it.
Should you have any questions feel free to ask, here is the swf.

]]></description>
			<content:encoded><![CDATA[<p>Hey,</p>
<p>SoÂ recentlyÂ i'veÂ comeÂ toÂ aÂ problem,Â howÂ doÂ iÂ createÂ aÂ preloaderÂ forÂ myÂ <br />
websiteÂ ifÂ iÂ onlyÂ use EclipseÂ asÂ developmentÂ enviornment?<br />
ThereÂ isÂ noÂ mainÂ timelineÂ per se,Â norÂ canÂ iÂ chooseÂ whereÂ toÂ exportÂ myÂ assets,Â <br />
soÂ afterÂ someÂ diggingÂ iÂ cameÂ upÂ withÂ Â this solution:</p>
<p>TheÂ mainÂ file:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="250" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=250&file=index.php&ftf=true&postID=37&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="250" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=250&file=index.php&ftf=true&postID=37&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>AndÂ theÂ preloaderÂ file:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="250" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=250&file=index.php&ftf=true&postID=37&no=1&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="250" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=250&file=index.php&ftf=true&postID=37&no=1&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>EssentiallyÂ whatÂ i'mÂ doingÂ hereÂ isÂ instructingÂ theÂ compilerÂ toÂ addÂ aÂ frame<br />
withÂ myPreloader asÂ aÂ factory and calling my main file from it.<br />
Should you have any questions feel free to ask, here is the <a TITLE="swf" HREF="http://www.dreaminginflash.com/wp-content/uploads/2007/11/preloadertutorial.swf">swf.</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2007/11/13/actionscript-3-preloader/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>(As2) swapDepths Vs (As3) setChildIndex</title>
		<link>http://www.dreaminginflash.com/2007/11/06/as2-swapdepths-vs-as3-setchildindex/</link>
		<comments>http://www.dreaminginflash.com/2007/11/06/as2-swapdepths-vs-as3-setchildindex/#comments</comments>
		<pubDate>Tue, 06 Nov 2007 09:31:59 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript2]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/06/as2-swapdepths-vs-as3-setchildindex/</guid>
		<description><![CDATA[AS2 was an anarchy language, if you need to put a movieClip visually above all the things in the stage, you can do movieClip.swapDepths(this.getNextHighestDepth()). So it works, but in reality your are swapping your movieClip with a movieClip that didnâ€™t exist, so in AS3 you canâ€™t do that but we have setChildIndex method. You Can [...]]]></description>
			<content:encoded><![CDATA[<p>AS2 was an anarchy language, if you need to put a movieClip visually above all the things in the stage, you can do movieClip.swapDepths(this.getNextHighestDepth()). So it works, but in reality your are swapping your movieClip with a movieClip that didnâ€™t exist, so in AS3 you canâ€™t do that but we have setChildIndex method. You Can do setChildIndex(numChildren-1)</p>
<p><strong>AS2</strong><br />
<img src='http://www.dreaminginflash.com/wp-content/uploads/2007/11/as2.jpg' alt='AS2' /><br />
<strong>AS3</strong><br />
<img src='http://www.dreaminginflash.com/wp-content/uploads/2007/11/as3.jpg' alt='AS3' /></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2007/11/06/as2-swapdepths-vs-as3-setchildindex/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Filling MovieClips with patterns</title>
		<link>http://www.dreaminginflash.com/2007/11/05/filling-movieclips-with-patterns/</link>
		<comments>http://www.dreaminginflash.com/2007/11/05/filling-movieclips-with-patterns/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 18:40:23 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2007/11/05/filling-movieclips-with-patterns/</guid>
		<description><![CDATA[Tinting a MovieClip is not a new thing, we see a lot of Web sites doing that, example: In a t-shirt selling store, you choose a shirt and then you can choose it color. But yesterday me and Pedro were talking that it could be nice to fill shapes with patterns, so it quite simple:

		 [...]]]></description>
			<content:encoded><![CDATA[<p>Tinting a MovieClip is not a new thing, we see a lot of Web sites doing that, example: In a t-shirt selling store, you choose a shirt and then you can choose it color. But yesterday me and Pedro were talking that it could be nice to fill shapes with patterns, so it quite simple:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="250" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=250&file=index.php&ftf=true&postID=29&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="250" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=250&file=index.php&ftf=true&postID=29&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p><a href='http://www.dreaminginflash.com/wp-content/uploads/2007/11/example.zip' title='Example'>Example</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2007/11/05/filling-movieclips-with-patterns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
