<?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>Dreaming in Flash &#187; Code</title>
	<atom:link href="http://www.dreaminginflash.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dreaminginflash.com</link>
	<description>There is no universally agreed-upon biological definition of dreaming</description>
	<lastBuildDate>Mon, 12 Jul 2010 15:22:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>pv3d gallery for actionscript 3 project</title>
		<link>http://www.dreaminginflash.com/2008/11/09/pv3d-gallery-for-actionscript-3-project/</link>
		<comments>http://www.dreaminginflash.com/2008/11/09/pv3d-gallery-for-actionscript-3-project/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 04:18:03 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Papervision3d]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=196</guid>
		<description><![CDATA[I start working on a photo library in papervision, so I look around I got an example from flashEnabledBlog, one of the problems was that the example was in flash cs3 and I need it in flex actionscript project, the other one was that the example was done with old papervision and tweener versions, so [...]]]></description>
			<content:encoded><![CDATA[<p>I start working on a photo library in papervision, so I look around I got an <a href="http://www.reactionplus.com/#">example</a> from <a href="http://flashenabledblog.com/2008/04/15/source-code-whitevoid-clone-by-craig/">flashEnabledBlog</a>, one of the problems was that the example was in flash cs3 and I need it in flex actionscript project, the other one was that the example was done with old papervision and tweener versions, so I had to port it. Itâ€™s a good start if you have to do something like it. I Include lasted versions of Tweener and Papervision in the zip file, you just have to run it.</p>
<p><a href='http://www.dreaminginflash.com/wp-content/uploads/2008/11/pv3d_gallery_as3project.zip'>pv3d_gallery_as3project</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/11/09/pv3d-gallery-for-actionscript-3-project/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Where is as2 _root in as3?</title>
		<link>http://www.dreaminginflash.com/2008/10/27/where-is-as2-_root/</link>
		<comments>http://www.dreaminginflash.com/2008/10/27/where-is-as2-_root/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 22:08:59 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=181</guid>
		<description><![CDATA[If you remember in as2 we had _root which let us access to methods and variables in the root of the project and refer to absolute paths, I thought that as3 didnâ€™t have _root propriety, but I was wrong.  root property can be useful if you want to share some value to all the [...]]]></description>
			<content:encoded><![CDATA[<p>If you remember in as2 we had _root which let us access to methods and variables in the root of the project and refer to absolute paths, I thought that as3 didnâ€™t have _root propriety, but I was wrong.  root property can be useful if you want to share some value to all the classes in the project, add events to main class that call methods declared inside the class where we are working on or call generic methods declare in root class.</p>
<p>To use root propriety the class that you are working on most extend a DisplayObject  (Sprite,MovieCLip,etcâ€¦) because you have to add the class to the parent class. And note, you canâ€™t use the root propriety in the constructor method, because the addChild havenâ€™t been process yet! Well letâ€™s stop writing and see some code:</p>
<p>Main.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>In the Main class Iâ€™m declaring a variable named myValue which I did the proper sets and get. I am declaring two classes, in one of them I will set the value at the Main class and in the other I will get that value back. Iâ€™m also creating a movieClip just for test purposes. </p>
<p>ExampleClass.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=1&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=1&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>In ExampleClass Iâ€™m setting myValue that is propriety of the Main class with some text and Iâ€™m tracing the movieClip that I create in the Main Class.</p>
<p>AnotherClass.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=2&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=2&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>In AnotherClass Iâ€™m tracing the myValue propriety. So the result should be:<br />
<code>[object MovieClip]<br />
This value is inside the Main Class</code></p>
<p>So it works ok, you only have to be carefull not refer root inside the constructor method, have the certain that you already addChild the class when you are referring to root and that the class extends a display object. If you do that, you can too have access to stage propriety, letâ€™s check the next example:</p>
<p>ExampleClass.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=3&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=3&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>The result should be or stage width.</p>
<p>Another way to access to main proprieties, methods, etcâ€¦ is with static members. In the next example Iâ€™m declaring a static property in the main class and setting and trace the value of it in the example class.</p>
<p>Main.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=4&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=4&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>ExampleClass.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=5&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=5&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>The result should be â€œHello Word!â€, if you didnâ€™t know this, read some books about object oriented programming and static members.</p>
<p>Another way to do the same thing is to pass the instance of main class as an argument to the other classes. </p>
<p>Main.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=6&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=6&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>Example.as<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=181&no=7&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=181&no=7&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>There are still another ways to access to the Main class code. I donâ€™t know which techniques are more correct, I usually use them all depending in what I need. I hope I help someone. <img src='http://www.dreaminginflash.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/10/27/where-is-as2-_root/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Convert string date to Date type</title>
		<link>http://www.dreaminginflash.com/2008/07/16/convert-string-date-to-date-type/</link>
		<comments>http://www.dreaminginflash.com/2008/07/16/convert-string-date-to-date-type/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 11:17:00 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=152</guid>
		<description><![CDATA[var d:Date = new Date(Date.parse(MM/DD/YYYY));
Christmas day
var d:Date = new Date(Date.parse(12/24/2008));

]]></description>
			<content:encoded><![CDATA[<p>var d:Date = new Date(Date.parse(MM/DD/YYYY));</p>
<p>Christmas day<br />
var d:Date = new Date(Date.parse(12/24/2008));</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/07/16/convert-string-date-to-date-type/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Get difference between two dates in days</title>
		<link>http://www.dreaminginflash.com/2008/07/16/get-difference-between-two-dates-in-days/</link>
		<comments>http://www.dreaminginflash.com/2008/07/16/get-difference-between-two-dates-in-days/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 11:12:19 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=150</guid>
		<description><![CDATA[
		  
		  
		  
		  
		  
		  
		

]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="250" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=250&file=index.php&ftf=true&postID=150&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="250" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=250&file=index.php&ftf=true&postID=150&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/07/16/get-difference-between-two-dates-in-days/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>As3 Flip Vertical and Flip Horizontal</title>
		<link>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/</link>
		<comments>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 16:02:21 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=147</guid>
		<description><![CDATA[
		  
		  
		  
		  
		  
		  
		

]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="350" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=350&file=index.php&ftf=true&postID=147&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="350" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=350&file=index.php&ftf=true&postID=147&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/06/11/as3-flip-vertical-and-flip-horizontal/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>CopyPixels With flip vertical and flip horizontal arguments</title>
		<link>http://www.dreaminginflash.com/2008/06/09/copypixels-with-flip-vertical-and-flip-horizontal-arguments/</link>
		<comments>http://www.dreaminginflash.com/2008/06/09/copypixels-with-flip-vertical-and-flip-horizontal-arguments/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 18:50:51 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=143</guid>
		<description><![CDATA[This function is like the copyPixels method from the bitmapdata class but let you flip horizontal and/or vertical the bitmapData.

		  
		  
		  
		  
		  
		  
		
Example swf
Example fla

]]></description>
			<content:encoded><![CDATA[<p>This function is like the copyPixels method from the bitmapdata class but let you flip horizontal and/or vertical the bitmapData.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="550" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=550&file=index.php&ftf=true&postID=143&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="550" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=550&file=index.php&ftf=true&postID=143&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p><a href='http://www.dreaminginflash.com/wp-content/uploads/2008/06/copypixeis.swf'>Example swf</a></p>
<p><a href='http://www.dreaminginflash.com/wp-content/uploads/2008/06/copypixeis.zip'>Example fla</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/06/09/copypixels-with-flip-vertical-and-flip-horizontal-arguments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Insert Thousands Delimiter using RegExps in Actionscript</title>
		<link>http://www.dreaminginflash.com/2008/05/28/insert-thousands-delimiter-using-regexps-in-actionscript/</link>
		<comments>http://www.dreaminginflash.com/2008/05/28/insert-thousands-delimiter-using-regexps-in-actionscript/#comments</comments>
		<pubDate>Wed, 28 May 2008 00:48:17 +0000</pubDate>
		<dc:creator>Tiago Bilou</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[regexp delimiter thousands]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=142</guid>
		<description><![CDATA[Today I spend a considerable amount of time trying to change this (10000000) into this (10.000.000). Because I don't think anyone should have to go throught the same ordeal here's a little function that will do it for you.

		  
		  
		  
		  
		  
		  
		
References:

GSkinners Online Regular Expression Testing [...]]]></description>
			<content:encoded><![CDATA[<p>Today I spend a <strong>considerable</strong> amount of time trying to change this (10000000) into this (10.000.000). Because I don't think anyone should have to go throught the same ordeal here's a little function that will do it for you.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="250" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=250&file=index.php&ftf=true&postID=142&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="250" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=250&file=index.php&ftf=true&postID=142&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>References:</p>
<ul>
<li><a href="http://gskinner.com/RegExr/">GSkinners Online Regular Expression Testing Tool</a> </li>
<li><a href="http://livedocs.adobe.com/flex/3/html/help.html?content=12_Using_Regular_Expressions_10.html#118940">Adobe Help (live) Working with Regular Expressions</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/05/28/insert-thousands-delimiter-using-regexps-in-actionscript/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>â€œSecurityError: Error #3015: Loader.loadBytes() is not permitted to load content with executable code.&#8221;</title>
		<link>http://www.dreaminginflash.com/2008/05/14/%e2%80%9csecurityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/</link>
		<comments>http://www.dreaminginflash.com/2008/05/14/%e2%80%9csecurityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/#comments</comments>
		<pubDate>Wed, 14 May 2008 23:47:35 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/05/14/%e2%80%9csecurityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/</guid>
		<description><![CDATA[In the last month I thought Adobe had protect the loadBytes method from the loader so that only â€œregularâ€ files like mp3, jpg, etc could be loaded, lots of good libraryâ€™s like Benjamin Dobler wav reader stop working. What I think it is that in last version of flash player Adobe turn allowLoadBytesCodeExecution to false. [...]]]></description>
			<content:encoded><![CDATA[<p>In the last month I thought Adobe had protect the loadBytes method from the loader so that only â€œregularâ€ files like mp3, jpg, etc could be loaded, lots of good libraryâ€™s like <a href="http://www.richapps.de/?p=97">Benjamin Dobler wav reader </a>stop working. What I think it is that in last version of flash player Adobe turn allowLoadBytesCodeExecution to false. If you see Adobe documentation they have written <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/LoaderContext.html#allowLoadBytesCodeExecution">â€œNote: This API is likely to be replaced in a future release of AIR.â€ </a>If anyone knows what really happen let me know. Now the good part, to solve that is simple, you only need to set allowLoadBytesCodeExecution to true.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="170" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=170&file=index.php&ftf=true&postID=137&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="170" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=170&file=index.php&ftf=true&postID=137&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/05/14/%e2%80%9csecurityerror-error-3015-loaderloadbytes-is-not-permitted-to-load-content-with-executable-code/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Loading an xml synchronous with Adobe Air</title>
		<link>http://www.dreaminginflash.com/2008/05/14/loading-an-xml-synchronous-with-adobe-air/</link>
		<comments>http://www.dreaminginflash.com/2008/05/14/loading-an-xml-synchronous-with-adobe-air/#comments</comments>
		<pubDate>Wed, 14 May 2008 23:22:33 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/05/14/loading-an-xml-synchronous-with-adobe-air/</guid>
		<description><![CDATA[I usually work in desktop application and we like it or not flash is optimized for the web so normally we have to put complete event ever time we load anything, and itâ€™s logic, because for the web things have to be asynchronous but for desktop applications they not.
We have already load text and xml [...]]]></description>
			<content:encoded><![CDATA[<p>I usually work in desktop application and we like it or not flash is optimized for the web so normally we have to put complete event ever time we load anything, and itâ€™s logic, because for the web things have to be asynchronous but for desktop applications they not.<br />
We have already load text and xml files synchronous and done some things with sql lite synchronous, I think for now images and sounds canâ€™t be done, because even if you get the bytes, you always need to invoke loadBytes method from the loader and put a complete event listener, fuck! lol, I hope that in the next release of flash the loader have an synchronous method of load the bytes.</p>
<p>There itâ€™s a class to load an xml file synchronous. </p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="400" height="600" id="ftf_wp" align="middle">
		  <param name="movie" value="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="w=400&h=600&file=index.php&ftf=true&postID=136&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="400" height="600" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="w=400&h=600&file=index.php&ftf=true&postID=136&no=0&def=http://www.dreaminginflash.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
<p>How to use: </p>
<p>var configXml:XML = XmlLoader.load("Config.xml");</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/05/14/loading-an-xml-synchronous-with-adobe-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash binary socket client &amp; C sharp socket server</title>
		<link>http://www.dreaminginflash.com/2008/05/02/flash-binary-socket-client-c-sharp-socket-server/</link>
		<comments>http://www.dreaminginflash.com/2008/05/02/flash-binary-socket-client-c-sharp-socket-server/#comments</comments>
		<pubDate>Fri, 02 May 2008 13:08:12 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/2008/05/02/flash-binary-socket-client-c-sharp-socket-server/</guid>
		<description><![CDATA[This week a friend of mine was making me questions about the binary sockets in flash, so I remember to post an example about it. I have been using a lot of XmlSockets for the last 2 years with the latest versions of flash, so it was really easy to implement binary socket because they [...]]]></description>
			<content:encoded><![CDATA[<p>This week a friend of mine was making me questions about the binary sockets in flash, so I remember to post an example about it. I have been using a lot of XmlSockets for the last 2 years with the latest versions of flash, so it was really easy to implement binary socket because they are very similar.  Binary sockets are really a great improvement in flash. I have seen a lot of implements like joysticks servers, connections to mail servers and so on; there are some examples on <a href="http://www.bytearray.org/?page_id=82">byteArray.org</a>.  </p>
<p>This example is a simple chat, it have a C sharp server and a flash client. Just click on socketServer.exe to start the server it will be listening on port 8000, then start client.exe and hit connect button. The server will accept multiple connections, so you can start more than one client, if you are testing it in different machines, just check IP address of the server and write it on the client Ip text Field and hit connect button.</p>
<p>The source code for client and server are on the example zip, it was done using Visual c# express 2008 and Adobe Flash 9. </p>
<p><a href='http://www.dreaminginflash.com/wp-content/uploads/2008/05/socketexample.zip' title='Socket Example With Source Code'>Socket Example With Source Code</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/05/02/flash-binary-socket-client-c-sharp-socket-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
