<?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>theDeSilva.com&#187; Flash</title>
	<atom:link href="http://www.thedesilva.com/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedesilva.com</link>
	<description>Andrew de Silva</description>
	<lastBuildDate>Tue, 26 Apr 2011 20:24:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Firefox &#8211; Flash Debugger Player Crash</title>
		<link>http://www.thedesilva.com/2011/02/firefox-flash-debugger-player-crash/</link>
		<comments>http://www.thedesilva.com/2011/02/firefox-flash-debugger-player-crash/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 20:59:40 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=225</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/>If you are using the Flash Debugger Player like I do to debug your work , you will soon to realized that the newer versions of Firefox tends to crash whenever the debugger prompts a warning. This is happening because Firefox will kill the debug session and cause it to crash Firefox. Here&#8217;s a solution [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/><p>If you are using the Flash Debugger Player like I do to debug your work , you will soon to realized that the newer versions of Firefox tends to crash whenever the debugger prompts a warning. This is happening because Firefox will kill the debug session and cause it to crash Firefox. Here&#8217;s a solution to it</p>
<p>1. Goto addresss bar and type in about:config<br />
2. Click on the I’ll be careful, I promise button.<br />
3. Type dom.ipc.plugins.timeoutSecs<br />
4. Find value and double click and change the value to -1</p>
<p>Viola and now your flash debugger player will stop crashing each time it throws a warning as you have changed the default timeout value from 45 to unlimited.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2011/02/firefox-flash-debugger-player-crash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField</title>
		<link>http://www.thedesilva.com/2010/08/referenceerror-error-1069-property-startdrag-not-found-on-flash-text-textfield/</link>
		<comments>http://www.thedesilva.com/2010/08/referenceerror-error-1069-property-startdrag-not-found-on-flash-text-textfield/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 19:22:43 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[error 1069]]></category>
		<category><![CDATA[startdrag]]></category>
		<category><![CDATA[stopdrag]]></category>
		<category><![CDATA[textfield]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=201</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/>Here&#8217;s a quick solution to the error ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField . This normally happens when you are trying to get the TextField to drag. &#160; textField.addEventListener&#40;MouseEvent.MOUSE_DOWN, drag&#41;; textField.addEventListener&#40;MouseEvent.MOUSE_UP, drop&#41;; &#160; // by setting mouseChildren = false it makes the drag function to use the container // of the movie [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/><p>Here&#8217;s a quick solution to the error ReferenceError: Error #1069: Property startDrag not found on flash.text.TextField .  This normally happens when you are trying to get the TextField to drag.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_DOWN</span>, drag<span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_UP</span>, drop<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// by setting mouseChildren = false it makes the drag function to use the container </span>
<span style="color: #808080; font-style: italic;">// of the movie clip rather than the compenent within the movieclip. </span>
<span style="color: #808080; font-style: italic;">// This is where the ReferenceError: Error #1069: Property startDrag </span>
<span style="color: #808080; font-style: italic;">// not found on flash.text.TextField is coming from </span>
&nbsp;
<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">mouseChildren</span> = <span style="color: #000000; font-weight: bold;">false</span>;
<span style="color: #0066CC;">textField</span>.<span style="color: #006600;">text1</span>.<span style="color: #0066CC;">selectable</span> = <span style="color: #000000; font-weight: bold;">false</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> drag<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span>.<span style="color: #0066CC;">startDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> drop<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
  	<span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">target</span>.<span style="color: #0066CC;">stopDrag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2010/08/referenceerror-error-1069-property-startdrag-not-found-on-flash-text-textfield/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MouseEvent.DOUBLE_CLICK Not Firing</title>
		<link>http://www.thedesilva.com/2009/03/mouseeventdouble_click-not-firing/</link>
		<comments>http://www.thedesilva.com/2009/03/mouseeventdouble_click-not-firing/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 00:36:20 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[double click]]></category>
		<category><![CDATA[MouseEvent.DOUBLE_CLICK]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=126</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/>Recently I was working on a project that I was using MouseEvent.DOUBLE_CLICK and the darn thing wasn&#8217;t firing no matter how many times that I&#8217;ve clicked on it. After awhile I remember that most  Flex component actually have a doubleClickEnable property . Guess what was the result of the trace when I did 1 trace&#40;image.doubleClickEnabled&#41; [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/><p>Recently I was working on a project that I was using MouseEvent.DOUBLE_CLICK and the darn thing wasn&#8217;t firing no matter how many times that I&#8217;ve clicked on it. After awhile I remember that most  Flex component actually have a doubleClickEnable property . Guess what was the result of the trace when I did</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>image.<span style="color: #006600;">doubleClickEnabled</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">// this will return false</span></pre></td></tr></table></div>

<p>The simple solution for getting MouseEvent.DOUBLE_CLICK to work is to ensure that you set the property of doubleClickEnable to true</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;">image.<span style="color: #006600;">doubleClickEnabled</span> = <span style="color: #000000; font-weight: bold;">true</span>;
image.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">DOUBLE_CLICK</span>, double_click<span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2009/03/mouseeventdouble_click-not-firing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing Context Menu from Flash Player</title>
		<link>http://www.thedesilva.com/2008/09/removing-context-menu-from-flash-player/</link>
		<comments>http://www.thedesilva.com/2008/09/removing-context-menu-from-flash-player/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 22:38:07 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript 2]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[adobe flash player]]></category>
		<category><![CDATA[context menu]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=67</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/>Here&#8217;s how to show or hide the default items in the Flash Player context menu. If showMenu is set to true (the default), all context menu items appear. If showMenu is set to false, only Settings and About Adobe Flash Player items appear. Note that in actionscript 3 showMenu has been replaced by showDefaultContextMenu // [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/><p>Here&#8217;s how to show or hide the default items in the Flash Player context menu. If showMenu is set to true (the default), all context menu items appear. If showMenu is set to false, only Settings and About Adobe Flash Player items appear. Note that in actionscript 3 showMenu has been replaced by<br />
showDefaultContextMenu</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// Actionscript 2</span>
&nbsp;
<span style="color: #0066CC;">stage</span>.<span style="color: #0066CC;">showMenu</span>=<span style="color: #000000; font-weight: bold;">false</span>;</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #808080; font-style: italic;">// Actionscript 3</span>
&nbsp;
<span style="color: #0066CC;">stage</span>.<span style="color: #006600;">showDefaultContextMenu</span>=<span style="color: #000000; font-weight: bold;">false</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2008/09/removing-context-menu-from-flash-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Workaround] Flash Bitmap maximum width and height</title>
		<link>http://www.thedesilva.com/2008/08/workaround-flash-bitmap-maximum-width-and-height/</link>
		<comments>http://www.thedesilva.com/2008/08/workaround-flash-bitmap-maximum-width-and-height/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 16:43:57 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[bitmapdata]]></category>
		<category><![CDATA[Height]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[loader]]></category>
		<category><![CDATA[maximum]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=55</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/>In my recent posting on Flash Bitmap maximum width and height, I blog about how Flash bitmapData object has a maximum width and height of 2880 pixel . I was recently contacted by John Keyton who was really nice to point a work around created by Ronald Losbañes that would allow you to create a [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/><p>In my recent <a href="http://www.thedesilva.com/2008/08/bitmap-maximum-width-and-height/" target="_self">posting</a> on Flash Bitmap maximum width and height, I blog about how Flash bitmapData object has a maximum width and height of 2880 pixel . I was recently contacted by John Keyton who was really nice to point a work around created by <a href="http://underdevelopment.maravillaclan.net/?p=7" target="_blank">Ronald Losbañes</a> that would allow you to create a bitmapData object that is bigger than 2880 pixel in height and width . Here&#8217;s the workaround from <a href="http://underdevelopment.maravillaclan.net/?p=7" target="_blank">Ronald Losbañes</a> site.</p>
<blockquote><p>The trick is to “kidnap” a BitmapData object from a loaded image with dimension over the limit of 2880 pixels (Which flash allows. Huh! Yes Flash can actually handle bitmaps larger the the limit. It just doesn’t let you create one.).</p>
<p>It’s simple. Create a dummy image with the dimension you need. Save it and make it accessible to Flash. Dynamically load it using ActionScript. And take the loader object’s BitmapData object. That’s why I termed it “kidnap”. We are actually just taking the child of the parent object(loader object), which is the BitmapData, and use it like we build it ourselves.</p></blockquote>
<p><span id="more-55"></span></p>
<p>Here&#8217;s the actionscript ,</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// 1. Create an image loader and</span>
<span style="color: #000000; font-weight: bold;">var</span> DummyImageLoader:Loader = <span style="color: #000000; font-weight: bold;">new</span> Loader;
&nbsp;
<span style="color: #808080; font-style: italic;">// 2. Assign a function to “kidnap” the BitmapData object</span>
DummyImageLoader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, DummyImageOnComplete<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// 3. Load the image with the preferred dimension</span>
<span style="color: #000000; font-weight: bold;">var</span> DummyImageRequest:URLRequest = <span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span>“dummy_image.<span style="color: #006600;">jpg</span>”<span style="color: #66cc66;">&#41;</span>;
DummyImageLoader.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span>DummyImageRequest<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> DummyImageOnComplete<span style="color: #66cc66;">&#40;</span>evt:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">var</span> DummyImageBitmap = Bitmap<span style="color: #66cc66;">&#40;</span>DummyImageLoader.<span style="color: #006600;">content</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #808080; font-style: italic;">// “kidnap” the BitmapData object</span>
    <span style="color: #000000; font-weight: bold;">var</span> ValidBitmapData:BitmapData = DummyImageBitmap.<span style="color: #006600;">bitmapData</span>;
&nbsp;
    <span style="color: #808080; font-style: italic;">// you can now use ValidBitmapData to draw any element larger than 2880×2880</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> InvalidBitmapData:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">3000</span>, <span style="color: #cc66cc;">3000</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>Big thanks to John to pointing out the link to me and <a href="http://underdevelopment.maravillaclan.net/?p=7" target="_blank">Ronald Losbañes</a> for the solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2008/08/workaround-flash-bitmap-maximum-width-and-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Bitmap maximum width and height</title>
		<link>http://www.thedesilva.com/2008/08/bitmap-maximum-width-and-height/</link>
		<comments>http://www.thedesilva.com/2008/08/bitmap-maximum-width-and-height/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 16:11:33 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[bitmapdata]]></category>
		<category><![CDATA[flash actionscript]]></category>
		<category><![CDATA[image size]]></category>
		<category><![CDATA[maximum height]]></category>
		<category><![CDATA[maximum width]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=48</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/>An updated post has been posted , check it out at [Workaround] Flash Bitmap maximum width and height Recently I was working with a flash image zoom application and realized that after launching the application it kept crashing when it was loading the larger image, I&#8217;ve checked every where and nothing seems to be wrong. [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/><div class="redbox">An updated post has been posted , check it out at <a title="[Workaround] Flash Bitmap maximum width and height" href="http://www.thedesilva.com/2008/08/workaround-flash-bitmap-maximum-width-and-height/ " target="_self">[Workaround] Flash Bitmap maximum width and height</a></div>
<p>Recently I was working with a flash image zoom application and realized that after launching the application it kept crashing when it was loading the larger image, I&#8217;ve checked every where and nothing seems to be wrong. File name , image size , file location were all correct. After awhile I realized that the maximum width and maximum height of a BitmapData object is 2880 pixels.  The image that I was working with was way more bigger than that.  Anything that has a height and width that is larger than 2880 will cause flash unable to redraw the bitmap.</p>
<p><span id="more-48"></span></p>
<p>Here&#8217;s what Adobe has to say about the maximum width and height</p>
<blockquote><p><strong>Note:</strong> The maximum dimensions of a bitmap in Flash Player is limited to 2880 pixels in either direction (width or height). If you attempt to create a BitmapData instance that is larger than this restriction, the Bitmap will not be created. This limit is in place to keep people from creating Flash movies that gobble up the client&#8217;s RAM. A bitmap that is 2880 x 2880 pixels, will use roughly 32MB of RAM.</p></blockquote>
<p>Also interestingly enough</p>
<blockquote><p>An instance of the BitmapData object can eat up the viewer&#8217;s memory quickly. Every pixel in a bitmap is stored using 4 bytes of memory (1 byte per color channel ARGB). If you create a bitmap that is 500 x 500 pixels in size, it will take up close to 1MB of RAM. If you don&#8217;t need a BitmapData object anymore, then it is good practice to free the memory that the bitmap is using. The BitmapData class has a method that enables you to do just this, the dispose() method.</p></blockquote>
<p>So the solution to remove unwanted BitmapData object is to use the following</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">myBitmap.<span style="color: #006600;">dispose</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2008/08/bitmap-maximum-width-and-height/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Width and Height for Dynamic Image in Flex</title>
		<link>http://www.thedesilva.com/2008/07/width-and-height-for-dynamic-image/</link>
		<comments>http://www.thedesilva.com/2008/07/width-and-height-for-dynamic-image/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 22:03:42 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[dynamic image]]></category>
		<category><![CDATA[Height]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Width]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=38</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/>Recently I was working on a Flex project and realize upon having my project on the live server , I couldn&#8217;t retrieve the height and width property of my loaded image by doing below var img:Image = new Image&#40;&#41;; img.source = &#34;image.jpg&#34; trace&#40;img.height&#41;; trace&#40;img.width&#41;; The trace statement above will just show 0 for both width [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/><p>Recently I was working on a Flex project and realize upon having my project on the live server , I couldn&#8217;t retrieve the height and width property of my loaded image by doing below</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> img:Image = <span style="color: #000000; font-weight: bold;">new</span> Image<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #006600;">source</span> = <span style="color: #ff0000;">&quot;image.jpg&quot;</span>
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>img.<span style="color: #0066CC;">height</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>img.<span style="color: #0066CC;">width</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>The trace statement above will just show 0 for both width and height. Of course after a few hours of searching Google for a solution I realized on the livedocs documentation for Image has the property contentWidth and contentHeight which provides the height and width of the image loaded.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> img:Image = <span style="color: #000000; font-weight: bold;">new</span> Image<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
img.<span style="color: #006600;">source</span> = <span style="color: #ff0000;">&quot;image.jpg&quot;</span>
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>img.<span style="color: #006600;">contentHeight</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>img.<span style="color: #006600;">contentWidth</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2008/07/width-and-height-for-dynamic-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding Client Machine Capabilities using Flex / Flash</title>
		<link>http://www.thedesilva.com/2008/06/finding-client-machine-capabilities-using-flex-flash/</link>
		<comments>http://www.thedesilva.com/2008/06/finding-client-machine-capabilities-using-flex-flash/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 03:32:55 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[action script]]></category>
		<category><![CDATA[environments]]></category>
		<category><![CDATA[flash player]]></category>
		<category><![CDATA[support ssl]]></category>
		<category><![CDATA[video support]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=37</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/>Recently I was writing an application for Flex which I wanted to know about client-machine&#8217;s capabilities in order to provide optimal experience on my application. After searching around, I found the Capabilities API in Action script 3. This became extremely helpful as I can know figure out a things on my client machine to make [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><img src="http://www.thedesilva.com/img/category_icon//flex-icon-small.png" width="32" height="32" alt="" title="Flex" /><br/><p>Recently I was writing an application for Flex which I wanted to know about client-machine&#8217;s capabilities in order to provide optimal experience on my application. After searching around, I found the Capabilities API in Action script 3. This became extremely helpful as I can know figure out a things on my client machine to make my application more client orientated. For example there was a couple of things that I needed to know such as</p>
<ul>
<li>What is client&#8217;s screen-resolution?</li>
<li>What is client&#8217;s Operating-System (OS)?</li>
<li>What is Adobe Flash runtime (Flash Player or AIR) version?</li>
<li>What is system-language (English or German etc) of the machine?</li>
<li>What is player type (Standalone or browser-plugin)?</li>
<li>Does client have audio/video support?</li>
<li>Does client support accessibility aids (screen-readers etc)?</li>
<li>Does client support SSL/TLS transport?</li>
<li>Is client allowed to use Microphone/Webcam (in restricted/administrated environments &#8211; corporates/institutes etc)?</li>
</ul>
<p><span id="more-37"></span></p>
<p>Adobe Flash runtimes (Flash Player and AIR) provide Capabilities API to know all these (above and more) about client-machine. You can use various static properties to determine various capabilities of client machine. Here&#8217;s an example of the outputs the values found in the   flash.system.Capabilities object using several calls to <code>trace().</code></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
    <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">system</span>.<span style="color: #0066CC;">Capabilities</span>;
&nbsp;
    <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> CapabilitiesExample <span style="color: #0066CC;">extends</span> Sprite <span style="color: #66cc66;">&#123;</span>
        <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> CapabilitiesExample<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
            showCapabilities<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #66cc66;">&#125;</span>
&nbsp;
        <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> showCapabilities<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;avHardwareDisable: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">avHardwareDisable</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasAccessibility: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasAccessibility</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasAudio: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasAudio</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasAudioEncoder: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasAudioEncoder</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasEmbeddedVideo: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasEmbeddedVideo</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasMP3: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasMP3</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasPrinting: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasPrinting</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasScreenBroadcast: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasScreenBroadcast</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasScreenPlayback: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasScreenPlayback</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasStreamingAudio: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasStreamingAudio</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;hasVideoEncoder: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">hasVideoEncoder</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;isDebugger: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">isDebugger</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;language: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">language</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;localFileReadDisable: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">localFileReadDisable</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;manufacturer: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">manufacturer</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;os: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">os</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;pixelAspectRatio: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">pixelAspectRatio</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;playerType: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">playerType</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;screenColor: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">screenColor</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;screenDPI: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">screenDPI</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;screenResolutionX: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">screenResolutionX</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;screenResolutionY: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">screenResolutionY</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;serverString: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">serverString</span><span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;version: &quot;</span> + <span style="color: #0066CC;">Capabilities</span>.<span style="color: #0066CC;">version</span><span style="color: #66cc66;">&#41;</span>;
        <span style="color: #66cc66;">&#125;</span>
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2008/06/finding-client-machine-capabilities-using-flex-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieve Flash Variables in Actionscript 3</title>
		<link>http://www.thedesilva.com/2008/06/retrieve-flash-variables-in-actionscript-3/</link>
		<comments>http://www.thedesilva.com/2008/06/retrieve-flash-variables-in-actionscript-3/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 19:17:56 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[flash variables]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[query string]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=35</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/>Previously, in ActionScript 2.0, you could pass variables along the query string or using FlashVars and the variables would be available in _level0, in ActionScript 3.0, it is a bit different . In Actionscript 3 variables that are passed in through query string have been moved to the parameters property of LoaderInfo instance. Here&#8217;s a [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/><p>Previously, in ActionScript 2.0, you could pass variables along the query string or using FlashVars and the variables would be available in _level0, in ActionScript 3.0, it is a bit different . In Actionscript 3 variables that are passed in through query string have been moved to the parameters property of LoaderInfo instance. Here&#8217;s a real simple way to retrieve flash variable in Actionscript 3</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; width=&quot;550&quot; height=&quot;400&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot;&gt;
     &lt;param name=&quot;src&quot; value=&quot;somefilename.swf?fileName=info&quot; /&gt;
     &lt;embed type=&quot;application/x-shockwave-flash&quot; width=&quot;550&quot; height=&quot;400&quot; src=&quot;somefilename.swf?fileName=info&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;</pre></td></tr></table></div>

<p>To access the query string fileName in Actionscript 3 , all you have to do in your actionscript 3 source code is</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> fileName:<span style="color: #0066CC;">String</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
fileName = root.<span style="color: #006600;">loaderInfo</span>.<span style="color: #006600;">parameters</span>.<span style="color: #006600;">fileName</span></pre></td></tr></table></div>

<p>Here&#8217;s another way to loop through your flash variables</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> tf:<span style="color: #0066CC;">TextField</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
tf.<span style="color: #0066CC;">autoSize</span> = TextFieldAutoSize.<span style="color: #0066CC;">LEFT</span>;
tf.<span style="color: #0066CC;">border</span> = <span style="color: #000000; font-weight: bold;">true</span>;
addChild<span style="color: #66cc66;">&#40;</span>tf<span style="color: #66cc66;">&#41;</span>;
&nbsp;
tf.<span style="color: #006600;">appendText</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;params:&quot;</span> + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">try</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">var</span> keyStr:<span style="color: #0066CC;">String</span>;
    <span style="color: #000000; font-weight: bold;">var</span> valueStr:<span style="color: #0066CC;">String</span>;
    <span style="color: #000000; font-weight: bold;">var</span> paramObj:<span style="color: #0066CC;">Object</span> = LoaderInfo<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">root</span>.<span style="color: #006600;">loaderInfo</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">parameters</span>;
    <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>keyStr <span style="color: #b1b100;">in</span> paramObj<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        valueStr = <span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#40;</span>paramObj<span style="color: #66cc66;">&#91;</span>keyStr<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
        tf.<span style="color: #006600;">appendText</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span> + keyStr + <span style="color: #ff0000;">&quot;:<span style="color: #000099; font-weight: bold;">\t</span>&quot;</span> + valueStr + <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span> <span style="color: #0066CC;">catch</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">error</span>:<span style="color: #0066CC;">Error</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    tf.<span style="color: #006600;">appendText</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">error</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2008/06/retrieve-flash-variables-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calling external swf using loadMovie()</title>
		<link>http://www.thedesilva.com/2008/06/calling-external-swf-using-loadmovie/</link>
		<comments>http://www.thedesilva.com/2008/06/calling-external-swf-using-loadmovie/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 17:58:22 +0000</pubDate>
		<dc:creator>Andrew de Silva</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[loadmovie]]></category>
		<category><![CDATA[movieclip]]></category>
		<category><![CDATA[query string]]></category>

		<guid isPermaLink="false">http://www.thedesilva.com/?p=34</guid>
		<description><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/>Recently I was working on a flash project that was using Actionscript 2 and it was such a pain trying to use loadClip() and pass in the necessary variables through query string for loading the external swf into a movieclip. I figure I&#8217;ll post this here and hopefully someone who is trying to do so [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.thedesilva.com/img/category_icon//flash_small.png" width="32" height="32" alt="" title="Flash" /><br/><p>Recently I was working on a flash project that was using Actionscript 2 and it was such a pain trying to use loadClip() and pass in the necessary variables through query string for loading the external swf into a movieclip.  I figure I&#8217;ll post this here and hopefully someone who is trying to do so can spend less time goggling for the answer</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">// here I set the values of the query string </span>
<span style="color: #808080; font-style: italic;">// for external swf that I want to pass in</span>
<span style="color: #808080; font-style: italic;">// ie. h , w , and img</span>
contentHolder_mc.<span style="color: #006600;">h</span> = h;
contentHolder_mc.<span style="color: #006600;">w</span> = w;
contentHolder_mc.<span style="color: #006600;">img</span> = img;
&nbsp;
contentHolder_mc.<span style="color: #0066CC;">loadMovie</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;nameOfYourSwf&quot;</span>,<span style="color: #ff0000;">&quot;GET&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.thedesilva.com/2008/06/calling-external-swf-using-loadmovie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

