<?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; Actionscript3</title>
	<atom:link href="http://www.dreaminginflash.com/category/actionscript3/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>Wed, 12 Oct 2011 17:29:38 +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>Adobe Flex + Adobe Air 3 + Alternativa 3D = Real Desktop 3D Engine</title>
		<link>http://www.dreaminginflash.com/2011/10/12/adobe-flex-adobe-air-3-alternativa-3d-real-3d-engine/</link>
		<comments>http://www.dreaminginflash.com/2011/10/12/adobe-flex-adobe-air-3-alternativa-3d-real-3d-engine/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 17:26:43 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[AIR 3]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Alternativa 3D]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=325</guid>
		<description><![CDATA[Download adobe flex 4.5.1 Sdk from here join Adobe Air 3 sdk downloaded from here.
Download Alternative 3d 8.12.0 SWC from here.
Create a Air project on Flex Builder 3, add “-swf-version=13 -static-link-runtime-shared-libraries=true” to additional compiler arguments on project properties . Add “&#60;renderMode&#62;gpu&#60;/renderMode&#62;” below “&#60;initialWindow&#62;” on app.xml and you are ready to go. You can download here [...]]]></description>
			<content:encoded><![CDATA[<p>Download adobe flex 4.5.1 Sdk from <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.5">here </a>join Adobe Air 3 sdk downloaded from <a href="http://www.adobe.com/special/products/air/sdk/">here</a>.<br />
Download Alternative 3d 8.12.0 SWC from <a href="http://alternativaplatform.com/en/download8/">here</a>.</p>
<p>Create a Air project on Flex Builder 3, add “-swf-version=13 -static-link-runtime-shared-libraries=true” to additional compiler arguments on project properties . Add “&#60;renderMode&#62;gpu&#60;/renderMode&#62;” below “&#60;initialWindow&#62;” on app.xml and you are ready to go. You can download <a href=" http://www.dreaminginflash.com/wp-content/uploads/2011/10/RealAlternativa3d.zip">here</a> a simple example of a pac-man style game.</p>
<p>Note: to test your application install <a href="http://get.adobe.com/air/">adobe air 3</a> &#038; <a href="http://www.adobe.com/support/flashplayer/downloads.html">flash player 11</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2011/10/12/adobe-flex-adobe-air-3-alternativa-3d-real-3d-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check by code what SDK version are you using in the as3 project</title>
		<link>http://www.dreaminginflash.com/2011/07/20/check-by-code-what-sdk-version-are-you-using-in-the-as3-project/</link>
		<comments>http://www.dreaminginflash.com/2011/07/20/check-by-code-what-sdk-version-are-you-using-in-the-as3-project/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 18:52:06 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Adobe Flex]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=320</guid>
		<description><![CDATA[import mx.core.UITextField;
import mx.core.mx_internal;
var version:String = UITextField.mx_internal::VERSION;
trace(version);
-------------------------------
result = 3.6.0.12937

]]></description>
			<content:encoded><![CDATA[<p>import mx.core.UITextField;<br />
import mx.core.mx_internal;</p>
<p>var version:String = UITextField.mx_internal::VERSION;<br />
trace(version);</p>
<p>-------------------------------<br />
result = 3.6.0.12937</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2011/07/20/check-by-code-what-sdk-version-are-you-using-in-the-as3-project/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Physical Resize an image file (jpg/png) with adobe air</title>
		<link>http://www.dreaminginflash.com/2011/05/13/physical-resize-an-image-file-jpgpng-with-adobe-air/</link>
		<comments>http://www.dreaminginflash.com/2011/05/13/physical-resize-an-image-file-jpgpng-with-adobe-air/#comments</comments>
		<pubDate>Fri, 13 May 2011 14:07:55 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[AIR 2]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Adobe AIR]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=313</guid>
		<description><![CDATA[If you need to open an image file and save it with another resolution, let’s say open a 1000x500 jpg and save it with 500x250, you can do it with the help of as3corelib.

		  
		  
		  
		  
		  
		  
		

]]></description>
			<content:encoded><![CDATA[<p>If you need to open an image file and save it with another resolution, let’s say open a 1000x500 jpg and save it with 500x250, you can do it with the help of <a href="https://github.com/mikechambers/as3corelib">as3corelib</a>.</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="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=313&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=313&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/2011/05/13/physical-resize-an-image-file-jpgpng-with-adobe-air/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Flash Floating Point Precision</title>
		<link>http://www.dreaminginflash.com/2011/05/09/flash-floating-point-precision/</link>
		<comments>http://www.dreaminginflash.com/2011/05/09/flash-floating-point-precision/#comments</comments>
		<pubDate>Mon, 09 May 2011 09:58:31 +0000</pubDate>
		<dc:creator>Tiago Bilou</dc:creator>
				<category><![CDATA[Actionscript3]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=310</guid>
		<description><![CDATA[Flash doesn't correct floating point operations, so you end up with crazy stuff like 152.2*100 = 15219.999999999998.
I tried the following formula to get 2 decimal points precision int(152.2*100)/100 but that gave me the wrong result (151.9) so I found this little gem at actionscript-flash-guru.com that was a lifesaver
private function setPrecision(number:Number, precision:int):Number {
			precision = Math.pow(10, precision);
			return [...]]]></description>
			<content:encoded><![CDATA[<p>Flash doesn't correct floating point operations, so you end up with crazy stuff like 152.2*100 = 15219.999999999998.</p>
<p>I tried the following formula to get 2 decimal points precision int(152.2*100)/100 but that gave me the wrong result (151.9) so I found this little gem at <a href="http://www.actionscript-flash-guru.com/blog/32-truncating-a-number-setting-the-precision-of-a-float-actionscript-3-as3">actionscript-flash-guru.com</a> that was a lifesaver</p>
<p>private function setPrecision(number:Number, precision:int):Number {<br />
			precision = Math.pow(10, precision);<br />
			return (Math.round(number * precision)/precision);<br />
		}</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2011/05/09/flash-floating-point-precision/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Kung-Fu Flash: Talk at FlashCamp 2010 Portugal</title>
		<link>http://www.dreaminginflash.com/2010/10/03/kung-fu-flash-talk-at-flashcamp-2010-portugal/</link>
		<comments>http://www.dreaminginflash.com/2010/10/03/kung-fu-flash-talk-at-flashcamp-2010-portugal/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 16:59:36 +0000</pubDate>
		<dc:creator>Fatche</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Events]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=306</guid>
		<description><![CDATA[FlashCamp Portugal 2010
View more presentations from Nuno Morgadinho.


]]></description>
			<content:encoded><![CDATA[<div style="width:425px" id="__ss_5343298"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/morgadin/flashcamp-portugal-2010" title="FlashCamp Portugal 2010">FlashCamp Portugal 2010</a></strong><object id="__sse5343298" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=flashcamp2010-101002184450-phpapp02&#038;stripped_title=flashcamp-portugal-2010&#038;userName=morgadin" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse5343298" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=flashcamp2010-101002184450-phpapp02&#038;stripped_title=flashcamp-portugal-2010&#038;userName=morgadin" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/morgadin">Nuno Morgadinho</a>.</div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2010/10/03/kung-fu-flash-talk-at-flashcamp-2010-portugal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling with mxmlc (using external libraries) on Mac OS X</title>
		<link>http://www.dreaminginflash.com/2010/03/29/compiling-with-mxmlc-using-external-libraries-on-mac-os-x/</link>
		<comments>http://www.dreaminginflash.com/2010/03/29/compiling-with-mxmlc-using-external-libraries-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 12:51:33 +0000</pubDate>
		<dc:creator>nuno</dc:creator>
				<category><![CDATA[Actionscript3]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=254</guid>
		<description><![CDATA[Recently I set myself to compile an Actionscript3 project by hand using the mxmlc tool on the command-line and wanted to share that in case you ever need to do something similar. It's no biggie and it might be useful for a number of things (making automatic builds, building on machines without the Flash IDE [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I set myself to compile an Actionscript3 project by hand using the mxmlc tool on the command-line and wanted to share that in case you ever need to do something similar. It's no biggie and it might be useful for a number of things (making automatic builds, building on machines without the Flash IDE or Flash Builder, etc).</p>
<p>1. Open a console and go to the directory of your project</p>
<p>2. Export the PATH to include the flex sdk binaries, e.g. run:</p>
<pre>
export PATH=/Users/youruser/Desktop/yourproject/flexsdk/4.0.0/bin:$PATH
</pre>
<p>3. Invoke the compiler to produce the swf, e.g. run:</p>
<pre>
	mxmlc -static-link-runtime-shared-libraries \
	-sp ../externals/externlib \
	-l example.swc ../../flexsdk/4.0.0/frameworks/libs \
			 ../../flexsdk/4.0.0/frameworks/locale/en_US \
	-output output.swf \
	-locale en_US \
	-use-network=false \
	-file-specs MyExampleClass.as
</pre>
<p><small>Note: For those of you that don't know it already, the Flex SDK is a free of charge Actionscript3 library that allows the development of Flex &#038; Actionscript 3-based applications, without the need to purchase Flex Builder/Flash Builder.</small></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2010/03/29/compiling-with-mxmlc-using-external-libraries-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PV3D 2D-&gt;3D , 3D-&gt;2D</title>
		<link>http://www.dreaminginflash.com/2009/07/16/pv3d-2d-3d-3d-2d/</link>
		<comments>http://www.dreaminginflash.com/2009/07/16/pv3d-2d-3d-3d-2d/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 23:23:26 +0000</pubDate>
		<dc:creator>Tiago Bilou</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Papervision3d]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=252</guid>
		<description><![CDATA[This week I finally had a project that involved 3D (about time too).
Since it involved interacting with 3D models, using Flash 10 was out of the question. So I opted to go with papervision, instead of away3D or alternativa3D, since this was the engine we where more accustomed to.
Sometime along the development of the application [...]]]></description>
			<content:encoded><![CDATA[<p>This week I finally had a project that involved 3D (about time too).<br />
Since it involved interacting with 3D models, using Flash 10 was out of the question. So I opted to go with papervision, instead of away3D or alternativa3D, since this was the engine we where more accustomed to.</p>
<p>Sometime along the development of the application I came across the need to convert 3D coordinates into 2D screen coordinates and also the opposite. It's nothing new and it's already implemented in papervision, but since it took me a little while to find it, I decided to share it.</p>
<p><strong>Getting the 2D Screen coordinates from a DisplayObject3D</strong></p>
<p>Since papervision 2.0 that every DisplayObject3D has a property called "screen", that will return the coordinate of the object on screen. Whenever I tried to access the screen property the number3D I got back was always (0,0,0). Probably because it's an expensive operation and it's something you only need sporadically, papervision will not calculate this automatically. You need to ask papervision yourself to calculate this coordinates. To do so, just use the "calculateScreenCoords" of the do3d</p>
<blockquote><p> myDisplayObject3D.calculateScreenCoords(camera)</p></blockquote>
<p>Now when you try to access the "screen" property you will get the number3D with the screen coordinates for your DisplayObject3D.</p>
<p><strong>Getting the 3D coordinates from a 2D point (x,y)</strong></p>
<p>For this one I found a great post by <a href="http://blog.zupko.info/?p=143">zupko</a> that tells you exactly what you need to do.<br />
In a nutshell, you need to take your 2D coordinates (x,y) and convert them into a direction vector. Having the vector and the camera position you can create a ray (line) that will go from the camera into infinity. Next you need to specify the Z, or in another words, where do you want to stop on that line. Zupko uses a 3D plane to do that using the "getIntersectionLineNumbers"</p>
<p>Just remember papervision's 3D Zero (0,0,0) is at the center of the screen and not on the upper left corner like the 2D Zero (0,0)</p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2009/07/16/pv3d-2d-3d-3d-2d/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Flash Player update available to address security vulnerabilities</title>
		<link>http://www.dreaminginflash.com/2009/03/02/flash-player-update-available-to-address-security-vulnerabilities/</link>
		<comments>http://www.dreaminginflash.com/2009/03/02/flash-player-update-available-to-address-security-vulnerabilities/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 13:03:17 +0000</pubDate>
		<dc:creator>nuno</dc:creator>
				<category><![CDATA[Actionscript3]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=241</guid>
		<description><![CDATA[A potential vulnerability has been identified in Adobe Flash Player 10.0.12.36 and earlier that could allow an attacker who successfully exploits this potential vulnerability to take control of the affected system. A malicious SWF must be loaded in Flash Player by the user for an attacker to exploit this potential vulnerability. Additional vulnerabilities have been [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>A potential vulnerability has been identified in Adobe Flash Player 10.0.12.36 and earlier that could allow an attacker who successfully exploits this potential vulnerability to take control of the affected system. A malicious SWF must be loaded in Flash Player by the user for an attacker to exploit this potential vulnerability. Additional vulnerabilities have been addressed in this update. Adobe recommends users update to the most current version of Flash Player available for their platform.</p></blockquote>
<p>More information about this security vulnerability is available at:</p>
<p><a href="http://www.adobe.com/support/security/bulletins/apsb09-01.html">http://www.adobe.com/support/security/bulletins/apsb09-01.html</a></p>
<p><strong>Follow us on Twitter:</strong> <a href="http://twitter.com/morgadin">@morgadin</a>, <a href="http://twitter.com/tiagobilou">@tiagobilou</a>, <a href="http://twitter.com/lofih">@lofih</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2009/03/02/flash-player-update-available-to-address-security-vulnerabilities/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<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>Custom MovieClip ScrollBar</title>
		<link>http://www.dreaminginflash.com/2008/10/28/custom-movieclip-scrollbar/</link>
		<comments>http://www.dreaminginflash.com/2008/10/28/custom-movieclip-scrollbar/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 01:13:10 +0000</pubDate>
		<dc:creator>Ivan Valadares</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Components]]></category>

		<guid isPermaLink="false">http://www.dreaminginflash.com/?p=192</guid>
		<description><![CDATA[Itâ€™s a really easy to modify this vertical scrollbar. Use and Abuse!
Example
Source Zip

]]></description>
			<content:encoded><![CDATA[<p>Itâ€™s a really easy to modify this vertical scrollbar. Use and Abuse!</p>
<p><a href='http://www.dreaminginflash.com/wp-content/uploads/2008/10/main.swf'>Example</a><br />
<a href='http://www.dreaminginflash.com/wp-content/uploads/2008/10/scrollbar1.zip'>Source Zip</a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.dreaminginflash.com/2008/10/28/custom-movieclip-scrollbar/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
	</channel>
</rss>

