<?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>Ahad Bokhari &#187; &#187; Action Script 2</title>
	<atom:link href="http://blogspot.fluidnewmedia.com/category/web-design/as-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogspot.fluidnewmedia.com</link>
	<description>— fragments of personal interest...</description>
	<lastBuildDate>Fri, 13 Jan 2012 10:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Designing Liquid Stages in AS 2</title>
		<link>http://blogspot.fluidnewmedia.com/2008/06/designing-liquid-stages-in-as-2/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/06/designing-liquid-stages-in-as-2/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 11:03:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=303</guid>
		<description><![CDATA[Designing for different resolutions can be tricky if you are a novice flash user.  There are those who feel once they understand how to design a liquid stage in flash they have become masters, while others consider it just a milestone.  It&#8217;s a bit of both for me, but you should be able to design [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Designing for different resolutions can be tricky if you are a novice flash user.  There are those who feel once they understand how to design a liquid stage in flash they have become masters, while others consider it just a milestone.  It&#8217;s a bit of both for me, but you should be able to design a Fluid width site which accommodates all screen resolutions.<br />
<span id="more-313"></span> </p>
<p><span style="color: #ffffff;">BREAK</span><br />
Take a look at the above example, <a href="http://www.fluidnewmedia.com/blogspot/screen_alignment.fla">download</a> the file and embed it into your html page.  Change your screen resolution or maximise your window to see how the movie-clips adapt to different resolutions whilst positioning themselves through the onstage.Resize functions.  The code is well commented, however if you are a complete noob then you&#8217;ll have some tinkering to do!!</p>
<p>NOTES</p>
<p>-  No need to install tween libraries as the file uses native classes that ship with flash.<br />
-  Aligns all elements to stage.<br />
-  ActionScript 2 and saved in Flash CS 3 format.</p>
<p>Happy Flashing!! <img src='http://blogspot.fluidnewmedia.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/06/designing-liquid-stages-in-as-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Do you want to learn Flash? &#8211; A list of great resources and references</title>
		<link>http://blogspot.fluidnewmedia.com/2008/05/learning-flash-a-list-of-references/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/05/learning-flash-a-list-of-references/#comments</comments>
		<pubDate>Tue, 06 May 2008 18:58:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>
		<category><![CDATA[Actionscript 3]]></category>
		<category><![CDATA[Inspire Me]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=260</guid>
		<description><![CDATA[Do you want to learn Flash?  Better yet do you want to learn about the programming language Actionscript that is the impetus of most of the best flash designs in the world?  Well here is a list of ways to learn Flash and Actionscript.  Flash might look daunting to master for beginners [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Do you want to learn Flash?  Better yet do you want to learn about the programming language Actionscript that is the impetus of most of the best flash designs in the world?  Well here is a list of ways to learn Flash and Actionscript.  Flash might look daunting to master for beginners but if you just grit your teeth and sink into it you will be amazed how quickly you can understand some of the basic concepts.</p>
<ol>
<li>Some great tutorials for learning flash from the beginning to the advanced at <a href="http://www.kirupa.com">Kirupa&#8217;s website</a>.  The list here is long and quite honestly very good for all levels.  Do yourself a favor and check them out.  You will see a mix of tutorials from animation to AS2 and AS3 and a whole hell of lot more.  The team has really done a good job by bundling these tutes together for you all to learn from.  Check out their <a href="http://www.kirupa.com/forum/">forums</a> as well.<br />
<font color="#ffffff">BREAK</font></li>
<li>One great way to learn Flash is fire up the application and goto the inbuilt help file that ships with Flash.  You can reference many books that Adobe has already selected for you with very useful and pertinent examples.  If you read through the documentation you will surely be able to master the IDE (Internal Development Environment) quickly.  What better way to learn than from the creators of the software?<br />
<font color="#ffffff">BREAK</font></li>
<li>Also, be sure to look at the <a href="http://www.adobe.com/go/AS2toAS3">ActionScript 2.0 Migration</a> document to see what functions and classes have been changed, moved, or removed. When changes exist between AS2 and AS3, this document often includes instructions for how you should change your approach.<br />
<font color="#ffffff">BREAK</font></li>
<li>If you are seriously looking to learn flash then head over to <a href="http://www.flashden.net">Flashden</a> and check out some of the stock flash files they have there.  They are reasonably priced and by picking up just a couple of files you could learn a lot!  Matter of fact some authors upload their files solely for learning purposes.<br />
<font color="#ffffff">BREAK</font></li>
<li>You might want to learn from video tutorials &#8211; step by step instructions on how to code or animate in Flash <a href="http://www.lynda.com/">Lynda.com</a> offers <a href="http://movielibrary.lynda.com/html/modListing.asp?pid=267">many hours of video focused on Flash CS3</a> and ActionScript 2-3 for a low subscription price. <a href="http://www.theflashblog.com/">Lee Brimlow</a>’s site  <a href="http://www.gotoandlearn.com/">gotoAndLearn</a> also offers free video tutorials about Flash.<br />
<font color="#ffffff">BREAK</font></li>
<li>For the novice or advanced users there is no better way than to view the documentation at Adobes website.  Be sure to check out Adobes <a href="http://www.adobe.com/devnet/flash/">Flash Developer Center</a> and <a href="http://www.adobe.com/devnet/actionscript/">the Actionscript Technology Center</a>.  Or you could just goto the <a href="http://developer.adobe.com/">Adobe Developer Connection</a> for a broader view of topics.<br />
<font color="#ffffff">BREAK</font></li>
<li>All documentation available in the Flash CS3 product is <a href="http://www.adobe.com/support/documentation/en/flash/">available online</a> on Adobe’s website, including many parts that may be downloaded in PDF form (if that’s your preference). For those that are new to programming, or maybe if you just need a bit of help learning about classes and objects, check out <a href="http://livedocs.adobe.com/flash/9.0/main/00000012.html">Getting Started with ActionScript</a> in the documentation.<br />
<font color="#ffffff">BREAK</font></li>
<li>Be sure to check out <a href="http://www.senocular.com">Senocular&#8217;s</a> website and tutorial sections.  They extremely helpful and they post a thread at the <a href="http://www.kirupa.com/forum">Kirupa forums</a> called  <a href="http://www.kirupa.com/forum/showthread.php?t=223798">ActionScript 3.0 Tip of the Day</a>.<br />
<font color="#ffffff">BREAK</font></li>
<li>Another great way to learn Flash or Actionscript is by picking up a book on it.  Here are some of the better titles out there.
<ul>
<li>Essential Actionscript 2</li>
<li>Essential Actionscript 3</li>
<li>Foundation Flash 8 for Actionscript</li>
<li>Foundation Actionscript for Flash CS3: Making things Move!</li>
<li>Actionscript 3 Cookbook</li>
<li>Actionscipt 2 Cookbook</li>
<li>Learning Actionscript 3</li>
<li>Object Orientated Actionscript</li>
<li>Actionscript 3 Bible</li>
<li>Foundation Actionscript 3.0 with Flash and Flex 2<br />
<font color="#ffffff">BREAK</font></li>
</ul>
</li>
<li>There are many forums out there to learn flash at.  Google them or use your favorite search engine to find them.<br />
<font color="#ffffff">BREAK</font></li>
<li>A great place to get free files is at <a href="http://www.ffiles.com">FFiles Website.</a>  If you <a href="http://www.ffiles.com/register.html">register</a> with them you will be able to download free files from the website.   They have many different categories of files for all levels and they are pretty darn useful!<br />
<font color="#ffffff">BREAK</font></li>
<li>Use a <a href="http://blogspot.fluidnewmedia.com/wp-admin/www.sothink.com/product/flashdecompiler/">flash decompiler</a> to view other peoples code&#8230;Though it is not ethical to directly use anyone else&#8217;s code it is a great way to learn how professional build their websites.  There are many out there so you can choose which one best suits you or which is the most accessible of the lot!  Or ask someone for their code which you could learn from.  If you asked me i most probably would be happy to help you on your way with small snippets of re-usable code.<br />
<font color="#ffffff">BREAK</font><font color="#ffffff">BREAK</font></li>
<li><strike>Lastly use a Java Bit Torrent Client such as <a href="http://www.azureus.sourceforge.net/">Azureus</a> to download torrents of your favorite flash books.  Goto <a href="http://www.extratorrent.com">Extratorrent</a> and type in Flash books and see what results you get.  Just download that torrent and add it to you torrent Client to start the downloads.   Better yet <a href="http://extratorrent.com/torrent/1144960/22+Macromedia+Flash+and+Actionscript+Books.html" target="_blank">HERE</a> is the direct link.  You might also want to try <a href="https://ssl.rapidshare.com/">Rapid Share</a></strike> Downloads and Repository.</li>
</ol>
<p>Though there are alot more references for Flash on the web, these are the ones that come to my mind throughout my eternal search to learn more. Good Luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/05/learning-flash-a-list-of-references/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursion &#8211; Generally and in Flash</title>
		<link>http://blogspot.fluidnewmedia.com/2008/04/recursion-generally-and-in-flash/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/04/recursion-generally-and-in-flash/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 12:11:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=228</guid>
		<description><![CDATA[Recursion, in mathematics and computer science, is a method of defining functions in which the function being defined is applied within its own definition. The term is also used more generally to describe a process of repeating objects in a self-similar way. For instance, when the surfaces of two mirrors are almost parallel with each [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Recursion, in mathematics and computer science, is a method of defining functions in which the function being defined is applied within its own definition. The term is also used more generally to describe a process of repeating objects in a self-similar way. For instance, when the surfaces of two mirrors are almost parallel with each other the nested images that occur are a form of recursion.</p>
<p>Recursion is also the basic building block of fractals as their patterns re occur over and over again.  So lets go through a simple recursive function.</p>
<p><quickcode><br />
function traceMe(a) {<br />
//First lets check the value of the paramater and start or stop the loop based on the if statement.<br />
if (a&lt;10) {<br />
//We output the current value of the parameter.<br />
//Therefore, the first time that piece of code is executed,<br />
//Flash outputs 1th, because it&#8217;s the firth time we step into the loop.<br />
//Then it will be the second, the third, etc.<br />
trace(&#8221;This is the &#8220;+a+&#8221;th time that the function is run.&#8221;);<br />
//We call the same exact function from within a function with the parameter(a) incremented.<br />
traceMe(a+1);<br />
//This is the interesting part.  If you look at your output panel you will notice that after<br />
//all the traceME functions have been executed this line of code gets executed at the end.<br />
//There is a simple reason for that and that is because flash executes lines of code sequentially.<br />
trace(&#8221;End of the &#8220;+a+&#8221;th function.&#8221;);<br />
}<br />
}<br />
traceMe(1);</quickcode></p>
<p>Thats about it.  Simple functions for complex recursions.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/04/recursion-generally-and-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bitmap Plasma</title>
		<link>http://blogspot.fluidnewmedia.com/2008/03/bitmap-plasma/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/03/bitmap-plasma/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 00:26:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=227</guid>
		<description><![CDATA[[kml_flashembed movie="/experiments/bitmap_pl.swf" height="300" width="500" /]

Stage.scaleMode = &#8220;noScale&#8221;
import flash.display.BitmapData
import flash.geom.Point
import flash.geom.Rectangle
import flash.geom.Matrix;var hiddenBitmapData:BitmapData = new BitmapData(500, 300, false, 0&#215;00000000);
var bitmapData:BitmapData = new BitmapData(500, 300, false, 0&#215;00000000);
var smallBitMap:BitmapData = new BitmapData(100, 60, false, 0&#215;00000000);
_root.attachBitmap(bitmapData,1)
container._visible = false
for( var a=0;a&#60;100;a++){
var n = container.attachMovie(&#8221;node&#8221;, &#8220;n&#8221;+a,a, {
xSpeed:Math.random()*1-.5,
ySpeed:Math.random()*1-.5,
_x:Math.random()*100,
_y:Math.random()*60,
onEnterFrame:function(){
this._x += this.xSpeed
this._y += this.ySpeed
this._x = this._x % 110
this._y = this._y % 70
if( this._x &#60;= [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>[kml_flashembed movie="/experiments/bitmap_pl.swf" height="300" width="500" /]</p>
<p><quickcode><br />
Stage.scaleMode = &#8220;noScale&#8221;<br />
import flash.display.BitmapData<br />
import flash.geom.Point<br />
import flash.geom.Rectangle<br />
import flash.geom.Matrix;var hiddenBitmapData:BitmapData = new BitmapData(500, 300, false, 0&#215;00000000);<br />
var bitmapData:BitmapData = new BitmapData(500, 300, false, 0&#215;00000000);<br />
var smallBitMap:BitmapData = new BitmapData(100, 60, false, 0&#215;00000000);</p>
<p>_root.attachBitmap(bitmapData,1)<br />
container._visible = false</p>
<p>for( var a=0;a&lt;100;a++){<br />
var n = container.attachMovie(&#8221;node&#8221;, &#8220;n&#8221;+a,a, {<br />
xSpeed:Math.random()*1-.5,<br />
ySpeed:Math.random()*1-.5,<br />
_x:Math.random()*100,<br />
_y:Math.random()*60,<br />
onEnterFrame:function(){<br />
this._x += this.xSpeed<br />
this._y += this.ySpeed</p>
<p>this._x = this._x % 110<br />
this._y = this._y % 70</p>
<p>if( this._x &lt;= -10 ) this._x += 110<br />
if( this._y &lt;= -10 ) this._y += 70<br />
}<br />
})<br />
}</p>
<p>var translateMatrix:Matrix = new Matrix();<br />
translateMatrix.scale(5,5)</p>
<p>_root.onEnterFrame = function(){</p>
<p>smallBitMap.draw(container)</p>
<p>hiddenBitmapData.draw( smallBitMap,translateMatrix, null, &#8220;normal&#8221;,bitmapData.rectangle, true  )<br />
bitmapData.draw( col   )</p>
<p>bitmapData.threshold(hiddenBitmapData, bitmapData.rectangle, new Point(0, 0), &#8220;&gt;=&#8221;, 0&#215;00bbbbbb, 0&#215;00FFFFFF, 0&#215;00FFFFFF, false);<br />
bitmapData.threshold(hiddenBitmapData, bitmapData.rectangle, new Point(0, 0), &#8220;&lt;=&#8221;, 0&#215;00888888, 0&#215;00000000, 0&#215;00FFFFFF, false);<br />
}</quickcode></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/03/bitmap-plasma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe RIA ActiconScript Reference</title>
		<link>http://blogspot.fluidnewmedia.com/2008/03/adobe-ria-acticonscript-reference/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/03/adobe-ria-acticonscript-reference/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 06:29:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>
		<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=219</guid>
		<description><![CDATA[The Adobe ActionScript Reference for Rich Internet application development provides an alphabetical reference for all native ActionScript APIS for the Adobe technology platform rntimes &#8211; Adobe Flash Player, Adobe AIR, Adobe Flex Framework.  Great for those who want to learn about the ActionScript APIs that are available within the runtimes.

]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.adobe.com/devnet/actionscript/articles/atp_ria_guide.html">The Adobe ActionScript Reference for Rich Internet</a> application development provides an alphabetical reference for all native ActionScript APIS for the Adobe technology platform rntimes &#8211; Adobe Flash Player, Adobe AIR, Adobe Flex Framework.  Great for those who want to learn about the ActionScript APIs that are available within the runtimes.</p>
<p><a href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/03/atpa1_ref1.jpg" title="atpa1_ref1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/03/atpa1_ref1.jpg" alt="atpa1_ref1.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/03/adobe-ria-acticonscript-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Common Actionscript Mistakes</title>
		<link>http://blogspot.fluidnewmedia.com/2008/03/8-mistakes-actionscript-developers-make/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/03/8-mistakes-actionscript-developers-make/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 09:49:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=205</guid>
		<description><![CDATA[I have been blogging for about a year now.  Its an addictive habit and to be very honest with you not an easy task to keep up with your blog and the trends of other blogs.  I have also been on a constant journey developing my Actionscript skills and just recently migrating from [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I have been blogging for about a year now.  Its an addictive habit and to be very honest with you not an easy task to keep up with your blog and the trends of other blogs.  I have also been on a constant journey developing my Actionscript skills and just recently migrating from AS2 to AS3.  Along the way i have viewed many peoples code and of course tried to write clean code myself.  It can be a daunting task especially when you start authoring/writing 100&#8217;s of lines of code.</p>
<p>Here is a list of Mistakes i feel that beginner to advanced coders make.  The spectrum is broad and even those who have been coding Actionscript in the Flash IDE for some time now will make these mistakes.  It&#8217;s not that advanced users of Actionscript dont know correct syntax its just a matter of time and eventually laziness on the developers part.</p>
<ol>
<li><strong><font color="#000000">NOT USING CAMEL CASE AND SUFFIXES:</font></strong><font color="#000000"><br />
</font>Once you have dragged a symbol onto the stage the property inspector gives you a neat little way to designate that instance with its own unique name.   Flash devlopers who instantiate the symbol through Actionscript should always follow this method to refer to that instance of a symbol, movieclip or button.<br />
<em><font color="#000000"> As you can see in the below screeenshot myClip_mc is the correct naming convention to use as the symbols instance.</font></em> myClip is how you would use the correct camelCase structure and _mc would be the correct suffix to use so thatwhen you see it in code you know exactly immediately that its referring to a movie clip.<br />
<font color="#000000"><em>myClip_mc.stop();</em></font> &#8211; The actionscript code and correct naming conventions that help you easily recognize and seperate different symbols in your code.</li>
</ol>
<p><a href="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/03/instance1.jpg" title="instance1.jpg" rel="thumbnail"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/03/instance1.jpg" alt="instance1.jpg" height="144" width="523" /></a></p>
<p><span id="more-209"></span></p>
<ol>
<li><strong>STRICT DATA TYPING:</strong><br />
Strict data typing also allows for Flash to associate a variable with an object to help you with code hints when using               that object. Before, this was only possible using underscore suffixes in your variable naming. Now you have the                       option of using strictly typed variables instead, allowing for more room in your own naming conventions. (Note:                   XML definitions will still be needed for code hints to function properly.)Typing is always placed following a variable or function declaration. For variables, the type is placed immediately                   after the variable name separated by a colon (:). For functions, placement directly after the parameters list, also                   separated by a colon. Function types here, however, refer to the type of the value that the function is returning. If               the function has no return, Void is used. Also, for functions, the parameters used can too be strictly typed.var variableName:Type = value;<br />
function functionName(parameter:Type):returnType {}</li>
<li><strong>ERRORS IN THE FUNCTION CHAIN:</strong><br />
When creating complex movies, you will have several functions that act as event handlers for various objects, as well as generic user-defined functions. Some functionality may not work at all when you test your movie. Before checking for any other error, please, check if the relevant function is actually called. Just place a trace(&#8217;in&#8217;); action at the beginning of the function to see if it is called. If you don&#8217;t see &#8216;in&#8217; in the output panel when you test your movie the function is never called. Most likely this is simply a targeting error; double-check your object and function names to see if they are coherent.</li>
<li><strong>FILES DON&#8217;T WORK ON THE SERVER:</strong><br />
Please, before anything else, when files don&#8217;t work online, first check if all the support files are correctly uploaded. I once had a problem on a server when i didn&#8217;t change the persmissions of the xml files to read the swf.Place your HTML file and your SWF in the SAME folder, OR use absolute URLS. Of course, update the HTML file to match the situation. When Flash encounters a load command that uses a relative URL it passes it along to the browser. The browser must decide whether that URL is relative to the Flash file or to the HTML file. If they are in the same folder, there is no ambiguity. However, if that is not the case, do you know what it will choose? I don&#8217;t either! Save yourself the trouble, keep the main swf in the same folder as the HTML.When files are loaded through one of Flash&#8217;s numerous load functions (loadMovie, MovieClipLoader.loadClip, XML.load, Sound.loadSound, etc.), there is always a lag between the load call and the data being received. You must take that into account. Never play with a movie you&#8217;re not 100% sure is loaded. Using MovieClipLoader and LoadVars is safer than loadMovie and loadVariables because of all the neat loading events they fire.</p>
<p>Double-check if your preloaders are working. If you don&#8217;t have them, use them! Check out the progress bar component, it can hook to most loading functions and objects, so you&#8217;ll have visual feedback.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/03/8-mistakes-actionscript-developers-make/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActionScripted Circular Menu</title>
		<link>http://blogspot.fluidnewmedia.com/2008/03/actionscripted-circular-menu/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/03/actionscripted-circular-menu/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 15:56:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=194</guid>
		<description><![CDATA[[kml_flashembed movie="/experiments/circular navmenu.swf" height="225" width="445" /]
A Circular menu built on Actionscript completely.  (Click inside then start scrolling) Enjoy&#8230;..
Please visit HERE for the code by Soulwire.


]]></description>
			<content:encoded><![CDATA[<p></p><p>[kml_flashembed movie="/experiments/circular navmenu.swf" height="225" width="445" /]<br />
A Circular menu built on Actionscript completely.  (Click inside then start scrolling) Enjoy&#8230;..</p>
<p>Please visit <a href="http://blog.soulwire.co.uk/flash/actionscript-2/prototypes/circular-group94-scrolling-flash-menu/">HERE</a> for the code by Soulwire.<br />
<font color="#808000"><font color="#ff6600"><br />
</font></font></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/03/actionscripted-circular-menu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Working with Variables &#8211; Arrays</title>
		<link>http://blogspot.fluidnewmedia.com/2008/02/working-with-datatypes-arrays/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/02/working-with-datatypes-arrays/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 15:50:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=159</guid>
		<description><![CDATA[ARRAYS:
One of the most commonly used datatypes is an array.  The easiest way to describe an array is like a container for a collection of variables which you can access easily using a single name.  If you are looking in from the outside it looks like one singular unit or rather one single [...]]]></description>
			<content:encoded><![CDATA[<p></p><h3><font color="#000000"><strong>ARRAYS:</strong></font></h3>
<p>One of the most commonly used datatypes is an array.  The easiest way to describe an array is like a container for a collection of variables which you can access easily using a single name.  If you are looking in from the outside it looks like one singular unit or rather one single entity.   The great thing about that one single unit or entity is that it has the capability of holding lots of values at any one given time.</p>
<p>If you are trying to visualize how an array would look like in the real world, it would not be so different to a file cabinet.  The cabinet has a name (Office File Cabinet) and contains several drawers, each of which drawer can contain its own information.</p>
<p>When you are examining a variable array, all you really need to do is to specify two things:</p>
<blockquote>
<blockquote>
<blockquote>
<ul>
<li>The name of the array</li>
<li>The index (or offset number) of the element (or &#8220;drawer&#8221;) you want to use .</li>
</ul>
</blockquote>
</blockquote>
</blockquote>
<p>For example say you have an array called myAhad that contains eight pieces of information eight elements.  To refer to the first element which is the bottom drawer in the cabinet you would use this syntax:</p>
<p>myAhad[0]</p>
<p><strong>The index of 0 gives you the base element.</strong>  The second element would be (the first drawer UP from the base):</p>
<p>myAhad[1]<br />
myAhad[2]<br />
myAhad[3]<br />
myAhad[4]<br />
myAhad[5]<br />
myAhad[6]<br />
myAhad[7]</p>
<h3>REASONS FOR USING ARRAYS:</h3>
<ol>
<li>Arrays let you store related information together.</li>
<li>Arrays let you hold information in a specific order.</li>
<li>Arrays let you index information.</li>
<li>Arrays let you link information.</li>
</ol>
<h3></h3>
<h3> CREATING A NEW ARRAY OBJECT:</h3>
<p>Before trying to do any cool stuff with arrays you should now how to use the syntax for arrays and funnel in information.  Its not Rocket Science you all.</p>
<p>my_array = new Array();</p>
<p>my_array[0] = &#8220;Ahad&#8221;;<br />
my_array[1] = &#8220;Faisal&#8221;;<br />
my_array[2] = &#8220;Sarah&#8221;;<br />
my_array[3] = &#8220;Michelle&#8221;;<br />
my_array[4] = &#8220;Aamer&#8221;;<br />
my_array[5] = &#8220;Arianna&#8221;;<br />
my_array[6] = &#8220;Danielle&#8221;;</p>
<p>There is another way to define an array.</p>
<p>myGirlfriends_array = new Array(&#8221;Michelle&#8221;, &#8220;Danielle&#8221;, &#8220;Kari&#8221;, &#8220;Arianna&#8221;, &#8220;Nadiah&#8221;);  //note i used the _array to remind myself that this variable is an array.  It might not mean much right now but if you are working with 100&#8217;s of lines of code then it is very important to define what datatype you are using.</p>
<p>Please note:</p>
<p>It is perfectly legal that an array can hold a mixture of the three different types of variables: number, string, boolean.  This is perfectly legal:</p>
<p>my_array = new Array();<br />
my_array[0] = &#8220;Michelle&#8221;;<br />
my_array[1] =  26;<br />
my_array[82] = false;</p>
<h3>EXAMPLE:  POPULATING AN ARRAY USING<br />
DYNAMIC TEXT AND A UI SCROLLBAR</h3>
<p>[kml_flashembed movie="/experiments/arrays.swf" height="400" width="450" /]</p>
<p><font color="#000000"><strong>*Note that the names in this list weren&#8217;t added to be malicious to any woman or to show a male chauvinistic attitude&#8230;Just thought that i would add some spice into life and makes things fun for me.</strong></font></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/02/working-with-datatypes-arrays/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For Loops</title>
		<link>http://blogspot.fluidnewmedia.com/2008/02/for-loops/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/02/for-loops/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 14:33:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=153</guid>
		<description><![CDATA[FOR LOOPS

Whenever building a loop that uses some kind of counter variable to count how many cycles you have gone through, its worth noticing the for loop.  Lets consider this loop:
var myCounter:Number = 0;
while (myCounter &#60; 10) {
trace(myCounter);
myCounter++;
}
There are four important parts of this loop each one each of the first four lines.

Initialize the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><font color="#ff6600" size="5">FOR LOOPS<br />
</font><br />
Whenever building a loop that uses some kind of counter variable to count how many cycles you have gone through, its worth noticing the for loop.  Lets consider this loop:</p>
<p>var myCounter:Number = 0;<br />
while (myCounter &lt; 10) {<br />
trace(myCounter);<br />
myCounter++;<br />
}</p>
<p>There are four important parts of this loop each one each of the first four lines.</p>
<ul>
<li>Initialize the counter variable myCounter.</li>
<li>Specify the loop condition myCounter &lt; 10.</li>
<li>Perfrom the main loop action trace(myCounter).</li>
<li>Bump up thevalue of the counter with myCounter++.</li>
</ul>
<p>If you rewrite this loop as a for, you can cut it down to two lines.</p>
<p>for (var myCounter:Number =0; myCounter &lt; 10; myCounter++) {<br />
trace(myCounter);<br />
};</p>
<p>So basically you have defined the whole range of the loop withing the first line, so there&#8217;s no need to set up a counter before the loop and no need to change its value as one of the looped actions.  Its all being taken care of by Actionscript.</p>
<p>Still you can use the counter for all sorts of things other tan simply counting how may times you have looped.  For example, as the index for an array or variable, or for deriving a sequence of numbers (such as multiplication tables).</p>
<p>Great&#8230;so lets take a closer look at each of the three arguments you stick in a for() action.</p>
<p><font size="5"><font color="#ff6600">INIT<br />
</font><br />
<font size="2">The first argument is where you set up the counter variable.  It&#8217;s normal to set this to 0, though you may use any value that you like.  You may also name the counter as you wish.  Just remember the total number of loops must always turn out to be a numeric value so the valid counter values are as follows:</font></font></p>
<ul>
<li><font size="2">counter = 0: the Counter starts at 0.</font></li>
<li><font size="2">i = startValue:  The counter i starts at the value of numeric variables startValue.</font></li>
</ul>
<p><font size="5"><br />
<font color="#ff6600"> CONDITION<br />
</font></font><br />
<font size="2">This is just like the condition in an if statement or a while loop (the while loop is the simplest of all loops).  As long as the expression is true it will continue cycling.  Inside a for loop, though, the condition should always refer explicityly for the counter.   Normally like &#8220;the counter is less than the stop value&#8221;.  Some examples would be:</font></p>
<ul>
<li><font size="2">i &lt; 1: Loop as long as i is less than 10.</font></li>
<li><font size="2">counter&gt;= 200: Loop as long as counter is greater than or equal to 200.</font></li>
<li><font size="2">x &lt; xMax:  Loop as long as x is less thn xMax.</font></li>
</ul>
<p><font size="2">One condition that beginners often get stuck with is ==10.  Although this is ok as a condition, its probably not what you want for a for loop &#8211; unless counter equals 10 on the first loop.</font></p>
<p><font size="5"><font color="#ff6600">NEXT<br />
</font><br />
<font size="2">This is where you specify what should happen to the counter after every loop. Possible arguments you can add here are as follows.</font></font></p>
<ul>
<li><font size="2">i++:  Add 1 to 1</font></li>
<li><font size="2">counter&#8211;: Subtract 1 from the counter.</font></li>
<li><font size="2">i = i+2:  Add 2 to i.</font></li>
</ul>
<p><font size="2">There are many ways simple for loops may help you.   Just remember that loops are very useful for making lots of actions run in a very short time.  The more you will practice, the more you will understand the power of a loop.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/02/for-loops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Randomize Text (Actionscript)</title>
		<link>http://blogspot.fluidnewmedia.com/2008/01/randomize-text-actionscript/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/01/randomize-text-actionscript/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 11:55:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Action Script 2]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=133</guid>
		<description><![CDATA[[kml_flashembed movie="/experiments/random1.swf" height="300" width="300" /]
These are some random text effect for a dynamic text field..Check out the code:
createTextField(&#8220;my_tf&#8221;, 100, 10, 10, 250, 500);
my_tf.wordWrap = true;
my_st = &#8220;Curie, Marie\r(1867-1934) b. Warsaw, Poland (née Maria Sklodowska)\r\rHumanity needs practical men, who get the most out of their work, and, without forgetting the general good, safeguard their own interests. [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>[kml_flashembed movie="/experiments/random1.swf" height="300" width="300" /]</p>
<p>These are some random text effect for a dynamic text field..Check out the code:</p>
<p>createTextField(<font color="#339966">&#8220;my_tf&#8221;</font>, 100, 10, 10, 250, 500);<br />
my_tf.<font color="#0000ff">wordWrap</font> = <font color="#0000ff">true</font>;<br />
my_st =<font color="#008000"> &#8220;Curie, Marie\r(1867-1934) b. Warsaw, Poland (née Maria Sklodowska)\r\rHumanity needs practical men, who get the most out of their work, and, without forgetting the general good, safeguard their own interests. But humanity also needs dreamers, for whom the disinterested development of an enterprise is so captivating that it becomes impossible for them to devote their care to their own material profit. \r\rWithout doubt, these dreamers do not deserve wealth, because they do not desire it. Even so, a well-organized society should assure to such workers the efficient means of accomplishing their task, in a life freed from material care and freely consecrated to research.&#8221;</font>;<br />
step = 30;<br />
<font color="#0000ff">onEnterFrame = function</font>(){<br />
<font color="#0000ff">var</font> nowStep = Math.min(step, my_st.<font color="#0000ff">length</font>)<br />
<font color="#0000ff">var</font> stringChunk = my_st.substr(-nowStep);<br />
my_st = my_st.<font color="#0000ff">slice</font>(0, -nowStep);<br />
my_tf.<font color="#0000ff">text</font> = stringChunk+my_tf.<font color="#0000ff">text</font>;<br />
<font color="#0000ff">if</font>(my_st.<font color="#0000ff">length</font>&lt;1){<br />
<font color="#0000ff">onEnterFrame </font>= <font color="#0000ff">null;     </font><br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/01/randomize-text-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

