<?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>Architect, Engineer, Tech Enthusiast - Hasan Otuome &#187; AS2</title>
	<atom:link href="http://technophi.com/tag/as2/feed/" rel="self" type="application/rss+xml" />
	<link>http://technophi.com</link>
	<description>personal weblog of a tech addict</description>
	<lastBuildDate>Wed, 23 Nov 2011 18:04:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>AS2 :: Animator Class</title>
		<link>http://technophi.com/2006/08/17/as2-animator-clas/</link>
		<comments>http://technophi.com/2006/08/17/as2-animator-clas/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 08:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Nothing special here. This is just a helper class for the <a href="/node/69?phpMyAdmin=9ui%2CNakgjRZT7j2YFu3RUekYub6">TileMaker</a> class. It only has (1) method animate which I made static so you don't have to create instances of this class.
[code lang="Actionscript"]import mx.transitions.Tween;
import mx.transitions.easing.*;

class org.thesourcecode.effects.Animator extends MovieClip {
	
	private function Animator(){super();}
	
	static public function animate(clip:MovieClip,newx:Number,newy:Number,tweenType:Function){
		var xTween:Tween =  new Tween(clip,"_x",tweenType,clip._x,newx,3,true);
]]></description>
			<content:encoded><![CDATA[<p>Nothing special here. This is just a helper class for the <a href="http://technophi.com/node/69?phpMyAdmin=9ui%2CNakgjRZT7j2YFu3RUekYub6">TileMaker</a> class. It only has (1) method animate which I made static so you don&#8217;t have to create instances of this class.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>Tween<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.*;</span>
&nbsp;
<span style="color: #9900cc; font-weight: bold;">class</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>effects<span style="color: #000066; font-weight: bold;">.</span>Animator <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">MovieClip</span>
<span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> Animator<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span> <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #000000;">&#125;</span>
&nbsp;
	static <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> animate<span style="color: #000000;">&#40;</span> clip<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">,</span> newx<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> newy<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> tweenType<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Function</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> xTween<span style="color: #000066; font-weight: bold;">:</span>Tween =  <span style="color: #0033ff; font-weight: bold;">new</span> Tween<span style="color: #000000;">&#40;</span> clip<span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;_x&quot;</span><span style="color: #000066; font-weight: bold;">,</span>tweenType<span style="color: #000066; font-weight: bold;">,</span>clip<span style="color: #000066; font-weight: bold;">.</span>_x<span style="color: #000066; font-weight: bold;">,</span>newx<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #0033ff; font-weight: bold;">true</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> yTween<span style="color: #000066; font-weight: bold;">:</span>Tween =  <span style="color: #0033ff; font-weight: bold;">new</span> Tween<span style="color: #000000;">&#40;</span> clip<span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;_y&quot;</span><span style="color: #000066; font-weight: bold;">,</span>tweenType<span style="color: #000066; font-weight: bold;">,</span>clip<span style="color: #000066; font-weight: bold;">.</span>_y<span style="color: #000066; font-weight: bold;">,</span>newy<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #0033ff; font-weight: bold;">true</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>This class is part of the easy-install extenstion for the <a href="http://thesourcecode.org/code/TileMaker.zip">TileMaker</a> class.<br />
No documentation necessary.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="AS2 :: Animator Class" data-url="http://technophi.com/2006/08/17/as2-animator-clas/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton74" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FkZebtB&amp;via=heroizm&amp;text=AS2%20%3A%3A%20Animator%20Class&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2006%2F08%2F17%2Fas2-animator-clas%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2006/08/17/as2-animator-clas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS2 :: XMLMenu Class</title>
		<link>http://technophi.com/2006/07/26/as2-xmlmenu-class/</link>
		<comments>http://technophi.com/2006/07/26/as2-xmlmenu-class/#comments</comments>
		<pubDate>Wed, 26 Jul 2006 08:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Goal: minimize the amount of code rewrite involved in creating XML-based menus in Flash. You can customize the Class to match the structure of your XML file.
[code lang="Actionscript"]class org.thesourcecode.utils.XMLMenu extends MovieClip{
	//declare your variables
	private var _i:Number;
	private var _j:Number;
	private var _mainTL;
	private var _btns:XML;
	private var _butz:Array;
	private var _tmpX:Number;
	private var _tmpY:Number;
	private var _btn;
	private var _xmlfile:String;
	private var _menutarget:MovieClip;
	private var _space:Number;
]]></description>
			<content:encoded><![CDATA[<p>Goal: minimize the amount of code rewrite involved in creating XML-based menus in Flash. You can customize the Class to match the structure of your XML file.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">class</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>XMLMenu <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">MovieClip</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #009900; font-style: italic;">//declare your variables</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _j<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _mainTL<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _btns<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _butz<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _tmpX<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _tmpY<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _btn<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _xmlfile<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _menutarget<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _space<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _vertical<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> XMLMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end constructor</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> buildMenu<span style="color: #000000;">&#40;</span> file<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">,</span> space<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> vertical<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_buildIt<span style="color: #000000;">&#40;</span> file<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">,</span> space<span style="color: #000066; font-weight: bold;">,</span> vertical <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end public function</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _buildIt<span style="color: #000000;">&#40;</span> filesource<span style="color: #000066; font-weight: bold;">,</span> destination<span style="color: #000066; font-weight: bold;">,</span> separation<span style="color: #000066; font-weight: bold;">,</span> isVertical <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_xmlfile = filesource<span style="color: #000066; font-weight: bold;">;</span>
		_btns = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">XML</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_btns<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ignoreWhite</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
		_btns<span style="color: #000066; font-weight: bold;">.</span>onLoad = <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_menutarget = destination<span style="color: #000066; font-weight: bold;">;</span>
			_space = separation<span style="color: #000066; font-weight: bold;">;</span>
			_vertical = isVertical<span style="color: #000066; font-weight: bold;">;</span>
			_mainTL = _menutarget<span style="color: #000066; font-weight: bold;">.</span>_parent<span style="color: #000066; font-weight: bold;">;</span>
			_butz = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">firstChild</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">childNodes</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span>_i=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span>_j=<span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span> _i<span style="color: #000066; font-weight: bold;">&lt;</span>_butz <span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> _i<span style="color: #000066; font-weight: bold;">++,</span>_j<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				_space = _i<span style="color: #000066; font-weight: bold;">*</span>separation<span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_vertical<span style="color: #000000;">&#41;</span>
				<span style="color: #000000;">&#123;</span>
					_tmpX = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
					_tmpY = _space<span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span> 
				<span style="color: #0033ff; font-weight: bold;">else</span>
				<span style="color: #000000;">&#123;</span>
					_tmpX = _space<span style="color: #000066; font-weight: bold;">;</span>
					_tmpY = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				_btn = _menutarget<span style="color: #000066; font-weight: bold;">.</span>attachMovie<span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;btn&quot;</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;btn&quot;</span><span style="color: #000066; font-weight: bold;">+</span>_j<span style="color: #000066; font-weight: bold;">,</span>_i<span style="color: #000066; font-weight: bold;">+</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000;">&#123;</span>_x<span style="color: #000066; font-weight: bold;">:</span>_tmpX<span style="color: #000066; font-weight: bold;">,</span>_y<span style="color: #000066; font-weight: bold;">:</span>_tmpY<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>selector<span style="color: #000066; font-weight: bold;">.</span>_visible = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>sec<span style="color: #000066; font-weight: bold;">.</span>lbl<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = _butz<span style="color: #000000;">&#91;</span>_i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">attributes</span><span style="color: #000066; font-weight: bold;">.</span>lbl<span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>loc = _butz<span style="color: #000000;">&#91;</span>_i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">attributes</span><span style="color: #000066; font-weight: bold;">.</span>loc<span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>hdr = _butz<span style="color: #000000;">&#91;</span>_i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">attributes</span><span style="color: #000066; font-weight: bold;">.</span>hdr<span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>desc = _butz<span style="color: #000000;">&#91;</span>_i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">attributes</span><span style="color: #000066; font-weight: bold;">.</span>desc<span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>onRollOver = _mainTL<span style="color: #000066; font-weight: bold;">.</span>rollover<span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>onRollOut = _mainTL<span style="color: #000066; font-weight: bold;">.</span>rollout<span style="color: #000066; font-weight: bold;">;</span>
				_btn<span style="color: #000066; font-weight: bold;">.</span>onPress = _mainTL<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">select</span><span style="color: #000066; font-weight: bold;">;</span>
				_mainTL<span style="color: #000066; font-weight: bold;">.</span>btns<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;btn&quot;</span><span style="color: #000066; font-weight: bold;">+</span>_j <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
		_btns<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span> _xmlfile <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end main menu function</span>
<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end class</span></pre></div></div>

<p>Download the easy-install extension <a href="http://thesourcecode.org/code/XMLMenu.zip">here</a>.<br />
Documentation can be found <a href="http://thesourcecode.org/docs/XMLMenu.html" target="blank">here</a>.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="AS2 :: XMLMenu Class" data-url="http://technophi.com/2006/07/26/as2-xmlmenu-class/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton72" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FiDBIoB&amp;via=heroizm&amp;text=AS2%20%3A%3A%20XMLMenu%20Class&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2006%2F07%2F26%2Fas2-xmlmenu-class%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2006/07/26/as2-xmlmenu-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS2 :: CuePoints Class</title>
		<link>http://technophi.com/2006/07/16/as2-cue-points-clas/</link>
		<comments>http://technophi.com/2006/07/16/as2-cue-points-clas/#comments</comments>
		<pubDate>Sun, 16 Jul 2006 08:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false">http://technophi.com/2006/07/16/as2-cue-points-clas/</guid>
		<description><![CDATA[Goal: Wanted to simplify cue point usage for FLVs that needed text captions. The repetitive static code is placed in the class file leaving the dynamic stuff for the FLA.
[code lang="Actionscript"]import mx.utils.Delegate;

class org.thesourcecode.utils.CuePoints{
	private var _vid;
	private var _arr:Array;
	private var _ct:TextField;
	private var _cf:Function;
	
	public function CuePoints(co:Object){
		_vid = co.video;
		_arr = co.cues;
		_ct = co.textbox;
		_cf = co.animation;
		
		_vid.addEventListener("cuePoint", Delegate.create(this,_onCue));
	}//end constructor
	
]]></description>
			<content:encoded><![CDATA[<p>Goal: Wanted to simplify cue point usage for FLVs that needed text captions. The repetitive static code is placed in the class file leaving the dynamic stuff for the FLA.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>Delegate<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #9900cc; font-weight: bold;">class</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>CuePoints
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _vid<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _arr<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _ct<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">TextField</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _cf<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Function</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> CuePoints<span style="color: #000000;">&#40;</span> co<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_vid = co<span style="color: #000066; font-weight: bold;">.</span>video<span style="color: #000066; font-weight: bold;">;</span>
		_arr = co<span style="color: #000066; font-weight: bold;">.</span>cues<span style="color: #000066; font-weight: bold;">;</span>
		_ct = co<span style="color: #000066; font-weight: bold;">.</span>textbox<span style="color: #000066; font-weight: bold;">;</span>
		_cf = co<span style="color: #000066; font-weight: bold;">.</span>animation<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		_vid<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;cuePoint&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Delegate<span style="color: #000066; font-weight: bold;">.</span>create<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span>_onCue<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end constructor</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _onCue<span style="color: #000000;">&#40;</span> cue<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span>Void
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">&lt;</span>_arr <span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>cue<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">info</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">name</span> == _arr<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>cueName<span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				_ct<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = _arr<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span>cueText<span style="color: #000066; font-weight: bold;">;</span>
				_cf<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end function</span>
<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end class</span></pre></div></div>

<p>Download the easy-install extension from <a href="http://thesourcecode.org/code/CuePoints.zip">here</a>.<br />
Documentation can be found <a href="http://thesourcecode.org/docs/CuePoints.html" target="blank">here</a>.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="AS2 :: CuePoints Class" data-url="http://technophi.com/2006/07/16/as2-cue-points-clas/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton71" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2Fj37TTq&amp;via=heroizm&amp;text=AS2%20%3A%3A%20CuePoints%20Class&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2006%2F07%2F16%2Fas2-cue-points-clas%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2006/07/16/as2-cue-points-clas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS2 :: TileMaker Class</title>
		<link>http://technophi.com/2006/07/09/as2-tilemaker-class/</link>
		<comments>http://technophi.com/2006/07/09/as2-tilemaker-class/#comments</comments>
		<pubDate>Sun, 09 Jul 2006 08:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Came up with this one after a number of posts over @ gotoAndLearn() about making grids from XML files. Since I'm all about reusability, I devised an easy way to create animated thumnail tiles for an XML photo gallery could be an XML video gallery too. Just feed in the required parameters and off you go. Button events could easily be added to the thumbnails also.
[code lang="Actionscript"]import mx.utils.Delegate;
import org.thesourcecode.effects.Animator;

class org.thesourcecode.utils.TileMaker{
	private var _xmlfile:String;
	private var _gridType:String;
]]></description>
			<content:encoded><![CDATA[<p>Came up with this one after a number of posts over @ gotoAndLearn() about making grids from XML files. Since I&#8217;m all about reusability, I devised an easy way to create animated thumnail tiles for an XML photo gallery could be an XML video gallery too. Just feed in the required parameters and off you go. Button events could easily be added to the thumbnails also.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> mx<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>Delegate<span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>effects<span style="color: #000066; font-weight: bold;">.</span>Animator<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #9900cc; font-weight: bold;">class</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>TileMaker
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _xmlfile<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _gridType<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _increment<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _j<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _k<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _numOf<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _colSpacing<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _rowSpacing<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _xOffset<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _yOffset<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _xml<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _ROOT<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _targetClip<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _mcl<span style="color: #000066; font-weight: bold;">:</span>MovieClipLoader<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _listener<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _obj<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _tween<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _tweenType<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Function</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> TileMaker<span style="color: #000000;">&#40;</span> <span style="color: #004993;">parent</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">,</span>tween<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_ROOT = <span style="color: #004993;">parent</span><span style="color: #000066; font-weight: bold;">;</span>
		_obj = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Object</span><span style="color: #000066; font-weight: bold;">;</span>
		_mcl = <span style="color: #0033ff; font-weight: bold;">new</span> MovieClipLoader<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>tween<span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> _tweenType = mx<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.</span>Elastic<span style="color: #000066; font-weight: bold;">.</span>easeInOut<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> 
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> _tweenType = mx<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>easing<span style="color: #000066; font-weight: bold;">.</span>None<span style="color: #000066; font-weight: bold;">.</span>easeNone<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end constructor</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> makeTiles<span style="color: #000000;">&#40;</span> xmlfile<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span> 
		targetClip<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">,</span> 
		gridType<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span> 
		numOf<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
		rowSpacing<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
		colSpacing<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
		xOffset<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
		yOffset<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span>Void
	<span style="color: #000000;">&#123;</span>
		_xmlfile = xmlfile<span style="color: #000066; font-weight: bold;">;</span>
		_targetClip = targetClip<span style="color: #000066; font-weight: bold;">;</span>
		_gridType = gridType<span style="color: #000066; font-weight: bold;">;</span>
		_numOf = numOf<span style="color: #000066; font-weight: bold;">;</span>
		_rowSpacing = rowSpacing<span style="color: #000066; font-weight: bold;">;</span>
		_colSpacing = colSpacing<span style="color: #000066; font-weight: bold;">;</span>
		_xOffset = xOffset<span style="color: #000066; font-weight: bold;">;</span>
		_yOffset = yOffset<span style="color: #000066; font-weight: bold;">;</span>
		_xml = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">XML</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_xml<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ignoreWhite</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
		_xml<span style="color: #000066; font-weight: bold;">.</span>onLoad = Delegate<span style="color: #000066; font-weight: bold;">.</span>create<span style="color: #000000;">&#40;</span> <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span>_makeGrid <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_xml<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span> _xmlfile <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _makeGrid<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #6699cc; font-weight: bold;">var</span> nodes<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = _xml<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">firstChild</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">childNodes</span><span style="color: #000066; font-weight: bold;">;</span>
		_listener = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Object</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_mcl<span style="color: #000066; font-weight: bold;">.</span>addListener<span style="color: #000000;">&#40;</span> _listener <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span>_i=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> _j=<span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> _k=<span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">;</span> _k <span style="color: #000066; font-weight: bold;">&lt;</span> nodes <span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> _i<span style="color: #000066; font-weight: bold;">++,</span> _j<span style="color: #000066; font-weight: bold;">++,</span> _k<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> contents<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> = nodes<span style="color: #000000;">&#91;</span> _k <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">attributes</span><span style="color: #000066; font-weight: bold;">.</span>thumb<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> row = <span style="color: #000000;">&#40;</span>_i<span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">%</span> _numOf<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> col = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">floor</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>_i<span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">/</span> _numOf <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> tmp<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> = _targetClip<span style="color: #000066; font-weight: bold;">.</span>createEmptyMovieClip<span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;box&quot;</span><span style="color: #000066; font-weight: bold;">+</span>_j<span style="color: #000066; font-weight: bold;">,</span>_targetClip<span style="color: #000066; font-weight: bold;">.</span>getNextHighestDepth<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			tmp<span style="color: #000066; font-weight: bold;">.</span>_x = <span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
			tmp<span style="color: #000066; font-weight: bold;">.</span>_y = <span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
			_mcl<span style="color: #000066; font-weight: bold;">.</span>loadClip<span style="color: #000000;">&#40;</span> contents<span style="color: #000066; font-weight: bold;">,</span>tmp <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_listener<span style="color: #000066; font-weight: bold;">.</span>onLoadInit = <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span> tmp <span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>tmp<span style="color: #000066; font-weight: bold;">.</span>_width <span style="color: #000066; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight:bold;">100</span> <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> tmp<span style="color: #000066; font-weight: bold;">.</span>_height <span style="color: #000066; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000000;">&#41;</span>
				<span style="color: #000000;">&#123;</span>
					tmp<span style="color: #000066; font-weight: bold;">.</span>_xscale = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
					tmp<span style="color: #000066; font-weight: bold;">.</span>_yscale = <span style="color: #000000; font-weight:bold;">50</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_gridType == <span style="color: #990000;">&quot;row&quot;</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				_obj<span style="color: #000066; font-weight: bold;">.</span>X = <span style="color: #000000;">&#40;</span> row<span style="color: #000066; font-weight: bold;">*</span>_rowSpacing <span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> _yOffset<span style="color: #000066; font-weight: bold;">;</span>
				_obj<span style="color: #000066; font-weight: bold;">.</span>Y = <span style="color: #000000;">&#40;</span> col<span style="color: #000066; font-weight: bold;">*</span>_colSpacing <span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> _xOffset<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span> 
			<span style="color: #0033ff; font-weight: bold;">else</span> 
			<span style="color: #000000;">&#123;</span>
				_obj<span style="color: #000066; font-weight: bold;">.</span>Y = <span style="color: #000000;">&#40;</span> row<span style="color: #000066; font-weight: bold;">*</span>_rowSpacing <span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> _yOffset<span style="color: #000066; font-weight: bold;">;</span>
				_obj<span style="color: #000066; font-weight: bold;">.</span>X = <span style="color: #000000;">&#40;</span> col<span style="color: #000066; font-weight: bold;">*</span>_colSpacing <span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">+</span> _xOffset<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
			Animator<span style="color: #000066; font-weight: bold;">.</span>animate<span style="color: #000000;">&#40;</span> tmp<span style="color: #000066; font-weight: bold;">,</span> _obj<span style="color: #000066; font-weight: bold;">.</span>X<span style="color: #000066; font-weight: bold;">,</span> _obj<span style="color: #000066; font-weight: bold;">.</span>Y<span style="color: #000066; font-weight: bold;">,</span> _tweenType <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end class</span></pre></div></div>

<p>You can download an easy-install extension plus sample files <a href="http://thesourcecode.org/code/TileMaker.zip">here</a>.<br />
Documentation can be found <a href="http://thesourcecode.org/docs/TileMaker.html" target="blank">here</a>.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="AS2 :: TileMaker Class" data-url="http://technophi.com/2006/07/09/as2-tilemaker-class/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton69" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FijYYAd&amp;via=heroizm&amp;text=AS2%20%3A%3A%20TileMaker%20Class&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2006%2F07%2F09%2Fas2-tilemaker-class%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2006/07/09/as2-tilemaker-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS2 :: FlashCookie Class</title>
		<link>http://technophi.com/2006/07/08/as2-flash-cookie-class/</link>
		<comments>http://technophi.com/2006/07/08/as2-flash-cookie-class/#comments</comments>
		<pubDate>Sat, 08 Jul 2006 08:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Goal: Create a simple way to incorporate SharedObjects into Flash-based forms.

[code lang="Actionscript"]class org.thesourcecode.utils.FlashCookie {
   private var _mainTL:MovieClip;
   private var _cookie:SharedObject;
   private var _cookieName:String;
   private var _chips:Object;
   
   public function FlashCookie(newCookie:String,target:MovieClip) {
      this._cookieName = newCookie;
      _cookie = SharedObject.getLocal(_cookieName);
	  _mainTL = target;
   }
   
   public function bakeCookie(obj:Object):Void {
      var i:String;
      for (i in obj) {
]]></description>
			<content:encoded><![CDATA[<p>Goal: Create a simple way to incorporate SharedObjects into Flash-based forms.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">class</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>FlashCookie
<span style="color: #000000;">&#123;</span>
   <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _mainTL<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _cookie<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">SharedObject</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _cookieName<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _chips<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> FlashCookie<span style="color: #000000;">&#40;</span> newCookie<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
      <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>_cookieName = newCookie<span style="color: #000066; font-weight: bold;">;</span>
      _cookie = <span style="color: #004993;">SharedObject</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">getLocal</span><span style="color: #000000;">&#40;</span> _cookieName <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
      _mainTL = <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> bakeCookie<span style="color: #000000;">&#40;</span> obj<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span>Void
   <span style="color: #000000;">&#123;</span>
      <span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
      <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span>i <span style="color: #0033ff; font-weight: bold;">in</span> obj<span style="color: #000000;">&#41;</span>
      <span style="color: #000000;">&#123;</span>
         _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span> = obj<span style="color: #000000;">&#91;</span> i <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
         _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">flush</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
      <span style="color: #000000;">&#125;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> getChip<span style="color: #000000;">&#40;</span> str<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>
   <span style="color: #000000;">&#123;</span>
      <span style="color: #0033ff; font-weight: bold;">return</span> _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#91;</span> str <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> getChips<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span>
   <span style="color: #000000;">&#123;</span>
      _chips = _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000066; font-weight: bold;">;</span>
      <span style="color: #0033ff; font-weight: bold;">return</span> _chips<span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> getCookieName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>
   <span style="color: #000000;">&#123;</span>
      <span style="color: #0033ff; font-weight: bold;">return</span> _cookieName<span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> checkCookie<span style="color: #000000;">&#40;</span> prop<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span> fields<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> <span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
	   <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#91;</span>prop<span style="color: #000000;">&#93;</span> <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #0033ff; font-weight: bold;">undefined</span><span style="color: #000000;">&#41;</span>
	   <span style="color: #000000;">&#123;</span>
		   <span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
		   <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span>i=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i <span style="color: #000066; font-weight: bold;">&lt;</span> fields<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
		   <span style="color: #000000;">&#123;</span>
			   _mainTL<span style="color: #000000;">&#91;</span> fields<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#91;</span> fields<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
		   <span style="color: #000000;">&#125;</span>
	   <span style="color: #000000;">&#125;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> addChips<span style="color: #000000;">&#40;</span> fields<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> <span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
	   <span style="color: #6699cc; font-weight: bold;">var</span> i<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	   <span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span>i=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">&lt;</span>fields<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
	   <span style="color: #000000;">&#123;</span>
		   <span style="color: #009900; font-style: italic;">//trace( _mainTL[fields[i]].text );</span>
		   _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">data</span><span style="color: #000000;">&#91;</span>  fields<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> = _mainTL<span style="color: #000000;">&#91;</span> fields<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">;</span>
	   <span style="color: #000000;">&#125;</span>
	   _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">flush</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> eatCookie<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
   <span style="color: #000000;">&#123;</span>
	   _cookie<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Download the easy-install extension and sample files <a href="http://thesourcecode.org/code/FlashCookie.zip">here</a>.</p>
<p>Documentation can be found <a href="http://thesourcecode.org/docs/FlashCookie.html" target="blank">here</a>.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="AS2 :: FlashCookie Class" data-url="http://technophi.com/2006/07/08/as2-flash-cookie-class/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton68" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FkDRrxc&amp;via=heroizm&amp;text=AS2%20%3A%3A%20FlashCookie%20Class&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2006%2F07%2F08%2Fas2-flash-cookie-class%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2006/07/08/as2-flash-cookie-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS2 :: Guestbook Class</title>
		<link>http://technophi.com/2006/07/07/as2-guestbook-class/</link>
		<comments>http://technophi.com/2006/07/07/as2-guestbook-class/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 08:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Goal: To devise an easy way to add user interaction to a full-Flash site, in this case a guestbook.
[code lang="Actionscript"]class org.thesourcecode.utils.Guestbook {
	private var _earl:String;
	private var _display;
	private var _getEntries:LoadVars;
	private var _sender:LoadVars;
	private var _receiver:LoadVars;
	private var _refresh:LoadVars;
	private var _mainTL:MovieClip;
	private var _validname:Boolean;
	private var _validemail:Boolean;
	private var _validcity:Boolean;
	private var _validmsg:Boolean;
	private var _array:Array;
	private var _uri:String;
	
]]></description>
			<content:encoded><![CDATA[<p>Goal: To devise an easy way to add user interaction to a full-Flash site, in this case a guestbook.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">class</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>Guestbook
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _earl<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _display<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _getEntries<span style="color: #000066; font-weight: bold;">:</span>LoadVars<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _sender<span style="color: #000066; font-weight: bold;">:</span>LoadVars<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _receiver<span style="color: #000066; font-weight: bold;">:</span>LoadVars<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _refresh<span style="color: #000066; font-weight: bold;">:</span>LoadVars<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _mainTL<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _validname<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _validemail<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _validcity<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _validmsg<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _array<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _uri<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Guestbook<span style="color: #000000;">&#40;</span> <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_mainTL = <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end constructor</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//retreive the specified posts</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> getPosts<span style="color: #000000;">&#40;</span> <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">min</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">max</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_earl = <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">;</span>
		_display = <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">;</span>
		_getEntries = <span style="color: #0033ff; font-weight: bold;">new</span> LoadVars<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_getEntries<span style="color: #000066; font-weight: bold;">.</span>onLoad = <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span> success<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> <span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>success<span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
				<span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>strflash<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> 
		<span style="color: #000000;">&#123;</span>
				<span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>strflash<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
		_getEntries<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">load</span><span style="color: #000000;">&#40;</span>_earl<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//get the user-entered info and insert into the database</span>
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> addPost<span style="color: #000000;">&#40;</span> fields<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">target</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_array = fields<span style="color: #000066; font-weight: bold;">;</span>
		_uri = <span style="color: #004993;">url</span><span style="color: #000066; font-weight: bold;">;</span>
		_display = <span style="color: #004993;">target</span><span style="color: #000066; font-weight: bold;">;</span>
		checkPost<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//basic validation stuff</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> checkPost<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_validname = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
		_validemail = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
		_validcity = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
		_validmsg = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_mainTL<span style="color: #000066; font-weight: bold;">.</span>gname<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_validname = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> 
		<span style="color: #000000;">&#123;</span>
			_mainTL<span style="color: #000066; font-weight: bold;">.</span>msg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Please complete all fields&quot;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_mainTL<span style="color: #000066; font-weight: bold;">.</span>gmail<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> == <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span> 
		<span style="color: #000000;">&#123;</span>
			_mainTL<span style="color: #000066; font-weight: bold;">.</span>msg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;I need your email address&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_mainTL<span style="color: #000066; font-weight: bold;">.</span>gmail<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">indexOf</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;@&quot;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1</span> 
		   <span style="color: #000066; font-weight: bold;">||</span> _mainTL<span style="color: #000066; font-weight: bold;">.</span>gmail<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">indexOf</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;.&quot;</span><span style="color: #000000;">&#41;</span> == <span style="color: #000066; font-weight: bold;">-</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span> 
		<span style="color: #000000;">&#123;</span>
			_mainTL<span style="color: #000066; font-weight: bold;">.</span>msg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Please provide a valid email&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span>
		 <span style="color: #000000;">&#123;</span>
			_validemail = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_mainTL<span style="color: #000066; font-weight: bold;">.</span>gfrom<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_validcity = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> 
		<span style="color: #000000;">&#123;</span>
			_mainTL<span style="color: #000066; font-weight: bold;">.</span>msg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Please complete all fields&quot;</span>
		<span style="color: #000000;">&#125;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_mainTL<span style="color: #000066; font-weight: bold;">.</span>gmsg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> <span style="color: #000066; font-weight: bold;">!</span>= <span style="color: #990000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_validmsg = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> 
		<span style="color: #000000;">&#123;</span>
			_mainTL<span style="color: #000066; font-weight: bold;">.</span>msg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Please complete all fields&quot;</span>
		<span style="color: #000000;">&#125;</span>
		processCheck<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//2nd phase of validation (puts 2 steps between the FLA and class</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> processCheck<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_validname <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> _validemail <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> _validcity <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> _validmsg<span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_addPost<span style="color: #000000;">&#40;</span> _array<span style="color: #000066; font-weight: bold;">,</span>_uri<span style="color: #000066; font-weight: bold;">,</span>_display <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
	<span style="color: #009900; font-style: italic;">//now you can send the data</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _addPost<span style="color: #000000;">&#40;</span> flds<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">,</span>script<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">target</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_sender = <span style="color: #0033ff; font-weight: bold;">new</span> LoadVars<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_receiver = <span style="color: #0033ff; font-weight: bold;">new</span> LoadVars<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		_receiver<span style="color: #000066; font-weight: bold;">.</span>onLoad = <span style="color: #339966; font-weight: bold;">function</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_mainTL<span style="color: #000066; font-weight: bold;">.</span>msg<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>statusMsg<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span><span style="color: #3f5fbf;">/**/</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> i=<span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span> i <span style="color: #000066; font-weight: bold;">&lt;</span> flds <span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span><span style="color: #000066; font-weight: bold;">;</span> i<span style="color: #000066; font-weight: bold;">++</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_sender<span style="color: #000000;">&#91;</span> flds<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> = _mainTL<span style="color: #000000;">&#91;</span> flds<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span> _sender<span style="color: #000000;">&#91;</span>flds<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">//use for debugging</span>
			_mainTL<span style="color: #000000;">&#91;</span> flds<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		_sender<span style="color: #000066; font-weight: bold;">.</span>sendAndLoad<span style="color: #000000;">&#40;</span> script<span style="color: #000066; font-weight: bold;">,</span>_receiver<span style="color: #000066; font-weight: bold;">,</span><span style="color: #990000;">&quot;POST&quot;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
		getPosts<span style="color: #000000;">&#40;</span> _earl<span style="color: #000066; font-weight: bold;">,</span><span style="color: #004993;">target</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end class</span></pre></div></div>

<p>Download the easy-install extension and sample files <a href="http://thesourcecode.org/code/Guestbook.zip">here</a><br />
Documentation can be found <a href="http://thesourcecode.org/docs/Guestbook.html" target="blank">here</a>.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="AS2 :: Guestbook Class" data-url="http://technophi.com/2006/07/07/as2-guestbook-class/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton67" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FktlvN7&amp;via=heroizm&amp;text=AS2%20%3A%3A%20Guestbook%20Class&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2006%2F07%2F07%2Fas2-guestbook-class%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2006/07/07/as2-guestbook-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS2 :: BackgroundFill Class</title>
		<link>http://technophi.com/2006/07/06/as2-backgroundfill-class/</link>
		<comments>http://technophi.com/2006/07/06/as2-backgroundfill-class/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 08:00:00 +0000</pubDate>
		<dc:creator>Hasan Otuome</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS2]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Goal: To devise an easy reusable way to create seamless backgrounds for full-screen Flash movies whether it be gradients or bitmaps. Works with a "bg" Object customized to your needs.
[code lang="Actionscript"]import flash.display.BitmapData;
import flash.geom.Matrix;

class org.thesourcecode.utils.BackgroundFill{
	private var _main:MovieClip;
	private var _sub:MovieClip;
	private var _w:Number;
	private var _h:Number;
	private var _gradient:Object;
	private var _bitmap:String;
	private var _fillType:String;
	private var _colors:Array;
	private var _alphas:Array;
]]></description>
			<content:encoded><![CDATA[<p>Goal: To devise an easy reusable way to create seamless backgrounds for full-screen Flash movies whether it be gradients or bitmaps. Works with a &#8220;bg&#8221; Object customized to your needs.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">BitmapData</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Matrix</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #9900cc; font-weight: bold;">class</span> org<span style="color: #000066; font-weight: bold;">.</span>thesourcecode<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>BackgroundFill
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _main<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _sub<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _w<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _h<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _gradient<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _bitmap<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _fillType<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _colors<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _alphas<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _ratios<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _matrix<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Matrix</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _tile<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> BackgroundFill<span style="color: #000000;">&#40;</span> clip<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MovieClip</span> <span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		_main = clip<span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end constructor</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> fillBg<span style="color: #000000;">&#40;</span> bg<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Object</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span>Void
	<span style="color: #000000;">&#123;</span>
		_w = <span style="color: #004993;">Stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">;</span>
		_h = <span style="color: #004993;">Stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">;</span>
		_bitmap = bg<span style="color: #000066; font-weight: bold;">.</span>bitmap<span style="color: #000066; font-weight: bold;">;</span>
		_gradient = bg<span style="color: #000066; font-weight: bold;">.</span>gradient<span style="color: #000066; font-weight: bold;">;</span>
		_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> 0xFFFFFF<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">clear</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> 0xFFFFFF<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span>_gradient<span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			_tile = <span style="color: #004993;">BitmapData</span><span style="color: #000066; font-weight: bold;">.</span>loadBitmap<span style="color: #000000;">&#40;</span> _bitmap <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginBitmapFill</span><span style="color: #000000;">&#40;</span> _tile <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">moveTo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000066; font-weight: bold;">!</span>_bitmap<span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_gradient<span style="color: #000066; font-weight: bold;">.</span>radial<span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				_fillType = <span style="color: #990000;">&quot;radial&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Matrix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">createGradientBox</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> _h<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span> 
			<span style="color: #0033ff; font-weight: bold;">else</span> 
			<span style="color: #000000;">&#123;</span>
				_fillType = <span style="color: #990000;">&quot;linear&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Matrix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">createGradientBox</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> _h<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">90</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">180</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">PI</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
			<span style="color: #009900; font-style: italic;">//use the defaults for spreadMethod(&quot;pad&quot;), interpolationMethod(&quot;RGB&quot;) and focalPointRatio(0)</span>
			_colors = <span style="color: #000000;">&#91;</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>c1<span style="color: #000066; font-weight: bold;">,</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>c2 <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			_alphas = <span style="color: #000000;">&#91;</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>a1<span style="color: #000066; font-weight: bold;">,</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>a2 <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			_ratios = <span style="color: #000000;">&#91;</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>r1<span style="color: #000066; font-weight: bold;">,</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>r2 <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginGradientFill</span><span style="color: #000000;">&#40;</span> _fillType<span style="color: #000066; font-weight: bold;">,</span> _colors<span style="color: #000066; font-weight: bold;">,</span> _alphas<span style="color: #000066; font-weight: bold;">,</span> _ratios<span style="color: #000066; font-weight: bold;">,</span> _matrix <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span> 
		<span style="color: #0033ff; font-weight: bold;">else</span> 
		<span style="color: #000000;">&#123;</span>
			_tile = <span style="color: #004993;">BitmapData</span><span style="color: #000066; font-weight: bold;">.</span>loadBitmap<span style="color: #000000;">&#40;</span> _bitmap <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginBitmapFill</span><span style="color: #000000;">&#40;</span> _tile <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">moveTo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span>_gradient<span style="color: #000066; font-weight: bold;">.</span>radial<span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				_fillType = <span style="color: #990000;">&quot;radial&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Matrix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">createGradientBox</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> _h<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span> 
			<span style="color: #0033ff; font-weight: bold;">else</span> 
			<span style="color: #000000;">&#123;</span>
				_fillType = <span style="color: #990000;">&quot;linear&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Matrix</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
				_matrix<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">createGradientBox</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> _h<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">90</span><span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">180</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">PI</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
			_colors = <span style="color: #000000;">&#91;</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>c1<span style="color: #000066; font-weight: bold;">,</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>c2 <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			_alphas = <span style="color: #000000;">&#91;</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>a1<span style="color: #000066; font-weight: bold;">,</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>a2 <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			_ratios = <span style="color: #000000;">&#91;</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>r1<span style="color: #000066; font-weight: bold;">,</span> _gradient<span style="color: #000066; font-weight: bold;">.</span>r2 <span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
			_sub = _main<span style="color: #000066; font-weight: bold;">.</span>createEmptyMovieClip<span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;sub&quot;</span><span style="color: #000066; font-weight: bold;">,</span>_main<span style="color: #000066; font-weight: bold;">.</span>getNextHighestDepth<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginGradientFill</span><span style="color: #000000;">&#40;</span> _fillType<span style="color: #000066; font-weight: bold;">,</span> _colors<span style="color: #000066; font-weight: bold;">,</span> _alphas<span style="color: #000066; font-weight: bold;">,</span> _ratios<span style="color: #000066; font-weight: bold;">,</span> _matrix <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> _h <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> _h <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			_sub<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
		_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> _w<span style="color: #000066; font-weight: bold;">,</span> _h <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> _h <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineTo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		_main<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span><span style="color: #009900; font-style: italic;">//end class</span></pre></div></div>

<p>Download the easy-install extension and sample files <a href="http://thesourcecode.org/code/BackgroundFill.zip">here</a>.<br />
Documentation can be found <a href="http://thesourcecode.org/docs/BackgroundFill.html" target="blank">here</a>.</p>
<div style="float: right; padding: 3px;"><a href="http://bufferapp.com/add" class="buffer-add-button" data-text="AS2 :: BackgroundFill Class" data-url="http://technophi.com/2006/07/06/as2-backgroundfill-class/" data-via="bufferapp" data-count="none">Buffer</a><script type="text/javascript" src="http://static.bufferapp.com/js/button.js"></script></div><div id="tweetbutton66" class="tw_button" style="padding: 3px;float:right;margin-left:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Fj.mp%2FlceH6x&amp;via=heroizm&amp;text=AS2%20%3A%3A%20BackgroundFill%20Class&amp;related=heroizm&amp;lang=en&amp;count=none&amp;counturl=http%3A%2F%2Ftechnophi.com%2F2006%2F07%2F06%2Fas2-backgroundfill-class%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://technophi.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://technophi.com/2006/07/06/as2-backgroundfill-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

