<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>ActionScript.org Forums</title>
		<link>http://www.actionscript.org/forums/</link>
		<description>ActionScript.org is a large online community for Macromedia Flash developers at all skill levels. We offer tutorials, open source, scripting assistance, book reviews, scene news and a means of contact between developers.</description>
		<language>en</language>
		<lastBuildDate>Sat, 21 Nov 2009 09:07:48 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.actionscripts.org/forums/images/misc/rss.jpg</url>
			<title>ActionScript.org Forums</title>
			<link>http://www.actionscript.org/forums/</link>
		</image>
		<item>
			<title>how to put photo gallery on flash cs4</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223365&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 08:13:26 GMT</pubDate>
			<description><![CDATA[hi there any actionscript codes for it? i'm kinda new to flash.. but I already learned a lot thanks to lynda.com]]></description>
			<content:encoded><![CDATA[<div>hi there any actionscript codes for it? i'm kinda new to flash.. but I already learned a lot thanks to lynda.com</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=53">Simple Stuff (Newbies)</category>
			<dc:creator>johnclancy</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223365</guid>
		</item>
		<item>
			<title>Aid desired for ProgressBars added at runtime</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223364&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 08:06:55 GMT</pubDate>
			<description>Hello, I am trying to figure out ProgressBars. 
 
I wish to add a manual ProgressBar to the application at runtime, have it progress for a set number...</description>
			<content:encoded><![CDATA[<div>Hello, I am trying to figure out ProgressBars.<br />
<br />
I wish to add a manual ProgressBar to the application at runtime, have it progress for a set number of seconds (changes based on different factors), then call another function when it finishes, as well as remove itself from the application.<br />
<br />
The approach that I have been taking so far is to have a Panel created in MXML in a Flex project. When I click a button, a new ProgressBar is created in ActionScript, then added as a child to the Panel. With the button press, I am also starting a timer that I hope to change the progress of the manual ProgressBar with each timer tick.<br />
<br />
The issue I am running into is that I do not have access to any properties of the ProgressBar that hasn't been created yet, because the progress bar will be added at runtime.<br />
<br />
<br />
Am I pursuing the correct course of action... Is there an easier way to have a progress bar to run for a set number of seconds that I can tell it, or should I attempt to just have a progress bar created at compile time and find a way to hide it while it is dormant?</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=74"><![CDATA[Flex 2 & 3]]></category>
			<dc:creator>moviegameguy</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223364</guid>
		</item>
		<item>
			<title><![CDATA[&& and ||]]></title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223363&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 07:48:42 GMT</pubDate>
			<description><![CDATA[Hi! 
 
Simple question: Can I use "and" and "or" instead of && and || in actionscript 3? 
 
Like this: 
if (wind < windDir and p % 3 == 0)instead of...]]></description>
			<content:encoded><![CDATA[<div>Hi!<br />
<br />
Simple question: Can I use &quot;and&quot; and &quot;or&quot; instead of &amp;&amp; and || in actionscript 3?<br />
<br />
Like this:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:100%; height:52px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">if</span> <span style="color: #000000;">&#40;</span>wind &lt; windDir <span style="color: #993300;">and</span> p % <span style="color: #000000;">3</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span></div></div></pre>
</div>instead of<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:100%; height:52px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">if</span> <span style="color: #000000;">&#40;</span>wind &lt; windDir &amp;&amp; p % <span style="color: #000000;">3</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span></div></div></pre>
</div>I know it's not a big thing but I'm just used to do it this way. I'm getting error that says &quot;1084: Syntax error: expecting rightparen before and.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>tsu</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223363</guid>
		</item>
		<item>
			<title>On Sale Brand New Unlocked Apple iPhone 3GS 32GB, Nokia N97 3G 32GB,BlacyBerry Tour</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223362&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 05:30:01 GMT</pubDate>
			<description>Phonnocomms Limited operate much kind of services and other benefits depending on the rate at which we receive patronage from our buyers and thus...</description>
			<content:encoded><![CDATA[<div>Phonnocomms Limited operate much kind of services and other benefits depending on the rate at which we receive patronage from our buyers and thus this makes us one of the best in the Telecommunication distribution sector.we are dedicated to the service of the public in dispensing and selling quality goods and services to the entire public at large.<br />
<br />
Contact Name :Gyan Thuy Hassain<br />
Company Name : Phonnocomms Limited<br />
Email Us At...Gyanthuystore@windowslive.com<br />
Registered #.760340371<br />
<br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
<br />
Phonnocomms Limited are specialize in a wide range of products such as laptops, mobile phones, plasma &amp; lcd tv, mp3 &amp; mp4 players, video games console, digital cameras, dvd players (Etc) at cheap &amp; affordable prices.<br />
<br />
<br />
OUR GOALS,AIMS,AND OBJECTIVES IS ADEQUACY IN SHIPMENT,DELIVERY OF ORDERS AND HIGH QUALITY OF PRODUCTS ORDERED.WE SINCERELY HOPE YOU ENJOY SHOPPING WITH US.<br />
<br />
We strive to offer high-quality products at competitive prices. All of our products are brand new unlocked original sealed in manuacturer's box with the complete accessories.<br />
<br />
For more informations regarding product and purchasing process send your enquiry to :<br />
<br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
<br />
WORKING DAYS:<br />
<br />
Monday - Thursday 8:00am - 9:00pm EST<br />
Friday 9:00am - 8:00pm EST<br />
Saturday Sunday- 9:00am - 8:00pm EST.<br />
<br />
APPLE IPHONE'S :<br />
<br />
Apple iPhone 3GS 32GB- $275<br />
Apple iPhone 3GS 16GB- $245<br />
Apple iPhone 3G 16GB  $200<br />
Apple iPhone 3G 8GB  $175<br />
Apple iPhone 16GB  $140<br />
Apple iPhone 4GB  $100<br />
Apple iPhone 8GB  $120<br />
<br />
T-MOBILE SIDEKICK PHONES :<br />
<br />
T-Mobile Sidekick LX 2008$180<br />
T-Mobile Sidekick LX 2009$220<br />
T-Mobile Sidekick LX  $155<br />
T-Mobile Shadow  $135<br />
T-Mobile G1  $240<br />
T-Mobile Sidekick 3  $115<br />
Juicy Couture Sidekick 2  $100<br />
<br />
BLACKBERRY PHONES :<br />
<br />
Blackberry 8520 $270<br />
Blackberry Tour $255<br />
Blackberry Curve 8900  $230<br />
Blackberry Storm 9500  $190<br />
Blackberry Storm 9530  $165<br />
Blackberry Pearl Flip 8220  $105<br />
Blackberry Bold 9000  $140<br />
Blackberry Curve 8320  $125<br />
<br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
<br />
HTC PHONES :<br />
<br />
HTC Hero...$320<br />
Htc ozone...$295<br />
Htc Snap...$270<br />
HTC Touch Pro2 $245<br />
HTC Touch Diamond 2  $230<br />
HTC Touch Pro  $190<br />
HTC Touch Diamond  $170<br />
HTC Touch Cruise  $140<br />
HTC Touch Dual  $130<br />
HTC Dream  $195<br />
HTC Touch Cruise 09  $215<br />
HTC MAX 4G  $200<br />
HTC Touch HD  $165<br />
HTC Touch 3G  $155<br />
HTC Touch Viva  $145<br />
<br />
ETEN PHONES :<br />
<br />
Eten glofiish X610  $135<br />
Eten glofiish V900  $235<br />
Eten glofiish X900  $185<br />
Eten glofiish DX900  $165<br />
Eten glofiish M810  $155<br />
Eten glofiish X650  $145<br />
Eten glofiish M800  $160<br />
<br />
NOKIA PHONES:<br />
<br />
Nokia N900--$350<br />
Nokia 6760 Slide--$310<br />
Nokia 6790 SURGE...$280<br />
Nokia N97 32GB $250<br />
Nokia N98$200<br />
Nokia N85$190<br />
Nokia N96 16GB $175<br />
Nokia E90  $155<br />
Nokia N79  $175<br />
Nokia E72  $190<br />
Nokia E71  $180<br />
Nokia E75 - $185<br />
Nokia 8800 Sapphire Arte  $205<br />
Nokia 8600 Luna  $145<br />
Nokia 5530 XpressMusic $240<br />
Nokia 5800 XPress Music-$260<br />
<br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
<br />
SONY ERICSSON:<br />
<br />
Sony Xperia 2...$315<br />
Sony Ericsson Idou$285<br />
Sony Ericsson C510  $220<br />
Sony Ericsson P1  $155<br />
Sony Ericsson C905  $170<br />
Sony Ericsson W960  $130<br />
Sony Ericsson G900  $150<br />
Sony Ericsson XPERIA X1  $215<br />
Sony Ericsson C902  $140<br />
Sony Ericsson W902  $130<br />
<br />
SAMSUNG PHONES:<br />
<br />
Samsung I8000 Omnia II  $285<br />
Samsung B7320 OmniaPRO  $260<br />
Samsung B7300 Omnia LITE$235<br />
Samsung i8910 Omnia HD -$220<br />
Samsung i900 Omnia 16GB  $210<br />
Samsung Omnia 8GB -$190<br />
Samsung S8000 Jet $185<br />
Samsung T929 Memoir  $195<br />
Samsung T919 Behold  $200<br />
Samsung Giorgio Armani P520  $135<br />
Samsung U900 Soul  $170<br />
Samsung G800  $155<br />
Samsung F490  $145<br />
<br />
LG PHONES :<br />
<br />
LG GW550 $205<br />
LG Incite$200<br />
LG GD910$195<br />
LG KS500-$190<br />
LG KF900 Prada$195<br />
LG KC780-$200<br />
LG KP500 Cookie$215<br />
LG KC910 Renoir$210<br />
LG KB770$200<br />
LG CB630 Invision$200<br />
LG KS360-$190<br />
<br />
GAME CONSOLES:<br />
<br />
Playstation:<br />
Sony PSP Slim Giga Bundle  $130<br />
Sony Playstation 3 160GB...$200<br />
Sony PlayStation 3 80GB Motorstorm Pack  $160<br />
Sony Playstation 3 60GB  $140<br />
Sony PlayStation 3 40GB  $125<br />
Xbox 360 premium console $280<br />
Nitendon wii $160<br />
<br />
APPLE IPOD PRODUCTS<br />
<br />
Apple Ipod 160GB $200<br />
Apple Ipod 80Gb $150<br />
Apple Ipod 60Gb $100<br />
Apple Ipod 30Gb $140<br />
Apple Ipod nano 4Gb $80<br />
Archos 504 80Gb Media Player $230<br />
<br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
<br />
APPLE LAPTOPS<br />
<br />
Apple MacBook Pro 15&quot; Laptop Computer &quot;$600<br />
Apple MacBook Pro Laptop Computer with Intel Core 2 Duo&quot;$600<br />
Apple MacBook Pro MA895LL/A 15&quot; Laptop (2.2 GHz Intel Core2Duo&quot;$600<br />
Apple MacBook Pro 15&quot; 2.2GHz Laptop Computer&quot;$600<br />
Apple MacBook - MA699LL/A $600<br />
Apple MacBook Air Notebook Computer MacBook Air $400<br />
Apple MacBook Air 13-inch 1.6Ghz Intel Core 2 Duo$400<br />
Apple MacBook Air 13-inch 1.8Ghz Intel Core 2 Duo $500<br />
<br />
<br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
Email : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
<br />
NIKON PRODUCTS<br />
<br />
Nikon D200 - $900<br />
Nikon D200 - Nikon AF-S DX 18-200mm lens $600<br />
Nikon D60 - Nikon AF-S DX 18-55mm and 55-200mm lenses $800<br />
Nikon Coolpix 5700 - supported memory: CF, Microdrive $700<br />
Nikon D80 - Nikon AF-S DX 18-135mm and 70-300mm lenses $800<br />
Nikon D80 - Nikon AF-S DX 18-135mm lens $600<br />
Nikon D300 - Nikon AF-S DX 18-200mm lens $800<br />
Nikon D80 - Nikon AF-S DX 18-55mm lens - supported memory: MMC, SD $700<br />
<br />
PIONEER PRODUCTS<br />
<br />
Pioneer CDJ-MK3 1000----------------$700<br />
Pioneer DJ Effector - Red-----------$300<br />
Pioneer Pro DJ Mixer----------------$350<br />
Pioneer System Case (CA-CMX5).......$450.00<br />
Pioneer CDJ-800MK2 Digital Vinyl Turntable=--$520<br />
Pioneer Dual Rackmount CD Player--------$600<br />
Pioneer Pro DJ Mixer (Black)-------------$700<br />
Pioneer Rack mount pro DJ mixer---------$780<br />
Pioneer Pro DJ Mixer (Silver)------------$710<br />
Pioneer Pro DJ Mixer (Silver)............$800<br />
Pioneer CDJ-1000MK3 Digital Vinyl Turntable--$900<br />
Pioneer 96Khz / 24 bit digital mixer.-----$960<br />
Pioneer Flat Speakers (ea.)-------------$980<br />
Pioneer Professional DVD Turntable-------$1500<br />
Pioneer Professional DVD Turntable-------$1800<br />
Pioneer Pro DJ 96Khz 24bit Mixer---------$1,600<br />
Pioneer Professional DVD Turntable------$1,720<br />
Pioneer Professional DVD Turntable------$1000<br />
Pioneer Djm-800 4 Channel Dj Mixer W/midi---$900<br />
Pioneer DJM-400 Professional DJ Mixer------$300<br />
<br />
RETURN POLICY FOR ITEMS PURCHASED<br />
Before you return your items, you must contact us and receive a Return Merchandise Authorization Number (RMA). Any returns sent without an RMA number will not be accepted by Shoprite mall.. We assume all responsibility for the package until it<br />
arrives at our office.<br />
<br />
Return freight is the sole responsibility of the consumer.<br />
Refunds on returned items which were paid for by credit card will only be made by crediting the account charged for the purchase.<br />
Refunds on returned items which were paid for by wire transfer, check or cash (in-store) will only be made by check after a 10-day waiting period.<br />
<br />
We give maximum guarantee for safe delivery of items bought from us.<br />
<br />
As soon as final conclusions are done from your side kindly contact us as soon as possible so as to lead you on how to transact with us.<br />
<br />
Thanking you in anticipation and looking forward to doing long term business with you.<br />
<br />
Online Chat Msn ID : <a href="mailto:Gyanthuystore@windowslive.com">Gyanthuystore@windowslive.com</a><br />
<br />
Yours Sincerely<br />
<br />
Contact Name :Gyan Thuy Hassain<br />
Company Name : Phonnocomms Limited<br />
Email Us At...Gyanthuystore@windowslive.com<br />
Registered #.760340371</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=74"><![CDATA[Flex 2 & 3]]></category>
			<dc:creator>yetty</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223362</guid>
		</item>
		<item>
			<title>ByteArray</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223361&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 05:03:21 GMT</pubDate>
			<description>Edit: Sorry, figured it out after a couple hours.. really need to pay attention better.</description>
			<content:encoded><![CDATA[<div>Edit: Sorry, figured it out after a couple hours.. really need to pay attention better.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>Dae</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223361</guid>
		</item>
		<item>
			<title>strange problem with loading images / event dispatch</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223360&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 03:28:53 GMT</pubDate>
			<description>EDIT: 
//////// 7 HOURS OF SEARCHING, JUST TO FIND OUT, I FORGOT TO UPLOAD THE NEW XML (with THE ONE more pic)...</description>
			<content:encoded><![CDATA[<div>EDIT:<br />
//////// 7 HOURS OF SEARCHING, JUST TO FIND OUT, I FORGOT TO UPLOAD THE NEW XML (with THE ONE more pic) ////////AAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHH!!!!!!!<br />
<br />
problem solved... :-|<br />
(maybe at least someone learns something from the code or mistake)<br />
<br />
<br />
Hi folks!<br />
<br />
My brain is in serious danger! I just can`t figure out what`s wrong with this code (first code, than error description):<br />
<br />
My document class:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:100%; height:516px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">public</span> <span style="color: #993300;">class</span> Main <span style="color: #993300;">extends</span> Sprite
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> xmlLoader:XMLLoader;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> imagesLoader:ImagesLoader;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">public</span> <span style="color: #993300;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlLoader = <span style="color: #993300;">new</span> XMLLoader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlLoader.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>Event.<span style="color: #000000;">COMPLETE</span>, onXMLLoaded<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlLoader.<span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span><span style="color: #0000FF;">"xml/assets.xml"</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">function</span> onXMLLoaded<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>:Event<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imagesLoader = <span style="color: #993300;">new</span> ImagesLoader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imagesLoader.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>Event.<span style="color: #000000;">COMPLETE</span>, onImagesLoaded<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imagesLoader.<span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span>xmlLoader.<span style="color: #000000;">images</span>, <span style="color: #993300;">this</span>.<span style="color: #993300;">stage</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>imagesLoader<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">function</span> onImagesLoaded<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>:Event<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">// This loop works pretty well</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">for</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">var</span> i:uint = <span style="color: #000000;">0</span>; i &lt; imagesLoader.<span style="color: #000000;">images</span>.<span style="color: #993300;">length</span>; i++<span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>imagesLoader.<span style="color: #000000;">images</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">//---------------------------------------</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> table:Sprite = imagesLoader.<span style="color: #000000;">images</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#93;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>table<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> arm:Sprite = imagesLoader.<span style="color: #000000;">images</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>arm<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> volControl:Sprite = imagesLoader.<span style="color: #000000;">images</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>volControl<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> playPause:Sprite = imagesLoader.<span style="color: #000000;">images</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>playPause<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> piece:Sprite = imagesLoader.<span style="color: #000000;">images</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #F000F0; font-style: italic;">// At this point I keep getting the error</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>piece<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
The ImagesLoader class:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:100%; height:516px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">public</span> <span style="color: #993300;">class</span> ImagesLoader <span style="color: #993300;">extends</span> Sprite
&nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> preloader:Preloader;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> _stage:<span style="color: #993300;">Stage</span>;
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> currentImageId:uint = <span style="color: #000000;">0</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> totalImages:uint = <span style="color: #000000;">0</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> imageUrls_ary:<span style="color: #993300;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">var</span> images_ary:<span style="color: #993300;">Array</span> = <span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">public</span> <span style="color: #993300;">function</span> <span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span>images:XMLList, _stage:<span style="color: #993300;">Stage</span><span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">this</span>._stage = _stage;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; displayPreloader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">for</span> each<span style="color: #000000;">&#40;</span><span style="color: #993300;">var</span> image <span style="color: #993300;">in</span> images.*<span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageUrls_ary.<span style="color: #993300;">push</span><span style="color: #000000;">&#40;</span>image.@path<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; images_ary.<span style="color: #993300;">push</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">new</span> Sprite<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; totalImages = imageUrls_ary.<span style="color: #993300;">length</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loadImage<span style="color: #000000;">&#40;</span>imageUrls_ary<span style="color: #000000;">&#91;</span>currentImageId<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">function</span> displayPreloader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloader = <span style="color: #993300;">new</span> Preloader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloader.<span style="color: #000000;">x</span> = <span style="color: #000000;">&#40;</span>_stage.<span style="color: #000000;">stageWidth</span> / <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span>preloader.<span style="color: #993300;">width</span> / <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloader.<span style="color: #000000;">y</span> = <span style="color: #000000;">&#40;</span>_stage.<span style="color: #000000;">stageHeight</span> / <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span>preloader.<span style="color: #993300;">height</span> / <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #000000;">&#40;</span>preloader<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">function</span> loadImage<span style="color: #000000;">&#40;</span><span style="color: #993300;">url</span>:<span style="color: #993300;">String</span><span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> loader:Loader = <span style="color: #993300;">new</span> Loader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader.<span style="color: #000000;">contentLoaderInfo</span>.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>ProgressEvent.<span style="color: #000000;">PROGRESS</span>, progressHandler<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader.<span style="color: #000000;">contentLoaderInfo</span>.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>Event.<span style="color: #000000;">COMPLETE</span>, completeHandler<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loader.<span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">new</span> URLRequest<span style="color: #000000;">&#40;</span><span style="color: #993300;">url</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">function</span> progressHandler<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>:ProgressEvent<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; preloader.<span style="color: #000000;">update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>.<span style="color: #993300;">bytesLoaded</span> / <span style="color: #993300;">e</span>.<span style="color: #993300;">bytesTotal</span><span style="color: #000000;">&#41;</span>*<span style="color: #000000;">100</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">private</span> <span style="color: #993300;">function</span> completeHandler<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>:Event<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">var</span> image:Bitmap = <span style="color: #993300;">new</span> Bitmap<span style="color: #000000;">&#40;</span><span style="color: #993300;">e</span>.<span style="color: #993300;">target</span>.<span style="color: #000000;">content</span>.<span style="color: #000000;">bitmapData</span>.<span style="color: #000000;">clone</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #0000FF;">"auto"</span>, <span style="color: #993300;">true</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; images_ary<span style="color: #000000;">&#91;</span>currentImageId<span style="color: #000000;">&#93;</span>.<span style="color: #000000;">addChild</span><span style="color: #000000;">&#40;</span>image<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; currentImageId++;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">if</span><span style="color: #000000;">&#40;</span>currentImageId &lt; totalImages<span style="color: #000000;">&#41;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loadImage<span style="color: #000000;">&#40;</span>imageUrls_ary<span style="color: #000000;">&#91;</span>currentImageId<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">else</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeChild<span style="color: #000000;">&#40;</span>preloader<span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dispatchEvent<span style="color: #000000;">&#40;</span><span style="color: #993300;">new</span> Event<span style="color: #000000;">&#40;</span>Event.<span style="color: #000000;">COMPLETE</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">public</span> <span style="color: #993300;">function</span> <span style="color: #993300;">get</span> images<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #993300;">Array</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #993300;">return</span> images_ary;
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#125;</span>
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
<br />
When i test the movie local, everything works just fine.<br />
But when I upload it to my webspace, the for-loop works, but for the rest I get the following error (I can`t use the for-loop. I need to pass the images to seperate classes):<br />
<br />
Error #2007: Parameter child must be non-null... (location see code).<br />
<br />
I don`t understand this, because of two reasons:<br />
<br />
- imagesLoader.images[4] can`t be null, because I filled it with Sprites first.<br />
- imagesLoader.images[4] shouldn`t be null, because Event.COMPLETE gets dispatched AFTER the array was filled completly. (or not !?)<br />
<br />
EDIT:I just found out that at the time onImagesLoaded() gets triggered, the array is not full yet (it`s 4 instead of 5). How can that be ?! It was filled with 5 Sprites in the load function of the ImagesLoader.  (Again, happens only online).<br />
<br />
Is this a bug or am I blind ?<br />
<br />
Hope someone can help quick. Time`s money...<br />
<br />
thx</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>burt.cocaine</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223360</guid>
		</item>
		<item>
			<title>is it possible to upload flash games or swf as i cant on tube</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223359&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 03:18:46 GMT</pubDate>
			<description>I found this article below on uploading flash games on facebook and my space is this true. I wondering were i can get free webspace to upload just...</description>
			<content:encoded><![CDATA[<div>I found this article below on uploading flash games on facebook and my space is this true. I wondering were i can get free webspace to upload just trial games <br />
<br />
<br />
if you want to post flash file on Myspace, Facebook or Orkut, you can do it easily by copy and pasting this given code in box. What you need to do is to first upload the flash file at any web host you can use geocities.com if you have yahoo account, then you need to hotlink this uploaded flash file to your code at Myspace.<br />
<br />
1. Upload your flash or swf file to any webhost.<br />
2. Get URL of that flash file. something like <a href="http://yourfile.swf" target="_blank">http://yourfile.swf</a><br />
<br />
3. Replace the url in given code by your url of flash file. Adjust the dimension of file according to your requirement. It will be better if you keep original size.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=91">Gaming and Game Development</category>
			<dc:creator>hansolo</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223359</guid>
		</item>
		<item>
			<title>Need help for search</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223358&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 02:31:09 GMT</pubDate>
			<description>Hi Friends, 
 
I am doing a Multimedia CD Rom using flash. There are separate swf movies for separate pages. In this I want to add a search facility,...</description>
			<content:encoded><![CDATA[<div>Hi Friends,<br />
<br />
I am doing a Multimedia CD Rom using flash. There are separate swf movies for separate pages. In this I want to add a search facility, in which when I type a word, and press enter then the user should lead to the specified frame of a particular movie where the key word is mentioned. I can store the keywords in a xml file, and when the user enters the word a drop down menu should suggest the words with that letter. If any one has such a script, I will appreciate your help.<br />
<br />
Hiran</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=59">ActionScript 1.0 (and below)</category>
			<dc:creator>hiran.works@gmail.com</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223358</guid>
		</item>
		<item>
			<title>Need help for search</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223357&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 02:30:20 GMT</pubDate>
			<description>Hi Friends, 
 
I am doing a Multimedia CD Rom using flash. There are separate swf movies for separate pages. In this I want to add a search facility,...</description>
			<content:encoded><![CDATA[<div>Hi Friends,<br />
<br />
I am doing a Multimedia CD Rom using flash. There are separate swf movies for separate pages. In this I want to add a search facility, in which when I type a word, and press enter then the user should lead to the specified frame of a particular movie where the key word is mentioned. I can store the keywords in a xml file, and when the user enters the word a drop down menu should suggest the words with that letter. If any one has such a script, I will appreciate your help.<br />
<br />
Hiran</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=35">ActionScript 2.0</category>
			<dc:creator>hiran.works@gmail.com</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223357</guid>
		</item>
		<item>
			<title>Help with loading xml data</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223356&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 00:34:38 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I'm loading data into my flash movie from an xml file like this: 
 
 
 
var queryStrings = this.loaderInfo.parameters; 
var gallery =...]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I'm loading data into my flash movie from an xml file like this:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:100%; height:228px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript"><span style="color: #993300;">var</span> queryStrings = <span style="color: #993300;">this</span>.<span style="color: #000000;">loaderInfo</span>.<span style="color: #000000;">parameters</span>;
<span style="color: #993300;">var</span> gallery = queryStrings.<span style="color: #000000;">galleryName</span>;

<span style="color: #993300;">var</span> xmlLoader:URLLoader = <span style="color: #993300;">new</span> URLLoader<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
xmlLoader.<span style="color: #000000;">addEventListener</span><span style="color: #000000;">&#40;</span>Event.<span style="color: #000000;">COMPLETE</span>, loadXML, <span style="color: #993300;">false</span>, <span style="color: #000000;">0</span>, <span style="color: #993300;">true</span><span style="color: #000000;">&#41;</span>;
xmlLoader.<span style="color: #993300;">load</span><span style="color: #000000;">&#40;</span>xmlURL<span style="color: #000000;">&#41;</span>;

<span style="color: #993300;">function</span> loadXML<span style="color: #000000;">&#40;</span>evt:Event<span style="color: #000000;">&#41;</span>:<span style="color: #993300;">void</span><span style="color: #000000;">&#123;</span>
&nbsp; &nbsp; 
&nbsp; &nbsp; <span style="color: #993300;">var</span> xmlData:<span style="color: #993300;">XML</span> = <span style="color: #993300;">new</span> <span style="color: #993300;">XML</span><span style="color: #000000;">&#40;</span>evt.<span style="color: #993300;">target</span>.<span style="color: #993300;">data</span><span style="color: #000000;">&#41;</span>;
&nbsp; &nbsp; images = xmlData.<span style="color: #000000;">personal</span>.<span style="color: #000000;">image</span>;
<span style="color: #000000;">&#125;</span></div></div></pre>
</div><br />
The problem is; the part that says &quot;personal&quot; is supposed to be dynamic depending on the query string. So effectively, it's meant to be xmlData.<b>gallery</b>.image - but that doesn't work for obvious reasons!<br />
<br />
Does anyone know how I would go about doing that?<br />
<br />
Thanks in advance,<br />
<br />
Dan</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>dan2684</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223356</guid>
		</item>
		<item>
			<title>Need help with script for Google Maps.</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223355&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 00:20:51 GMT</pubDate>
			<description><![CDATA[I just started using Flex to create a map with markers on it. The markers are being loaded from an XML file. But they aren't loading. I'm also...]]></description>
			<content:encoded><![CDATA[<div>I just started using Flex to create a map with markers on it. The markers are being loaded from an XML file. But they aren't loading. I'm also getting this error. <br />
<br />
<br />
1013: The private attribute may be used only on class property definitions.	<br />
<br />
Referring to...	<br />
<br />
private function goGeocode(event:Event):void {<br />
<br />
Entire code below. So, I need help loading the XML data and clearing the error. Any takers? Any help appreciated! <br />
<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; xmlns:maps=&quot;com.google.maps.*&quot; <br />
&nbsp; width=&quot;100%&quot; height=&quot;100%&quot; layout=&quot;absolute&quot; viewSourceURL=&quot;srcview/index.html&quot;&gt;<br />
&nbsp;&lt;mx:Panel title=&quot;Find Dragon Bleu Near You&quot; width=&quot;100%&quot; height=&quot;100%&quot; color=&quot;#FF9024&quot; borderColor=&quot;#001A35&quot; borderStyle=&quot;none&quot;&gt;<br />
&nbsp;&lt;mx:VBox width=&quot;100%&quot; height=&quot;100%&quot; borderColor=&quot;#0B2A54&quot;&gt;<br />
&nbsp;&lt;mx:HBox width=&quot;100%&quot; height=&quot;25&quot;&gt;<br />
&nbsp; &lt;mx:Label<br />
&nbsp; &nbsp;  text=&quot;Enter Zip Code: &quot;/&gt;<br />
&nbsp; &lt;mx:TextInput<br />
&nbsp; &nbsp;  id=&quot;address&quot;<br />
&nbsp; &nbsp;  text=&quot;48917&quot;<br />
&nbsp; &nbsp;  dropShadowColor=&quot;0x000000&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  enter=&quot;goGeocode(event);&quot;<br />
&nbsp; /&gt;<br />
&nbsp; &lt;mx:Button<br />
&nbsp; &nbsp;  id=&quot;submitButton&quot; label=&quot;Search&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp;  click=&quot;goGeocode(event);&quot;<br />
&nbsp; /&gt;<br />
&nbsp;&lt;/mx:HBox&gt;<br />
&nbsp; &lt;maps:Map <br />
&nbsp; &nbsp; id=&quot;map&quot; <br />
&nbsp; &nbsp; key=&quot;ABQIAAAATqDu4uAIAryq9wgO8QvROhS1Ty5pbIhgzWgsWrQip6N6Hz6-fBRQ_NtWP9sHgo1hTLZM4Gsf2mPVmA&quot; <br />
&nbsp; &nbsp; mapevent_mapready=&quot;onMapReady(event)&quot;<br />
&nbsp; &nbsp; width=&quot;100%&quot; height=&quot;100%&quot;/&gt;<br />
&nbsp;&lt;/mx:VBox&gt;<br />
&nbsp;&lt;/mx:Panel&gt;<br />
&nbsp;&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
<br />
import com.google.maps.LatLng;&nbsp; <br />
import com.google.maps.Map;&nbsp; <br />
import com.google.maps.MapEvent;&nbsp; <br />
import com.google.maps.MapType; <br />
import com.google.maps.controls.ZoomControl;<br />
import com.google.maps.controls.PositionControl;<br />
import com.google.maps.controls.MapTypeControl;<br />
import com.google.maps.overlays.MarkerOptions;&nbsp; <br />
import com.google.maps.overlays.Marker; <br />
import com.google.maps.InfoWindowOptions;<br />
import com.google.maps.MapMouseEvent;<br />
import com.google.maps.services.ClientGeocoder;<br />
import com.google.maps.services.GeocodingEvent;<br />
import com.google.maps.services.ClientGeocoderOptions;<br />
import mx.controls.Alert;<br />
import flash.net.URLLoader;<br />
import flash.net.URLRequest;<br />
import flash.display.*;<br />
import flash.events.*;<br />
import flash.net.*;&nbsp; <br />
import flash.events.EventDispatcher;<br />
<br />
&nbsp; &nbsp; private function onMapReady(event:Event):void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; map.enableScrollWheelZoom();<br />
&nbsp; &nbsp; &nbsp; &nbsp; map.enableContinuousZoom();<br />
&nbsp; &nbsp; &nbsp; &nbsp; map.addControl(new ZoomControl());<br />
&nbsp; &nbsp; &nbsp; &nbsp; map.addControl(new PositionControl());<br />
&nbsp; &nbsp; &nbsp; &nbsp; map.addControl(new MapTypeControl());<br />
&nbsp; &nbsp; &nbsp; &nbsp; map.setCenter(new LatLng(42.25796,-83.209568), 8, MapType.NORMAL_MAP_TYPE);&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xmlLoader();<br />
&nbsp; &nbsp; &nbsp;  }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private function xmlLoader() :void {&nbsp; &nbsp; &nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; function loadXML(e:Event):void{&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; XML.ignoreWhitespace = true;&nbsp;  <br />
&nbsp; &nbsp; &nbsp; &nbsp; var map_xml:XML = new XML(e.target.data);&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; var xmlLoader:URLLoader = new URLLoader();&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlLoader.addEventListener(Event.COMPLETE, loadXML);&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; xmlLoader.load(new URLRequest(&quot;http://dragonbleuusa.com/locations.xml&quot;));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; for (var i:Number = 0; i &lt; map_xml.location.length(); i++){&nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; var latlng:LatLng = new LatLng(map_xml.location[i].lat, map_xml.location[i].lon);<br />
&nbsp; &nbsp; &nbsp; &nbsp; var tip:Object = map_xml.location[i].name_tip;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var myTitle:String = map_xml.location[i].title_tip;<br />
&nbsp; &nbsp; &nbsp; &nbsp; var myContent:String = map_xml.location[i].content_tip;&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; map.addOverlay(createMarker(latlng,i, tip, myTitle, myContent));<br />
&nbsp; &nbsp; &nbsp; &nbsp;  }<br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; function createMarker(latlng:LatLng, number:Number, tip:Object, myTitle:Object, myContent:Object):Marker {<br />
&nbsp; &nbsp;  var i:Marker = new Marker(<br />
&nbsp; &nbsp; &nbsp; &nbsp; latlng,<br />
&nbsp; &nbsp; &nbsp; &nbsp; new MarkerOptions({ hasShadow: true, tooltip: &quot;&quot;+tip&nbsp; <br />
&nbsp; &nbsp; })<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  );<br />
&nbsp; &nbsp; return i;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; private function goGeocode(event:Event):void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Geocoding example<br />
&nbsp; &nbsp; &nbsp; &nbsp; var geocoder:ClientGeocoder = new ClientGeocoder();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; geocoder.addEventListener(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GeocodingEvent.GEOCODING_SUCCESS,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function(event:GeocodingEvent):void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var placemarks:Array = event.response.placemarks;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (placemarks.length &gt; 0) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.setCenter(placemarks[0].point);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var marker:Marker = new Marker(placemarks[0].point);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; marker.addEventListener(MapMouseEvent.CLICK, function (event:MapMouseEvent):void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; marker.openInfoWindow(new InfoWindowOptions({content: placemarks[0].address}));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; map.addOverlay(marker);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; geocoder.addEventListener(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GeocodingEvent.GEOCODING_FAILURE,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function(event:GeocodingEvent):void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.show(&quot;Geocoding failed&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace(event);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; trace(event.status);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; });<br />
&nbsp; &nbsp; &nbsp; &nbsp; geocoder.geocode(address.text);<br />
&nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
&nbsp;}}]]&gt;<br />
&lt;/mx:Script&gt;<br />
<br />
&lt;/mx:Application&gt;</code><hr />
</div></div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=74"><![CDATA[Flex 2 & 3]]></category>
			<dc:creator>kaZ8Teen</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223355</guid>
		</item>
		<item>
			<title>How do I remove the autoplay mode externally?</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223354&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 00:07:35 GMT</pubDate>
			<description><![CDATA[To make a long story short, I don't have access to the fla files and I need to change some videos to non auto play mode, but this doesn't work: 
...]]></description>
			<content:encoded><![CDATA[<div>To make a long story short, I don't have access to the fla files and I need to change some videos to non auto play mode, but this doesn't work:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">ActionScript Code:</div>
	<pre class="alt2" style="margin:0px; padding:6px; border:1px inset; width:100%; height:52px; overflow:auto"><div dir="ltr" style="text-align:left;"><div class="actionscript">&lt;param <span style="color: #993300;">name</span>=<span style="color: #0000FF;">"autoPlay"</span> value=<span style="color: #0000FF;">"false"</span> /&gt;</div></div></pre>
</div><br />
Any ideas? <br />
<br />
thanks.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>jbg00d</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223354</guid>
		</item>
		<item>
			<title><![CDATA[Why doesn't this work in IE?]]></title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223353&amp;goto=newpost</link>
			<pubDate>Sat, 21 Nov 2009 00:00:02 GMT</pubDate>
			<description><![CDATA[check out the step 1 - 3 videos... In IE the Videos won't stop playing when closed or switched, but works Fine in Firefow and Safari.  
...]]></description>
			<content:encoded><![CDATA[<div>check out the step 1 - 3 videos... In IE the Videos won't stop playing when closed or switched, but works Fine in Firefow and Safari. <br />
<br />
<a href="http://shopgbg.com/AdvancedOpportunityPage.aspx" target="_blank">http://shopgbg.com/AdvancedOpportunityPage.aspx</a><br />
<br />
Any ideas? <br />
<br />
Thanks.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>jbg00d</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223353</guid>
		</item>
		<item>
			<title>Flex noob - problem using custom AS Classes (long!)</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223352&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 23:35:16 GMT</pubDate>
			<description><![CDATA[hey all - here's the deal, i've been using Flash pretty comfortably for a while now, building my own class files etc etc.  
i'm trying to make the...]]></description>
			<content:encoded><![CDATA[<div>hey all - here's the deal, i've been using Flash pretty comfortably for a while now, building my own class files etc etc. <br />
i'm trying to make the transition over to using Flex Builder for both my AS projects and for a Flex project i'm doing for a class (school class - not OOP class!).<br />
<br />
my problem is that i have some fundamental confusion over what is and what isn't possible in Flex vs Flash, and more specifically, in AS Projects (created in Flex Builder) vs Flex Projects. <br />
<br />
anyway let me get down to specifics -i built some basic mouse follow projects in Flash (based on Friend of Ed &quot;AS3 Animation&quot; code) that i am trying to port over into a Flex Project. <br />
i'll post the code in a moment, but first let me just say that when i used Flex Builder to build an &quot;Actionscript Project&quot; i was able to get this animation to play in the browser without too much trouble. <br />
but now that i'm trying it in a &quot;Flex Project&quot; i'm getting the above Coercion Error. <br />
<br />
first, here's the main Class file - Mouser:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">package classes<br />
{<br />
&nbsp; &nbsp; import flash.display.Sprite;&nbsp; &nbsp; <br />
&nbsp; &nbsp; import flash.events. ;<br />
&nbsp; &nbsp; <br />
<br />
&nbsp; &nbsp; public class Mouser extends Sprite<br />
&nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var arrow:Arrow;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var vx:Number = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var vy:Number = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; private var force:Number = .5;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public function Mouser()<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; super();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrow = new Arrow();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild(arrow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addEventListener(Event.ENTER_FRAME, onEnterFrame);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; private function onEnterFrame(event:Event):void<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var dx:Number = mouseX - arrow.x;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var dy:Number = mouseY - arrow.y;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var angle:Number = Math.atan2(dy, dx);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrow.rotation = angle&nbsp;  180 / Math.PI;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ax:Number = Math.cos(angle)&nbsp;  force;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var ay:Number = Math.sin(angle)&nbsp;  force;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vx += ax;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vy += ay;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrow.x += vx;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; arrow.y += vy;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div>and here's the Arrow Class file (in the same directory):<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">package {<br />
&nbsp; &nbsp; import flash.display.Sprite;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; public class Arrow extends Sprite {<br />
&nbsp; &nbsp; &nbsp; &nbsp; public function Arrow() {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineStyle(1, 0, 1);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.beginFill(0xff0000);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.moveTo(-50, -25);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineTo(0, -25);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineTo(0, -50);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineTo(50, 0);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineTo(0, 50);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineTo(0, 25);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineTo(-50, 25);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.lineTo(-50, -25);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; graphics.endFill();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; / public function init():void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; } /<br />
&nbsp; &nbsp; }<br />
}</code><hr />
</div><br />
and finally, the MXML file:<br />
<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;absolute&quot;&gt;<br />
<br />
<br />
&nbsp; &nbsp; &lt;mx:Script&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;![CDATA[<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; import classes.Mouser<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public var myFollow:Mouser = new Mouser();<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; public function init():void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild(myFollow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;<br />
&nbsp; &nbsp; &lt;/mx:Script&gt;<br />
<br />
<br />
&nbsp; &nbsp; &lt;mx:Button x=&quot;300&quot; y=&quot;425&quot; label=&quot;Make Mouser&quot; id=&quot;makeMouser&quot; click=&quot;init();&quot;/&gt;<br />
&nbsp; &nbsp; <br />
&lt;/mx:Application&gt;</code><hr />
</div><br />
as far as i can tell from using the Debugger, everything 'works' until the AddChild(myFollow); statement - but as soon as i click the button this shows up in the Console:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">[SWF] Users:bob:Desktop:SWARM:bin-debug:SWARM.swf - 555,188 bytes after decompression<br />
TypeError: Error #1034: Type Coercion failed: cannot convert classes::SwarmObject@9ae4629 to mx.core.IUIComponent.<br />
&nbsp; &nbsp; at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3251]<br />
&nbsp; &nbsp; at mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2200]<br />
&nbsp; &nbsp; at mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2140]<br />
&nbsp; &nbsp; at SWARM/init()[/Users/bob/Desktop/SWARM/src/SWARM.mxml:15]<br />
&nbsp; &nbsp; at SWARM/__makeFollower_click()[/Users/bob/Desktop/SWARM/src/SWARM.mxml:22]</code><hr />
</div><br />
Please tell me there's a way to use custom &quot;Flash-type&quot; graphical objects in Flex?!? i  thought  that a Flex project had access to all of the Flash libraries and classes. am i wrong? are there well formed AS classes that run in Flash but that cannot be made to fun in Flex? <br />
i should also add that i need the final project to be a Flex Project and  not  an Actionscript Project built in the Flex Builder... part of the course requirements you see. <br />
<br />
anyway, i could  REALLY  use some help with this, i'm pulling my hair out. and since i'm already bald, i'm pulling my nose hair out - and that hurts. <br />
please remember to 'dumb-down' any responses to allow for my near-total ignorance.<br />
thanks alot and sorry for the epic post!<br />
bennett</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=75">ActionScript 3.0</category>
			<dc:creator>bennettvonbennett</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223352</guid>
		</item>
		<item>
			<title>Site Displays Differently Different Computers</title>
			<link>http://www.actionscript.org/forums/showthread.php3?t=223351&amp;goto=newpost</link>
			<pubDate>Fri, 20 Nov 2009 23:29:03 GMT</pubDate>
			<description>I recently uploaded a new flash site (www.recommercial.us) and it displays fine on the computer that was used to develop the site.  However, all...</description>
			<content:encoded><![CDATA[<div>I recently uploaded a new flash site (<a href="http://www.recommercial.us" target="_blank">www.recommercial.us</a>) and it displays fine on the computer that was used to develop the site.  However, all other computers show a gray background when the background should be all white.  Any assistance would be greatly appreciated.</div>

]]></content:encoded>
			<category domain="http://www.actionscript.org/forums/forumdisplay.php3?f=72">Flash 8 General Questions</category>
			<dc:creator>jdoran300</dc:creator>
			<guid isPermaLink="true">http://www.actionscript.org/forums/showthread.php3?t=223351</guid>
		</item>
	</channel>
</rss>
