<?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/"
	>

<channel>
	<title>Code and Visual</title>
	<atom:link href="http://www.codeandvisual.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codeandvisual.com</link>
	<description>Creative Design and Development</description>
	<pubDate>Wed, 10 Mar 2010 10:32:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open source AS3 frameworks to test run</title>
		<link>http://www.codeandvisual.com/2009/open-source-as3-frameworks-to-test-run/</link>
		<comments>http://www.codeandvisual.com/2009/open-source-as3-frameworks-to-test-run/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 22:46:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[APIs]]></category>

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

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

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

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

		<category><![CDATA[open source]]></category>

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

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

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

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=553</guid>
		<description><![CDATA[With so many handy AS3 frameworks out there I often get excited about each new offering, but in the end I&#8217;m overwhelmed with the options and so rarely give any a test run.
&#160;
Frameworks I use
Here&#8217;s a list of frameworks that I do rely on heavily and couldn&#8217;t live without (This is mostly for Flash website [...]]]></description>
			<content:encoded><![CDATA[<p>With so many handy AS3 frameworks out there I often get excited about each new offering, but in the end I&#8217;m overwhelmed with the options and so rarely give any a test run.<br />
&nbsp;<br />
<strong>Frameworks I use</strong></p>
<p>Here&#8217;s a list of frameworks that I do rely on heavily and couldn&#8217;t live without (This is mostly for Flash website development).</p>
<p><a href="http://www.puremvc.org" onclick="pageTracker._trackPageview('/outgoing/www.puremvc.org?referer=');">PureMVC</a> Brilliant MVC framework for AS3 (and a plethora of other platforms). This was my first foray into MVC and was hard going to get my head around, but now, I don&#8217;t look back!</p>
<p><a href="http://www.asual.com/swfaddress/" onclick="pageTracker._trackPageview('/outgoing/www.asual.com/swfaddress/?referer=');">swfAddress</a> Integral for current Flash website development. Adds deep linking and browser history to your websites. Another good thing about swfAddress is that it forces you to use elements of good practice when developing your navigation code, it&#8217;s asymmetrical and requires a central navigation function.</p>
<p><a href="http://code.google.com/p/tweener/" onclick="pageTracker._trackPageview('/outgoing/code.google.com/p/tweener/?referer=');">Tweener</a> One of the many Tween engines out there. I like Tweener because it&#8217;s simple to use and has shortcuts for really handy things (like colour effects and sound control). Most tween engines these days all do pretty much the same thing - either way they are vital tools for any actionscript animation.</p>
<p>And of course I have my own Tool and UI packages that I leverage on projects, being able to streamline and make more robust with each new job.<br />
&nbsp;<br />
<strong>Frameworks to test run</strong></p>
<p>But now to the point of this post. My new resolution is to tackle the mountain of frameworks out there, one at a time. I&#8217;ll do a quick &#8220;hello world&#8221; demo with each to get some hands on experience and see any potential for practical use. So, I&#8217;ll add to this list, but to start off with I&#8217;ll be looking at:</p>
<p><a href="http://code.google.com/p/flash-camouflage/" onclick="pageTracker._trackPageview('/outgoing/code.google.com/p/flash-camouflage/?referer=');">Flash Camoflage</a> I don&#8217;t know too much about camoflage, but my general understanding is  that it&#8217;s a Flash chrome and skinning framework</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/open-source-as3-frameworks-to-test-run/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing the behaviour of a class without recompiling.</title>
		<link>http://www.codeandvisual.com/2009/changing-the-behaviour-of-a-class-without-recompiling/</link>
		<comments>http://www.codeandvisual.com/2009/changing-the-behaviour-of-a-class-without-recompiling/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 10:53:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Classes]]></category>

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

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

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

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

		<category><![CDATA[loading swfs]]></category>

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

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=514</guid>
		<description><![CDATA[This is a feature in AS3 that I hadn&#8217;t come accross before. If you ever load swf files into one another you might not know it, but you&#8217;ll be dealing with application domains. I&#8217;ve loaded in SWF&#8217;s before, but never had to pay any specific attention to the applicationDomain. 
Basically they allow you to specify [...]]]></description>
			<content:encoded><![CDATA[<p>This is a feature in AS3 that I hadn&#8217;t come accross before. If you ever load swf files into one another you might not know it, but you&#8217;ll be dealing with <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html" onclick="pageTracker._trackPageview('/outgoing/livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/ApplicationDomain.html?referer=');">application domains</a>. I&#8217;ve loaded in SWF&#8217;s before, but never had to pay any specific attention to the applicationDomain. </p>
<p>Basically they allow you to specify where the class definitions for an SWF are sourced from. By default if two SWF files use a class with the same name, then only the definition found in the parent SWF will be used. If you want the child SWF to use it&#8217;s own version of that class, then you need to give it it&#8217;s own application domain. </p>
<p>From the Adobe docs:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">        request = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;http://www.url.com/myflashfile.swf&quot;</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #000000; font-weight: bold;">var</span> context:LoaderContext = <span style="color: #000000; font-weight: bold;">new</span> LoaderContext<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
        context.<span style="color: #006600;">applicationDomain</span>= <span style="color: #000000; font-weight: bold;">new</span> applicationDomain<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
        loader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>request,context<span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>The current project I&#8217;m working on loads in a variety of SWFs that extend a common base class. It ended up that I needed to make a change to the base class, so at first I thought I was going to have to go and recompile all of the external swf files in order to incorporate the changes I&#8217;d made. But actually, this wasn&#8217;t the case due to the default behaviour of the applicationDomain. It turned out that as long as that base class was used in the parent swf, then all the external swfs that were loaded in would use the defintion found in it and not their own. Way to go! It meant that I could tweak and make changes to those external swfs, without ever open or recompile them. It&#8217;s turned out to be really useful, and painless!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/changing-the-behaviour-of-a-class-without-recompiling/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rainbow Update 1.0.4 - New Rich Text Editor</title>
		<link>http://www.codeandvisual.com/2009/rainbow-update-104-new-rich-text-editor/</link>
		<comments>http://www.codeandvisual.com/2009/rainbow-update-104-new-rich-text-editor/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 15:25:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rainbow]]></category>

		<category><![CDATA[Embed Fonts]]></category>

		<category><![CDATA[Flash CMS]]></category>

		<category><![CDATA[Rich Text Editor]]></category>

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

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

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

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=485</guid>
		<description><![CDATA[
It&#8217;s exciting times at Code and Visual as we are happy to announce a new upgrade for Rainbow Live Flash CMS that sees the addition of a rich text editor for live text formatting!
&#8220;WYSIWYG&#8221;- What You See Is What You Get
Using the Rich Text Editor you are now able to add formatting to your XML [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codeandvisual.com/wp-content/uploads/rich_text_editor.gif"><img src="http://www.codeandvisual.com/wp-content/uploads/rich_text_editor.gif" alt="rich_text_editor" title="rich_text_editor" width="500" height="383" style="margin:20px;margin-top:0;"  class="alignright size-full wp-image-486" /></a></p>
<p>It&#8217;s exciting times at Code and Visual as we are happy to announce a new upgrade for Rainbow Live Flash CMS that sees the addition of a rich text editor for live text formatting!</p>
<h4><strong>&#8220;WYSIWYG&#8221;</strong>- What You See Is What You Get</h4>
<p>Using the Rich Text Editor you are now able to add formatting to your XML text directly in Rainbow, with a live preview to show you exactly how Flash will render the text. Change font, style, colour, size and alignment, even add HTML links. <br />Click on the HTML button to view the raw HTML that Flash generates, or edit it yourself.</p>
<p>Download your free upgrade from: <a href = "http://www.codeandvisual.com/downloads/rainbow_package.zip">here.</a> </p>
<p>The Rich text editor has been one of the most requested additions for Rainbow, which already includes other features such as image and file upload, password protection, admin and client modes, node repositioning, template creation and many more. This addition will help Rainbow Live become more powerful as a Flash CMS solution for XML driven websites, components and files. As always, we are always aiming to improve Rainbow, so please feel free to let us know your thoughts, comments and requests.</p>
<p><strong>Warnings for working in Rich Text Mode</strong></p>
<p>With great power comes great responsibility. When you are working with the Rich Text Editor, remember that any fonts you wish to display have to be embedded into your Flash file. If you select a font that isn&#8217;t embedded you might find that some of your text displays blank. You may choose to set your display TextField to the &#8220;use Device Fonts&#8221; option, which will display unembedded fonts - but remember the person viewing your Flash file needs to have the same fonts installed. Just like when designing websites, it&#8217;s safer in this case to stick to standard fonts such as Arial, Verdana, Courier or Times New Roman. As with any update, please make sure to back up your XML and RBW files before uploading.</p>
<p><a href="http://www.codeandvisual.com/rainbow" target="_self">Learn more about Rainbow &gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/rainbow-update-104-new-rich-text-editor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to Import MovieClips into a Flash Builder ActionScript Project</title>
		<link>http://www.codeandvisual.com/2009/how-to-import-movieclips-into-a-flash-builder-actionscript-project/</link>
		<comments>http://www.codeandvisual.com/2009/how-to-import-movieclips-into-a-flash-builder-actionscript-project/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 11:15:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[.swc]]></category>

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

		<category><![CDATA[Flash Builder]]></category>

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=446</guid>
		<description><![CDATA[With the release of the new Flash Builder Beta from Adobe labs, more Actionscript developers will be tempted to leave the Flash IDE and head to what is now the rebranded Flex Builder. Previously there has been a bit of confusion over what Flex and Flex Builder were for, not everybody realised that you could [...]]]></description>
			<content:encoded><![CDATA[<p>With the release of the new <a title="Download Flash builder demo" href="http://labs.adobe.com/technologies/flashbuilder4/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/labs.adobe.com/technologies/flashbuilder4/?referer=');">Flash Builder Beta </a>from Adobe labs, more Actionscript developers will be tempted to leave the Flash IDE and head to what is now the rebranded Flex Builder. Previously there has been a bit of confusion over what Flex and Flex Builder were for, not everybody realised that you could write non-Flex applications (i.e. plain actionscript ones) in Flex Builder. And then even without this confusion those of us used to the Flash IDE still had to get to grips with not having any sort of timeline or way to edit library assets. Long story short, you still need to use the flash IDE to create and edit your library assets, though once this is done you can export them to a .SWC file in order to use them in Flash Builder. Here&#8217;s a quick tutorial to show you how.</p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_1.jpg"><img class="alignnone size-full wp-image-449" src="http://www.codeandvisual.com/wp-content/uploads/step_1.jpg" alt="Using Movieclips in Flash Builder - Step 1" width="430" height="424" /></a></p>
<p>Firstly, in the Flash IDE, create your asset and save it as a MovieClip. I&#8217;m using a character from an upcoming game called &#8220;Tooth&#8217;n'Claw&#8221; that I&#8217;m going to release soon through Actionsprite.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_1_b.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_1_b.jpg" alt="Using Movieclips in Flash Builder - Step 1_b" width="430" height="424" /></a></p>
<p>Next you need to open up the properties window for your MovieClip where we will give it a Linkage ID that will allow Flash Builder to identify the Movieclip.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_2.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_2.jpg" alt="Using Movieclips in Flash Builder - Step 2" width="414" height="542" /></a></p>
<p>In the properties window, check both &#8220;Export for ActionScript&#8221; and &#8220;Export in frame 1&#8243; - you should see that the Class value is automatically filled out by Flash - it&#8217;s the same name as you&#8217;ve given the MovieClip. You can change this to whatever you want, but remember it because it will be the name you use to refer to the MovieClip in Flash Builder.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_3.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_3.jpg" alt="Using Movieclips in Flash Builder - Step 3" width="426" height="649" /></a></p>
<p>Now that your MovieClip is prepared, go to &#8220;File&gt;Publish Settings&#8221; and click on the &#8220;Flash&#8221; Tab. On this screen you want to make sure &#8220;Export SWC&#8221; is selected.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_4.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_4.jpg" alt="Using Movieclips in Flash Builder - Step 4" width="431" height="273" /></a></p>
<p>Now publish your file (I&#8217;ve named mine &#8220;Assets.Fla&#8221;) and you&#8217;ll notice that a .SWC file of the same name has been created. This file contains all of the assets that you have selected for export and is the file that you will use in Flash Builder to gain access to them.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_5.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_5.jpg" alt="Using Movieclips in Flash Builder - Step 5" width="577" height="641" /></a></p>
<p>Now you can load up Flash Builder and create a new project. You&#8217;ll see there are various types of projects you can create, but the one we are going to deal with is an ActionScript project seeming as this is the whole point of the tutorial.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_6.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_6.jpg" alt="Using Movieclips in Flash Builder - Step 6" width="495" height="398" /></a></p>
<p>Give your new project a name, and then click the &#8220;Next&#8221; button.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_7.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_7.jpg" alt="Using Movieclips in Flash Builder - Step 7" width="605" height="588" /></a></p>
<p>Now this is where you tell Flash Builder about the .SWC file you created. Choose the &#8220;Library Path&#8221; tab and click on the &#8220;Add SWC&#8221; button.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_8.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_8.jpg" alt="Using Movieclips in Flash Builder - Step 8" width="658" height="656" /></a></p>
<p>A dialog will appear with a &#8220;Browse&#8221; button. Click this and point Flash Builder to the Assets.SWC file you made previously.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_9.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_9.jpg" alt="Using Movieclips in Flash Builder - Step 9" width="674" height="522" /></a></p>
<p>Now that you&#8217;ve located your .SWC file, you should be able to view it&#8217;s contents via the Package Explorer window.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_10.jpg"><img class="alignnone size-full wp-image-459" title="step_10" src="http://www.codeandvisual.com/wp-content/uploads/step_10.jpg" alt="step_10" width="674" height="522" /></a></p>
<p> Once opened, you should see the Package Explorer window open to the side of your layout. Open up the &#8220;Referenced Libraries&#8221; section. Drilling down you should ba able to see the MovieClip you named in the properties window back in Flash. In this Case its called &#8220;ninja_cat&#8221; and has a little &#8220;c&#8221; icon next to it (for &#8220;class&#8221;).</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_11.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_11.jpg" alt="Using Movieclips in Flash Builder - Step 11" width="630" height="360" /></a></p>
<p>Finally in the code window you can write your ActionScript as you normally would. This is where you&#8217;ll start to see some of the benefits of working in Flash Builder. As a coding environment there are a lot of little touches that make your life easier - some of which is incorporated into the Flash IDE, but for some reason, not all. Firstly you&#8217;ll notice that when you create a new Actionscript project Flash Builder will automatically create a Document Class for you and prefill some of it out. Create a new instance of your library item as you usually would and attach it to the stage. Flash Builder should be smart enough to realise that it needs to import the MovieClip Class as well, which it will do for you automatically - see, I told you it was good.</p>
<p> </p>
<p> </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/step_12.jpg"><img src="http://www.codeandvisual.com/wp-content/uploads/step_12.jpg" alt="Using Movieclips in Flash Builder - Step 12" width="575" height="494" /></a></p>
<p>Finally &#8220;Run&#8221; your movie and you&#8217;ll see the MovieClip has been successfully imported and added to your stage. From here on in you should be able to import and use items as you need to. If you need to add more assets, or update existing assets, simply republish a new .SWC from Flash.</p>
<p> </p>
<p> </p>
<p>So that&#8217;s all there is to it. I will try and cover some more aspects of Flash Builder in future posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/how-to-import-movieclips-into-a-flash-builder-actionscript-project/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Announcing the Great Rainbow Live - Flash CMS Tutorial Competition!</title>
		<link>http://www.codeandvisual.com/2009/announcing-the-great-rainbow-live-flash-cms-tutorial-competition/</link>
		<comments>http://www.codeandvisual.com/2009/announcing-the-great-rainbow-live-flash-cms-tutorial-competition/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 23:36:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rainbow]]></category>

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

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

		<category><![CDATA[free licence]]></category>

		<category><![CDATA[rainbow live]]></category>

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=417</guid>
		<description><![CDATA[Competition Extended! Now running till the end of August!
Code and Visual has 5 free Rainbow Live licences to give away to the 5 best Rainbow Live tutorial entries. 
For a limited time you can trial a fully functional installation of Rainbow Live on any server you choose by using the Domain Key &#8220;tutorialcompetition&#8221;. This Domain [...]]]></description>
			<content:encoded><![CDATA[<p><strong style="color:red;">Competition Extended! Now running till the end of August!</strong></p>
<p>Code and Visual has 5 free <em>Rainbow Live </em>licences to give away to the 5 best <em>Rainbow Live </em>tutorial entries. </p>
<p>For a limited time you can trial a fully functional installation of <em>Rainbow Live </em>on any server you choose by using the Domain Key <strong>&#8220;tutorialcompetition&#8221;</strong>. This Domain Key will remain valid for the duration of the competition.</p>
<p><a href="http://www.codeandvisual.com/rainbow"><img src="http://www.codeandvisual.com/wp-content/uploads/rainbow_sheild1.png" alt="rainbow_sheild1" title="rainbow_sheild1" width="189" height="93" class="alignleft size-full wp-image-439" style="border:0;"/></a><em>Rainbow Live</em> fills the niche between complete Flash CMS solution and XML Editor. Rainbow was built specifically to enable Flash developers to continue building XML based Flash files the way they usually do, while providing important CMS functionality out of the box - with no changes needed.<br />
<a href="http://www.codeandvisual.com/rainbow">Learn more about Rainbow Live here.</a></p>
<h4>Competition Details</h4>
<p>The competition is open to anybody that wishes to write a tutorial about <em>Rainbow Live</em>, be it a webmaster or blog author, or even someone that submits a word document. The best tutorial bearing the title from each of the following 5 categories will each receive a free <em>Rainbow Live </em>Domain Key for the domain of their choice - worth $99.</p>
<ul>
<li>Rainbow Live Flash CMS - Installation Tutorial</li>
<li>Rainbow Live Flash CMS - Using Templates</li>
<li>How to Use Rainbow Live as a Flash CMS</li>
<li>Rainbow Live Flash CMS - Using Custom Server Side Scripts (php)</li>
<li>Rainbow Live Flash CMS - Using Custom Server Side Scripts (.Net)</li>
</ul>
<p>The winning entries will be placed on codeandvisual.com with full credit and links back to the original author&#8217;s site. All other entries will be linked to from the codeandvisual.com tutorials page.</p>
<h4>What Entries Will be Judged On</h4>
<ul>
<li>Simple and clear communication style
<li>Explaination of concepts and details
<li>Well written and entertaining style
<li>Good layout and presentation
<li>Use of images
</ul>
<h4>How To Enter</h4>
<p>Any tutorial that sends a ping back to &#8220;http://www.codeandvisual.com/rainbow&#8221; will be automatically entered. If you don&#8217;t own a blog, or can&#8217;t ping back, simply send you completed entry to competition [at] codeandvisual.com</p>
<h4>Competition Deadline</h4>
<p>The Competition will close 11:59 July 31st 2009, GMT</p>
<h4>Some of the key benefits of Rainbow Live</h4>
<ul>
<li>Works with your current XML file</li>
<li>Admin and User log-ins</li>
<li>customisable node locking/hiding for client</li>
<li>Easier for clients to use than a raw XML file</li>
<li>Edit XML files live online</li>
<li>Upload Images and files</li>
<li>Automatically create thumbnails</li>
<li>Define child templates to define your own node type</li>
<li>No backend scripting necessary</li>
<li>Customizable scripts</li>
<li>Doesn&#8217;t dictate structure of your data/website</li>
<li>Easily design the CMS to your own needs</li>
</ul>
<h4>What Are You Waiting For?</h4>
<p>To learn more about Rainbow Live and download an installation package, visit: <a href="http://www.codeandvisual.com/rainbow-live">http://www.codeandvisual.com/rainbow-live</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/announcing-the-great-rainbow-live-flash-cms-tutorial-competition/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Announcing new Rainbow XML API</title>
		<link>http://www.codeandvisual.com/2009/announcing-new-rainbow-xml-api/</link>
		<comments>http://www.codeandvisual.com/2009/announcing-new-rainbow-xml-api/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 11:03:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rainbow]]></category>

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

		<category><![CDATA[display XML]]></category>

		<category><![CDATA[Rainbow XML API]]></category>

		<category><![CDATA[xml api]]></category>

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=391</guid>
		<description><![CDATA[Code and Visual is excited to announce the release of a new API for Rainbow XML. The free Rainbow XML API enables XML files to be displayed visually within any HTML or Flash site.
The free Rainbow XML API enables visual and interactive presentation of XML data within any HTML or Flash file. Files can be [...]]]></description>
			<content:encoded><![CDATA[<p>Code and Visual is excited to announce the release of a new API for Rainbow XML. The free Rainbow XML API enables XML files to be displayed visually within any HTML or Flash site.</p>
<p>The free Rainbow XML API enables visual and interactive presentation of XML data within any HTML or Flash file. Files can be displayed in any rectangular shape with optional values allowing display customisation. </p>
<p><a href="http://www.codeandvisual.com/wp-content/uploads/rainbow_xml_api.gif"><img src="http://www.codeandvisual.com/wp-content/uploads/rainbow_xml_api.gif" alt="rainbow_xml_api" title="rainbow_xml_api" width="400" height="300" class="alignnone size-full wp-image-394" /></a></p>
<p>The Rainbow XML API uses the same code base as Rainbow Live XML Editor. Rainbow Live fills the niche between complete Flash CMS solution and XML Editor. Rainbow was built specifically to enable Flash developers to continue building XML based Flash files the way they usually do while providing important CMS functionality out of the box - with no changes needed. </p>
<p>Some of the key benefits of Rainbow Live:</p>
<p>* Works with your current XML file<br />
* Admin and User log-ins<br />
* customisable node locking/hiding for client<br />
* Easier for clients to use than a raw XML file<br />
* Edit XML files live online<br />
* Upload Images and files<br />
* Automatically create thumbnails<br />
* Define child templates to define your own node type<br />
* No backend scripting necessary<br />
* Customizable scripts<br />
* Doesn&#8217;t dictate structure of your data/website<br />
* Easily design the CMS to your own needs</p>
<p>Details about Rainbow Live: <a href="http://www.codeandvisual.com/rainbow/features/">http://www.codeandvisual.com/rainbow/features/</a><br />
Learn more about the Rainbow XML API: <a href="http://www.codeandvisual.com/rainbow/api">http://www.codeandvisual.com/rainbow/api</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/announcing-new-rainbow-xml-api/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting started with PureMVC - Part 1</title>
		<link>http://www.codeandvisual.com/2009/getting-started-with-puremvc-part-1/</link>
		<comments>http://www.codeandvisual.com/2009/getting-started-with-puremvc-part-1/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 02:36:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=354</guid>
		<description><![CDATA[I&#8217;ve been meaning to get stuck in to MVC patterns with AS3 for a while now and had been hearing lots of good things about PureMVC. Got a little project the other day that I think is perfect to use as an introduction. I&#8217;ll be writing about the process as I go, which will definately [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been meaning to get stuck in to MVC patterns with AS3 for a while now and had been hearing lots of good things about <a href="http://www.puremvc.org" onclick="pageTracker._trackPageview('/outgoing/www.puremvc.org?referer=');">PureMVC</a>. Got a little project the other day that I think is perfect to use as an introduction. I&#8217;ll be writing about the process as I go, which will definately be a journey of discovery. I&#8217;m sure I&#8217;ll take some wrong turns along the way, but I &#8216;m hoping at the end of it I&#8217;ll have left an informative trail for anyone else wanting to try PureMVC.</p>
<p><strong>So, for the project:</strong><br />
The basic layout uses an arcordian style approach to display 3 different pieces of content:<br /><img src="http://www.codeandvisual.com/wp-content/uploads/panel_layout.gif" alt="panel_layout" title="panel_layout" width="500" height="190" class="alignnone size-full wp-image-355" /><br />
The content will load via XML and use a slide transition to switch from tab to tab.</p>
<p><strong>Understanding MVC concepts</strong><br />
Having never worked with an MVC approach I found it a bit daunting diving straight into PureMVC at first as they&#8217;ve extended the paradigm to include a Facade as well as Proxies (to work with the Model), Mediators (to work with the View) and Commands (to work with the Controller). there&#8217;s a lot of jargon to learn and I admit it took me a couple of days to get my head around it. Luckily I did all the heavy lifting as far as this is concerned a while back, so with a quick refresher on the main actors, their assistants and their tasks I feel like I&#8217;ve got a pretty solid understanding of the concepts involved. I&#8217;m sure I&#8217;ll be eating my words soon enough though.</p>
<p><strong>Getting Started</strong><br />
So I&#8217;m now ready to start building my application. I&#8217;m actually not exactly sure where to start. I&#8217;ll be using Flash CS4, so I&#8217;ve set up a document class called Main.as which doesn&#8217;t do anything yet besides send through a stage reference to the custom ApplicationFacade class. I&#8217;ve also created my generic Tab and Content Movieclips and exported them for use with actionscript in anticipation of adding them to the stage when the time comes.</p>
<p><strong>First Steps</strong><br />
So I guess the first step is to load the XML data sheet that will provide the content data for the application. This will involve an asynchronous process so I&#8217;m guessing I&#8217;ll need a notification to tell the application when the file is loaded. The XML is part of the Model of the application, so I guess I&#8217;ll be creating a Proxie to store the data once it&#8217;s loaded. I&#8217;m currently looking at the <a href="http://trac.puremvc.org/Demo_AS3_Flex_StartupAsOrdered" onclick="pageTracker._trackPageview('/outgoing/trac.puremvc.org/Demo_AS3_Flex_StartupAsOrdered?referer=');">Start Up As Ordered</a> demo on the PureMVC website to work out how to do this. They use an extension call the StartupMonitor to to all the initial loading so I&#8217;ll be trying to understand that. It seems like it&#8217;s a bit more involved than my needs for this project, but it will be worthwhile understanding it for future porjects.</p>
<p>If anyone is reading this with some PureMVC experience please feel free to make comments and point me in the right direction if I&#8217;m going off course, it&#8217;s all a learning experience so I&#8217;ll be glad for the input.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/getting-started-with-puremvc-part-1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Subdomains now included for free with a Rainbow Domain Key</title>
		<link>http://www.codeandvisual.com/2009/subdomains-now-included-for-free-with-a-rainbow-domain-key/</link>
		<comments>http://www.codeandvisual.com/2009/subdomains-now-included-for-free-with-a-rainbow-domain-key/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 04:52:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Rainbow]]></category>

		<category><![CDATA[rainbow live]]></category>

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

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

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=347</guid>
		<description><![CDATA[Due to popular demand Rainbow Live will now work on subdomains for any registered Domain Key. 
i.e. If you buy a Domain Key for www.mysite.com then subdomain.mysite.com will also be valid with the same key.
If you&#8217;ve previously purchased a Domain Key the changes will take effect immmediately, there&#8217;s no need to upgrade your Rainbow Live [...]]]></description>
			<content:encoded><![CDATA[<p>Due to popular demand Rainbow Live will now work on subdomains for any registered Domain Key. </p>
<p>i.e. If you buy a Domain Key for <em>www.mysite.com </em>then <em>subdomain.mysite.com </em>will also be valid with the same key.</p>
<p>If you&#8217;ve previously purchased a Domain Key the changes will take effect immmediately, there&#8217;s no need to upgrade your Rainbow Live installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/subdomains-now-included-for-free-with-a-rainbow-domain-key/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Background Processing Class in AS3</title>
		<link>http://www.codeandvisual.com/2009/background-processing-class-in-as3/</link>
		<comments>http://www.codeandvisual.com/2009/background-processing-class-in-as3/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 12:02:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

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

		<category><![CDATA[background processing]]></category>

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

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

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

		<category><![CDATA[multi-threading]]></category>

		<category><![CDATA[rainbow live]]></category>

		<guid isPermaLink="false">http://www.codeandvisual.com/?p=329</guid>
		<description><![CDATA[I&#8217;ll be trying to release some useful classes over the next couple of months, many of which I used to build Rainbow. So starting off here&#8217;s a class that became pretty handy when running a function that chewed up lots of CPU time.
Background.as 
This is a simple background process manager class that uses up a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be trying to release some useful classes over the next couple of months, many of which I used to build Rainbow. So starting off here&#8217;s a class that became pretty handy when running a function that chewed up lots of CPU time.</p>
<p><strong><a href="http://www.codeandvisual.com/wp-content/uploads/background.as">Background.as</a> </strong><br />
This is a simple background process manager class that uses up a specific ratio of CPU time to process functions that are registered to it. For instance if you have to generate a whole bunch of sprites, but don&#8217;t want the .swf to freeze while the number crunching happens, you can register a sprite creation function that will create one sprite at a time. on Each ENTER_FRAME event the Background class will continue to call its registered functions until all of it&#8217;s alloted CPU time has been used.</p>
<p><strong>Code:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">//**********************************</span>
<span style="color: #808080; font-style: italic;">//</span>
<span style="color: #808080; font-style: italic;">// © 2009 - James McNess</span>
<span style="color: #808080; font-style: italic;">// &lt;a href=&quot;http://www.codeandvisual.com&quot;&gt;http://www.codeandvisual.com&lt;/a&gt;</span>
<span style="color: #808080; font-style: italic;">//</span>
<span style="color: #808080; font-style: italic;">// **********************************</span>
&nbsp;
package <span style="color: #66cc66;">&#123;</span>
 <span style="color: #808080; font-style: italic;">//</span>
 <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
 <span style="color: #808080; font-style: italic;">//</span>
 <span style="color: #808080; font-style: italic;">//</span>
 <span style="color: #808080; font-style: italic;">// IMPORTS</span>
 <span style="color: #808080; font-style: italic;">//</span>
 <span style="color: #808080; font-style: italic;">//</span>
 <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
 <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #66cc66;">*</span>
 <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #66cc66;">*</span>
 <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.<span style="color: #66cc66;">*</span>
 <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> <span style="color: #0066CC;">Background</span><span style="color: #66cc66;">&#123;</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// PROPERTIES</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> pFrameMonitor:DisplayObject
  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> pCPURatio:<span style="color: #0066CC;">Number</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> pIdleLength:<span style="color: #0066CC;">Number</span>
  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> pFunctions:<span style="color: #0066CC;">Array</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// INITIALISATION</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> <span style="color: #0066CC;">Background</span><span style="color: #66cc66;">&#40;</span>thisFrameMonitor:DisplayObject, thisCPURatio:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
   pFrameMonitor = thisFrameMonitor
   pCPURatio = thisCPURatio
   init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
   pFunctions = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
   pIdleLength = 1000<span style="color: #66cc66;">/</span>pFrameMonitor.<span style="color: #0066CC;">stage</span>.<span style="color: #006600;">frameRate</span><span style="color: #66cc66;">*</span>pCPURatio
   pFrameMonitor.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>,doIdle<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> doIdle<span style="color: #66cc66;">&#40;</span>evt:Event<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">var</span> myStartTime:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
   <span style="color: #b1b100;">while</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>-myStartTime<span style="color: #66cc66;">&amp;</span>lt;pIdleLength<span style="color: #66cc66;">&amp;</span>amp;<span style="color: #66cc66;">&amp;</span>amp;pFunctions.<span style="color: #006600;">length</span><span style="color: #66cc66;">&amp;</span>gt;0<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #b1b100;">for</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i <span style="color: #b1b100;">in</span> pFunctions<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">var</span> myFunction:<span style="color: #000000; font-weight: bold;">Function</span> = pFunctions<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>
     myFunction<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#125;</span>
   <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// API</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> addFunction<span style="color: #66cc66;">&#40;</span>thisFunction:<span style="color: #000000; font-weight: bold;">Function</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
   <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>pFunctions.<span style="color: #0066CC;">indexOf</span><span style="color: #66cc66;">&#40;</span>thisFunction<span style="color: #66cc66;">&#41;</span>==-1<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    pFunctions.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>thisFunction<span style="color: #66cc66;">&#41;</span>
   <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> removeFunction<span style="color: #66cc66;">&#40;</span>thisFunction:<span style="color: #000000; font-weight: bold;">Function</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">var</span> myIndex:<span style="color: #0066CC;">int</span> = pFunctions.<span style="color: #0066CC;">indexOf</span><span style="color: #66cc66;">&#40;</span>thisFunction<span style="color: #66cc66;">&#41;</span>
   pFunctions.<span style="color: #0066CC;">splice</span><span style="color: #66cc66;">&#40;</span>myIndex,1<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> removeAllFunctions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
   pFunctions = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#125;</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// DESTROY</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">//</span>
  <span style="color: #808080; font-style: italic;">// *******************************************************************</span>
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> destroy<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
   removeAllFunctions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
   pFrameMonitor.<span style="color: #006600;">removeEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, doIdle<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#125;</span>
 <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p><strong>Example Usage:</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">package<span style="color: #66cc66;">&#123;</span>
  <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #66cc66;">*</span>
  <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main<span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> pBackground:<span style="color: #0066CC;">Background</span> 
    <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Main <span style="color: #0066CC;">extends</span> <span style="color: #0066CC;">MovieClip</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
      pBackground = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Background</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, .2<span style="color: #66cc66;">&#41;</span>;
      myBackground.<span style="color: #006600;">addFunction</span><span style="color: #66cc66;">&#40;</span>myFunction<span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> myFunction<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
      <span style="color: #808080; font-style: italic;">// This function will get called until .2 of the ENTER_FRAME interval is used</span>
    <span style="color: #66cc66;">&#125;</span>
  <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>You can add as many functions as you like to the pFunctions array, it will call each of them in the order they were added, and keep cycling until the allotted CPU time is used up.</p>
<p>You can download the class form here:<br />
<a href="http://www.codeandvisual.com/wp-content/uploads/background.as">Background.as</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/background-processing-class-in-as3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Winners announced - Flash Freebie: 5 Licenses for Rainbow Live XML Editor + Lite Flash CMS</title>
		<link>http://www.codeandvisual.com/2009/winners-announced-flash-freebie-5-licenses-for-rainbow-live-xml-editor-lite-flash-cms/</link>
		<comments>http://www.codeandvisual.com/2009/winners-announced-flash-freebie-5-licenses-for-rainbow-live-xml-editor-lite-flash-cms/#comments</comments>
		<pubDate>Sat, 30 May 2009 23:07:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.codeandvisual.com/2009/winners-announced-flash-freebie-5-licenses-for-rainbow-live-xml-editor-lite-flash-cms/</guid>
		<description><![CDATA[Congratulations to the 5 flash.tutsplus.com competition winners!

Robert Thomas j. Sagun
Pablo Lara
Christopher Hein
Dev
Honeywolf

They each win a free Rainbow Live Domain Key to be used with the Flash CMS.
Details of a new competition coming soon.
]]></description>
			<content:encoded><![CDATA[<p>Congratulations to the 5 flash.tutsplus.com competition winners!</p>
<ul>
<li>Robert Thomas j. Sagun</li>
<li>Pablo Lara</li>
<li>Christopher Hein</li>
<li>Dev</li>
<li>Honeywolf</li>
</ul>
<p>They each win a free Rainbow Live Domain Key to be used with the Flash CMS.</p>
<p>Details of a new competition coming soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codeandvisual.com/2009/winners-announced-flash-freebie-5-licenses-for-rainbow-live-xml-editor-lite-flash-cms/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
