<?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>DoNotYet.com &#187; Flash</title>
	<atom:link href="http://www.donotyet.com/category/adobe-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.donotyet.com</link>
	<description>Freebie Resources for Tech Users, AIR, Flex, Flash Developers and Photoshop, web Designers</description>
	<lastBuildDate>Wed, 07 Dec 2011 06:35:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>7+ ActionScript Class Let You Using XML Easily</title>
		<link>http://www.donotyet.com/2010/01/14/7-actionscript-class-let-you-using-xml-easily/</link>
		<comments>http://www.donotyet.com/2010/01/14/7-actionscript-class-let-you-using-xml-easily/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 14:58:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ECMAScript]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.donotyet.com/2010/01/14/7-actionscript-class-let-you-using-xml-easily/</guid>
		<description><![CDATA[Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update. 
The XML libraries have been completely overhauled in ActionScript 3. It implements the powerful XML-handling standards defined in ECMAScript for XML (E4X) specification. The XML class contains methods and properties for [...]]]></description>
			<content:encoded><![CDATA[<p>Using XML is one of the best ways for structuring external content in a logical format that is easy to understand, process, and update. </p>
<p>The XML libraries have been completely overhauled in ActionScript 3. It implements the powerful XML-handling standards defined in ECMAScript for XML (E4X) specification. The XML class contains methods and properties for working with XML objects.</p>
<p>In AS 2 we create an XML object and then call the <i>XML.load()</i> method in order to load in an external file. In AS 3 loading of external XML files is handled by the new <i>URLLoader</i> class.</p>
<div style="margin: 0px 0px 0px 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-7859640280892154";
/* DoNotYet-Article-336-280-01 */
google_ad_slot = "0432827541";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><span id="more-2561"></span></p>
<p>Here is 7 XML operator Class in actionscript which let you using xml easily.</p>
<table border="1" cellspacing="0" cellpadding="2" width="500">
<tbody>
<tr>
<td valign="top" width="500"><a href="http://www.donotyet.com/wp-content/uploads/2010/01/xmlchildparentstructure.gif"><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="xml-child-parent-structure" border="0" alt="xml-child-parent-structure" src="http://www.donotyet.com/wp-content/uploads/2010/01/xmlchildparentstructure_thumb.gif" width="400" height="300" /></a></td>
</tr>
</tbody>
</table>
<p><font size="4">1)&#160; </font><a href="http://www.ericd.net/2007/11/as2-class-xmlconduit.html" target="_blank"><font size="4">XMLConduit</font></a></p>
<hr />
<p>XMLConduit is a simple class that allows you to use POST and GET to return XML data from a URL (budget webservice). It works really well, you can just extend it by adding your own required methods, or you could set it up with one generic method that supplies the event type, etc. and you could send it an object with properties instead of specific arguments (so you could loop through and inspect them).</p>
<p><font size="4">2) </font><a href="http://www.mediareason.com/blog/?p=20" target="_blank"><font size="4">XML Loader Class</font></a></p>
<hr />
<p>XML Loader Class is based on <a href="http://www.sephiroth.it/tutorials/flashPHP/E4X/index.php">Sephiroth</a>’s XML tutorial post, but there were some syntax errors I had to correct so I thought it might be worth posting and saving folks a minute or two. I also blew out his example into a proper Class, which might be useful for some to compare. Cheers.</p>
<p><font size="4">3) </font><a href="http://blog.maxgarfinkel.com/archives/8" target="_blank"><font size="4">Actionscript XML Search Utillity</font></a></p>
</p>
<hr />A neat little class for searching through an xml object, options include recursive search or just return the first instance. Proper documentation to follow.
</p>
<p><font size="4">4) </font><a href="http://blog.greensock.com/xmlparseras2/" target="_blank"><font size="4">XMLParser</font></a></p>
<hr />
<p>This class provides an easy way to load and/or send an XML file and parse the data into a format that&#8217;s simple to work with. Every node becomes an array with the same name. All attributes are also easily accessible because they become properties with the same name.</p>
<p><font size="4">5) </font><a href="http://shockwave-india.com/blog/actionscript2/?asfile=XMLHighlighter.as" target="_blank"><font size="4">XMLHighlighter</font></a></p>
</p>
<hr />Use the methods and properties of the XMLHighlighter class to generate the html code to generate color highlighted pretty printed XML.
</p>
<p><font size="4">6) </font><a href="http://www.sephiroth.it/file_detail.php?id=129" target="_blank"><font size="4">XML2Object</font></a></p>
</p>
<hr />This class allow you to tranform every kind of XML file into a Native AS Object. Inside the .zip there is also an example on how to use it
</p>
<p><font size="4">7) </font><a href="http://blogs.adobe.com/mesh/archives/2004/02/atom_feed_actio.html" target="_blank"><font size="4">Atom</font></a></p>
<hr />An AS 2 class to represent and parse Atom feeds.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.donotyet.com/2009/09/27/aszip-a-very-useful-actionscript-3-library-to-generate-zip-file-with-simple-interface/" title="ASZip: A Very Useful ActionScript 3 library to Generate ZIP file with Simple Interface">ASZip: A Very Useful ActionScript 3 library to Generate ZIP file with Simple Interface</a></li>
<li><a href="http://www.donotyet.com/2009/08/28/how-to-wait-or-sleep-in-flex-actionscript/" title="How to Wait or Sleep in Flex/ActionScript">How to Wait or Sleep in Flex/ActionScript</a></li>
<li><a href="http://www.donotyet.com/2009/08/04/what-is-ajax-amazing-ajax-based-applications-and-resources/" title="What is AJAX &amp; amazing AJAX based applications and resources">What is AJAX &amp; amazing AJAX based applications and resources</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.donotyet.com/2010/01/14/7-actionscript-class-let-you-using-xml-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prediction of Character&#8217;s Movements in Flash CS3</title>
		<link>http://www.donotyet.com/2009/10/10/prediction-of-character-movements-in-flash-cs3/</link>
		<comments>http://www.donotyet.com/2009/10/10/prediction-of-character-movements-in-flash-cs3/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 14:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Character]]></category>
		<category><![CDATA[Flash CS3]]></category>
		<category><![CDATA[Movement]]></category>

		<guid isPermaLink="false">http://www.donotyet.com/2009/10/10/prediction-of-character-movements-in-flash-cs3/</guid>
		<description><![CDATA[In definition, prediction means preparing for actions in advance. And you can show audience an animatation to catch their attention of next incident, such as stooping and discharging a stone. Prediction also can make some uncertain feelings. It tells audience that some surely will happen next second while some is still uncertain in longer time. [...]]]></description>
			<content:encoded><![CDATA[<p>In definition, prediction means preparing for actions in advance. And you can show audience an animatation to catch their attention of next incident, such as stooping and discharging a stone. Prediction also can make some uncertain feelings. It tells audience that some surely will happen next second while some is still uncertain in longer time. As a credible animatation, it is crucial to predict, because there may be unexpected and perverse accidents without prediction at first. In addition, learning how movements affect our body postures is very important for an animatation designer. Here we go!</p>
<div style="margin: 0px 0px 0px 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-7859640280892154";
/* DoNotYet-Article-336-280-01 */
google_ad_slot = "0432827541";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><span id="more-488"></span>  </p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image002.gif"><img title="clip_image002" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="477" alt="clip_image002" src="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image002_thumb.gif" width="464" border="0" /></a></p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image004.gif"><img title="clip_image004" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="492" alt="clip_image004" src="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image004_thumb.gif" width="287" border="0" /></a></p>
<p>1. The image above shows the original position of the character. We cannot see what will surely happen, but we can imagine the next movement he may do. He stands tensely, with hands next to holsters. We can see and control it, so you are a director, you can order this actor to do anything you like!</p>
<p>2. Prediction and make a reverse moving animatation. Insert keyframe in every figure at next movement, revolve and locate character with the free transform tool. Add interpolation and inching when move out, in order to express the tense of his muscles.</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image006.gif"><img title="clip_image006" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="499" alt="clip_image006" src="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image006_thumb.gif" width="292" border="0" /></a></p>
<p>3. Sometimes an animatation needs more keyframes to obtain character&#8217;s movements and postures. This animatation has four different postures of character, and every one of them applies interpolation and inching.</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image008.gif"><img title="clip_image008" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="493" alt="clip_image008" src="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image008_thumb.gif" width="336" border="0" /></a></p>
<p>4. The first step is that one leg leans back and supports entirely body weight. Absolutely it is an uncomfortable gesture. And now it needs prediction.</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image010.gif"><img title="clip_image010" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="483" alt="clip_image010" src="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image010_thumb.gif" width="379" border="0" /></a></p>
<p>5. Here we use the envelope tool to add more tense to this character. According to the reality and nature, It certainly should change when our postures move like that.</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image012.gif"><img title="clip_image012" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="480" alt="clip_image012" src="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image012_thumb.gif" width="394" border="0" /></a></p>
<p>6. Newton has demonstrated us that every action has its reaction. Keep this discipline in mind, make character&#8217;s reverse movements animatation and he can finally reach expected movements in the end. Have fun!</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image014.gif"><img title="clip_image014" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="489" alt="clip_image014" src="http://www.donotyet.com/wp-content/uploads/2009/10/clip_image014_thumb.gif" width="403" border="0" /></a></p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.donotyet.com/2010/06/13/photoshop-tutorial-how-to-make-a-landscape-figure-with-jiang-nanchina-character/" title="Photoshop Tutorial: How To Make a Landscape Figure With &ldquo;Jiang Nan&rdquo;(China) Character">Photoshop Tutorial: How To Make a Landscape Figure With &ldquo;Jiang Nan&rdquo;(China) Character</a></li>
<li><a href="http://www.donotyet.com/2010/03/04/alphabet-stickers-psd-free-download/" title="Alphabet Stickers PSD Free Download">Alphabet Stickers PSD Free Download</a></li>
<li><a href="http://www.donotyet.com/2010/02/24/disney-alice-in-wonderland-psd-free-download/" title="Disney Alice In Wonderland PSD Free Download">Disney Alice In Wonderland PSD Free Download</a></li>
<li><a href="http://www.donotyet.com/2010/02/14/character-a-psd-free-download-2/" title="Character A PSD Free Download">Character A PSD Free Download</a></li>
<li><a href="http://www.donotyet.com/2010/02/02/cartoon-character-afro-samuria-black-and-white-psd-free-download/" title="Cartoon Character Afro Samuria Black And White PSD Free Download">Cartoon Character Afro Samuria Black And White PSD Free Download</a></li>
<li><a href="http://www.donotyet.com/2010/02/02/cartoon-character-afro-samurai-psd-free-download/" title="Cartoon Character Afro Samurai PSD Free Download">Cartoon Character Afro Samurai PSD Free Download</a></li>
<li><a href="http://www.donotyet.com/2010/02/01/character-logo-aeropostale-psd/" title="Character Logo Aeropostale PSD">Character Logo Aeropostale PSD</a></li>
<li><a href="http://www.donotyet.com/2010/01/31/aeropostale-psd-free-download/" title="Aeropostale PSD Free Download">Aeropostale PSD Free Download</a></li>
<li><a href="http://www.donotyet.com/2010/01/21/dreamweaver-8-0-tutorial-make-a-flash-showing-words-one-by-one-in-the-web-page/" title="Dreamweaver 8.0 Tutorial &#8212;- Make A Flash Showing Words One By One In The Web Page">Dreamweaver 8.0 Tutorial &#8212;- Make A Flash Showing Words One By One In The Web Page</a></li>
<li><a href="http://www.donotyet.com/2010/01/18/letters-abc-logo-psd-free-download/" title="Letters ABC logo PSD Free Download">Letters ABC logo PSD Free Download</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.donotyet.com/2009/10/10/prediction-of-character-movements-in-flash-cs3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASZip: A Very Useful ActionScript 3 library to Generate ZIP file with Simple Interface</title>
		<link>http://www.donotyet.com/2009/09/27/aszip-a-very-useful-actionscript-3-library-to-generate-zip-file-with-simple-interface/</link>
		<comments>http://www.donotyet.com/2009/09/27/aszip-a-very-useful-actionscript-3-library-to-generate-zip-file-with-simple-interface/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 13:49:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[ASZip]]></category>
		<category><![CDATA[ZIP]]></category>

		<guid isPermaLink="false">http://www.donotyet.com/2009/09/27/aszip-a-very-useful-actionscript-3-library-to-generate-zip-file-with-simple-interface/</guid>
		<description><![CDATA[Because a zip file permits a number of compression algorithms so a ZIP file contains one or more files. FZip is a cute little Actionscript 3 class library, it parses ZIP archives progressively, allowing access to contained files while the archive is loading(@see Actionscript 3 class zip library&#8211;FZip).
Now we will introduce an other actionscript zip [...]]]></description>
			<content:encoded><![CDATA[<p>Because a zip file permits a number of compression algorithms so a ZIP file contains one or more files. FZip is a cute little Actionscript 3 class library, it parses ZIP archives progressively, allowing access to contained files while the archive is loading(@see <a href="http://ntt.cc/2008/01/19/actionscript-class-library-fzip.html">Actionscript 3 class zip library&#8211;FZip</a>).</p>
<p>Now we will introduce an other actionscript zip library: ASZip.&#160; You can generate ZIP files from ActionScript 3 with ASZip. ASZip uses the native gzip (Deflate) compression from the flash.utils.Bytearray.compress() method. More compression algorithms will be added in the future. ASZip has simple interface to add different types of files and directories.</p>
<div style="margin: 0px 0px 0px 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-7859640280892154";
/* DoNotYet-Article-336-280-01 */
google_ad_slot = "0432827541";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><span id="more-320"></span>  </p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/09/WindowsLiveWritercee7efc5f127_14221ASZip-ActionScript-3-library_2.jpg"><img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="ASZip-ActionScript-3-library" src="http://www.donotyet.com/wp-content/uploads/2009/09/WindowsLiveWritercee7efc5f127_14221ASZip-ActionScript-3-library_thumb.jpg" width="500" height="500" /></a> </p>
<p>The following is a simple sample to generate a text file and PNG file to a zip file:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: #ffa500;">// create the Zip file, first param : compression method</span></li>
<li><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">myZip</span><span style="color: Gray;">:</span><span style="color: Blue;">ASZip</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">ASZip</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">CompressionMethod</span><span style="color: Gray;">.</span><span style="color: Blue;">GZIP</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// create a flash.display.BitmapData</span></li>
<li><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">myStevie</span><span style="color: Gray;">:</span><span style="color: Blue;">Stevie</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">Stevie</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Maroon;">0</span><span style="color: Gray;">, </span><span style="color: Maroon;">0</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// encode it as a PNG</span></li>
<li><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">bytes</span><span style="color: Gray;">:</span><span style="color: Blue;">ByteArray</span><span style="color: Gray;"> = </span><span style="color: Blue;">PNGEnc</span><span style="color: Gray;">.</span><span style="color: Blue;">encode</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Blue;">myStevie</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// create a text stream</span></li>
<li><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">txt</span><span style="color: Gray;">:</span><span style="color: Blue;">ByteArray</span><span style="color: Gray;"> = </span><span style="color: Green;">new</span><span style="color: Gray;"> </span><span style="color: Blue;">ByteArray</span><span style="color: Olive;">()</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// write some text into it</span></li>
<li><span style="color: Blue;">txt</span><span style="color: Gray;">.</span><span style="color: Blue;">writeUTFBytes</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Hello there !!</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// add a pics folder</span></li>
<li><span style="color: Blue;">myZip</span><span style="color: Gray;">.</span><span style="color: Blue;">addDirectory</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">pics/</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// then a text folder</span></li>
<li><span style="color: Blue;">myZip</span><span style="color: Gray;">.</span><span style="color: Blue;">addDirectory</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// pass the PNG stream and specify a file name and location</span></li>
<li><span style="color: Blue;">myZip</span><span style="color: Gray;">.</span><span style="color: Blue;">addFile</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">bytes</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">pics/stevie.png</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// pass the text stream and specify a file name and location</span></li>
<li><span style="color: Blue;">myZip</span><span style="color: Gray;">.</span><span style="color: Blue;">addFile</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: Blue;">txt</span><span style="color: Gray;">, </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/story.txt</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// add a comment</span></li>
<li><span style="color: Blue;">myZip</span><span style="color: Gray;">.</span><span style="color: Blue;">addComment</span><span style="color: Gray;">&nbsp;</span><span style="color: Olive;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">A comment !</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li>
<li><span style="color: #ffa500;">// generate final Zip file</span></li>
<li><span style="color: Green;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: Blue;">myZipFile</span><span style="color: Gray;">:</span><span style="color: Blue;">ByteArray</span><span style="color: Gray;"> = </span><span style="color: Blue;">myZip</span><span style="color: Gray;">.</span><span style="color: Blue;">saveZIP</span><span style="color: Gray;"> </span><span style="color: Olive;">(</span><span style="color: Gray;"> </span><span style="color: Blue;">Method</span><span style="color: Gray;">.</span><span style="color: Blue;">LOCAL</span><span style="color: Gray;"> </span><span style="color: Olive;">)</span><span style="color: Gray;">;</span></li></ol></div>
<p>You can download the source from: <a title="http://code.google.com/p/aszip/downloads/list" href="http://code.google.com/p/aszip/downloads/list">http://code.google.com/p/aszip/downloads/list</a></p>
<p><a title="http://ntt.cc/2008/01/19/actionscript-class-library-fzip.html" href="http://ntt.cc/2008/01/19/actionscript-class-library-fzip.html">&#160;</a></p>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.donotyet.com/2010/01/14/7-actionscript-class-let-you-using-xml-easily/" title="7+ ActionScript Class Let You Using XML Easily">7+ ActionScript Class Let You Using XML Easily</a></li>
<li><a href="http://www.donotyet.com/2009/08/28/how-to-wait-or-sleep-in-flex-actionscript/" title="How to Wait or Sleep in Flex/ActionScript">How to Wait or Sleep in Flex/ActionScript</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.donotyet.com/2009/09/27/aszip-a-very-useful-actionscript-3-library-to-generate-zip-file-with-simple-interface/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Away3D: Make your 3D program Easily( 14+ great tutorials )</title>
		<link>http://www.donotyet.com/2009/09/07/away3d-make-your-3d-program-easily-great-tutorials/</link>
		<comments>http://www.donotyet.com/2009/09/07/away3d-make-your-3d-program-easily-great-tutorials/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 14:22:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.donotyet.com/2009/09/07/away3d-make-your-3d-program-easily-great-tutorials/</guid>
		<description><![CDATA[Away3D is a powerful realtime 3D engine for use with Flash and Flex. There are few 3D engines available for Flash that can make use of the new features of Flash Player 10, but Away3D support it smartly.



 
Following are some Away3D Pluses:

Performance seems fantastic for this initial trial. 
The learning curve (at least coming [...]]]></description>
			<content:encoded><![CDATA[<p>Away3D is a powerful realtime 3D engine for use with Flash and Flex. There are few 3D engines available for Flash that can make use of the new features of Flash Player 10, but Away3D support it smartly.</p>
<div style="margin: 0px 0px 0px 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-7859640280892154";
/* DoNotYet-Article-336-280-01 */
google_ad_slot = "0432827541";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><span id="more-214"></span> </p>
<p>Following are some Away3D Pluses:</p>
<ul>
<li>Performance seems fantastic for this initial trial. </li>
<li>The learning curve (at least coming from PV3D) is pretty freaking low. </li>
<li>I love the Skybox6 class. So much easier than creating your own cube and trying to size it nicely as is required in PV3D (though making your background image seems a bit tricky and I just used one that comes with the Away3D demos download. </li>
<li>While I haven&#8217;t tried them yet, the Pixel Bender filters that come with the Flash 10 release look freakin&#8217; awesome. I&#8217;m sure PV3D X will do something similar, but I can&#8217;t wait to have the time to dig into these and see what can be accomplished. </li>
<li>The materials available are terrific and slightly easier than their PV3D counterparts. </li>
</ul>
<p>Because the program is conceptually split into two areas: the &quot;engine&quot; and the &quot;application&quot;,&#160; Away3D can be used easily. The following are some basic tutorials, I hope they are helpful for you.</p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/09/WindowsLiveWriterAway3DMakeyour3DprogramEasily14greattuto_1489Eaway3d_2.png"><img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" border="0" alt="away3d" src="http://www.donotyet.com/wp-content/uploads/2009/09/WindowsLiveWriterAway3DMakeyour3DprogramEasily14greattuto_1489Eaway3d_thumb.png" width="504" height="284" /></a> </p>
<p><a href="http://www.bukisa.com/articles/47520_away3d-programming-tutorials-getting-started" rel="nofollow" target="_blank"><font size="4">Getting Started with Away3D</font></a></p>
<hr />
<p>In this tutorial I will be showing you how to get a basic Away3D program up and running. This will be the first in a series of tutorials, and as such we will lay down a lot of foundation here that we can build on. This means that while the outcome will be quite simple, we will be creating a few classes as a result.</p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.bukisa.com/articles/47810_away3d-programming-tutorial-effects" rel="nofollow" target="_blank">Effects</a></font></p>
<hr />
<p>This tutorial will make use of the code established in the last tutorial to build an application that demonstrates the use of the Flash filters with Away3D objects, and you&#8217;ll notice that we only introduce one new class, and a few new functions. </p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.bukisa.com/articles/51793_away3d-programming-tutorial-mouse-interaction" rel="nofollow" target="_blank">Mouse Interaction</a></font> </p>
<hr />
<p>Mouse interactivity is a must for all but the most simple web applications, and 3D flash applications are no exception. Not only does it allow the application to respond to a users requests, but allowing the user to click on and interact with an application also entices the user to investigate your application further. You&#8217;ve probably already seen this user interaction with a lot of Flash advertisements. Thankfully it is quite easy to respond to mouse events with Away3D.</p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.bukisa.com/articles/51891_away3d-programming-tutorial-primitives" rel="nofollow" target="_blank">Primitives</a></font> </p>
</p>
<hr />
<p>The away3d.primitives namespace includes a number of common (and one or two not so common) 3D shapes&#160; that you can create and display without the need for external mesh files.</p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.bukisa.com/articles/52739_away3d-programming-tutorial-environment-material" rel="nofollow" target="_blank">Environment Material</a></font> </p>
</p>
<hr />
<p>Environment mapping is a process that aims to fake the look of the external world reflected on an object. I say &quot;fake&quot; because even the fastest home PCs don&#8217;t have the processing to ray trace the actual world reflection in real time (at least not in any scene that has any sort of detail).</p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/47596.aspx" rel="nofollow" target="_blank">Particles</a></font> </p>
</p>
<hr />
<p>Learn how to integrate the Flint particle system with Away3D.</p>
<p>Away3D does not have a particle system of its own, which is a shame because particles are a great way of displaying complex effects without requiring a lot of processing power.</p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/47627.aspx" rel="nofollow" target="_blank">Bump Mapping Material</a></font> </p>
</p>
<hr />
<p>See how to implement bump mapping in an Away3D application.</p>
<p>Bump mapping is a common technique that is used to give 3D models more detail without adding more polygons. It does this by changing the brightness of the texture pixels according to a normal map and the location of a light source. </p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/47647.aspx" rel="nofollow" target="_blank">Animated Textures</a></font> </p>
</p>
<hr />
<p>See how to use video files as textures in Away3D with this tutorial.</p>
<p>Although Flash started out as a vector animation tool, it has evolved to encompass a lot more. One of the features of Flash that has been very popular is its ability to play videos &#8211; YouTube is probably the best example of this.</p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/47941.aspx" rel="nofollow" target="_blank">Skybox</a></font> </p>
</p>
<hr />
<p>Learn how to add a skybox to an Away3D scene.</p>
<p>A skybox is used to encompass a 3D scene with an image of some distant scenery. The viewer of the 3D scene can never get close to the scenery, giving the illusion that it is infinitely distant. </p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/47971.aspx" rel="nofollow" target="_blank">Physics</a></font> </p>
</p>
<hr />
<p>Learn how to integrate the Jiglib Flash physics engine with Away3D.</p>
<p>Away3D can load a number of model formats, one of which is the Quake 2 MD2 format. Even though Quake 2 is quite a few years old now, a number of animation tools exist to create MD2 files, and the free models already available </p>
<p>&#160;</p>
<p><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/48009.aspx" rel="nofollow" target="_blank"><font size="4">Loading MD2 models</font></a> </p>
</p>
<hr />
<p>Learn how to load Quake 2 MD2 models in an Away3D application.</p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/48046.aspx" rel="nofollow" target="_blank">Depth of Field</a></font> </p>
</p>
<hr />
<p>Learn how to implement the depth of field effect in Away3D.</p>
<p>Depth of field referrers to an effect in photography where an area of a scene is in focus, and everything before and after that area is blurred. In 3D rendered scenes normally everything is in focus unless some special effort is made to implement a depth of field effect. In Away3D this effect can be achieved by using the DofSprite2D class.</p>
<p>&#160;</p>
<p><a href="http://www.brighthub.com/hubfolio/matthew-casperson/articles/48051.aspx" rel="nofollow" target="_blank"><font size="4">3D Text</font></a> </p>
</p>
<hr />
<p>Learn how to add 3D text to a scene in Away3D.</p>
<p>A new feature to Away3D 3.4 is the ability to create 3D text. The 3D Text screensaver for Windows is a good example of this effect. This ability actually comes from the swfvector library, which the Away3D TextField3D class uses to create a 3D model from a font definition. The TextExtrude class can then be used to create characters with depth. </p>
<p>&#160;</p>
<p><font size="4"><a href="http://www.thetechlabs.com/tutorials/3d/create-from-scratch-a-away3d-shootemup-game-part-1/" rel="nofollow" target="_blank">Create from Scratch a Away3D Shoot&#8217;em&#8217;Up Game</a></font></p>
<hr />At this first part. we look at getting the Away3D engine up and running by creating a UIComponent&#160; that will contain and initialize the necessary Away3D components.<br />
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.donotyet.com/2011/02/26/5-great-tutorials-for-iphone-developers/" title="5 Great Tutorials For iPhone Developers">5 Great Tutorials For iPhone Developers</a></li>
<li><a href="http://www.donotyet.com/2011/02/13/photoshop-tutorial-how-to-adjust-bright-green-color-to-the-scenic-figure/" title="Photoshop Tutorial: How To Adjust Bright Green Color To The Scenic Figure">Photoshop Tutorial: How To Adjust Bright Green Color To The Scenic Figure</a></li>
<li><a href="http://www.donotyet.com/2011/02/06/photoshop-tutorial-how-to-add-sun-light-effect-to-the-figure/" title="Photoshop Tutorial: How To Add Sun Light Effect To The Figure">Photoshop Tutorial: How To Add Sun Light Effect To The Figure</a></li>
<li><a href="http://www.donotyet.com/2011/01/30/photoshop-tutorial-how-to-adjust-bright-color-on-the-scenery-photograph/" title="Photoshop Tutorial: How To Adjust Bright Color On The Scenery Photograph">Photoshop Tutorial: How To Adjust Bright Color On The Scenery Photograph</a></li>
<li><a href="http://www.donotyet.com/2011/01/23/photoshop-tutorial-how-to-make-a-clear-and-gorgeous-rose-flower/" title="Photoshop Tutorial: How To Make a Clear and Gorgeous Rose Flower">Photoshop Tutorial: How To Make a Clear and Gorgeous Rose Flower</a></li>
<li><a href="http://www.donotyet.com/2011/01/16/photoshop-tutorial-how-to-make-colorful-flowers/" title="Photoshop Tutorial: How To Make Colorful Flowers">Photoshop Tutorial: How To Make Colorful Flowers</a></li>
<li><a href="http://www.donotyet.com/2011/01/09/photoshop-tutorial-how-to-add-a-fantastic-light-beam-to-an-individual/" title="Photoshop Tutorial: How To Add a Fantastic Light Beam to an Individual">Photoshop Tutorial: How To Add a Fantastic Light Beam to an Individual</a></li>
<li><a href="http://www.donotyet.com/2010/12/26/photoshop-tutorial-how-to-make-clear-and-beautiful-photo-of-marriage/" title="Photoshop Tutorial: How To Make Clear and Beautiful Photo of Marriage">Photoshop Tutorial: How To Make Clear and Beautiful Photo of Marriage</a></li>
<li><a href="http://www.donotyet.com/2010/12/19/photoshop-tutorial-how-to-draw-a-cute-cartoon-bear/" title="Photoshop Tutorial: How To Draw a Cute Cartoon Bear">Photoshop Tutorial: How To Draw a Cute Cartoon Bear</a></li>
<li><a href="http://www.donotyet.com/2010/12/12/photoshop-tutorial-how-to-add-a-crepuscular-effect-to-a-scenery-picture/" title="Photoshop Tutorial: How To Add a Crepuscular Effect to a Scenery Picture">Photoshop Tutorial: How To Add a Crepuscular Effect to a Scenery Picture</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.donotyet.com/2009/09/07/away3d-make-your-3d-program-easily-great-tutorials/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>An example of How to load FlashPaper in Flex(with source code)</title>
		<link>http://www.donotyet.com/2009/08/15/an-example-of-how-to-load-flashpaper-in-flex/</link>
		<comments>http://www.donotyet.com/2009/08/15/an-example-of-how-to-load-flashpaper-in-flex/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 13:23:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[FlashPaper]]></category>
		<category><![CDATA[PDF]]></category>

		<guid isPermaLink="false">http://www.donotyet.com/2009/08/15/an-example-of-how-to-load-flashpaper-in-flex/</guid>
		<description><![CDATA[FlashPaper is very useful, we can create web-ready Flash documents or secure, compact PDF files from any printable document in just one click with FlashPaper.&#160; The following is some main feature of FlashPaper introduced on the offical site: 

Easily create or e-mail any Microsoft Office document as a Flash document or PDF 
Instantly secure sensitive [...]]]></description>
			<content:encoded><![CDATA[<p>FlashPaper is very useful, we can create web-ready Flash documents or secure, compact PDF files from any printable document in just one click with FlashPaper.&#160; The following is some main feature of FlashPaper introduced on the offical site: </p>
<ul>
<li>Easily create or e-mail any Microsoft Office document as a Flash document or PDF </li>
<li>Instantly secure sensitive medical, legal or business documents </li>
<li>Streamline document distribution with highly compressed files </li>
<li>Create universally accessible files that are viewable on any platform </li>
<li>Quickly capture web pages and HTML </li>
<li>Create online newsletters, flyers and marketing materials </li>
</ul>
<div style="margin: 0px 0px 0px 0px;"><script type="text/javascript"><!--
google_ad_client = "pub-7859640280892154";
/* DoNotYet-Article-336-280-01 */
google_ad_slot = "0432827541";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
<p><span id="more-134"></span>  </p>
<p><a href="http://www.donotyet.com/wp-content/uploads/2009/08/WindowsLiveWriterAnexampleofHowtoloadFlashPaperinFlex_1340FAdobe-FlashPaper_1808g_2.png"><img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" border="0" alt="Adobe-FlashPaper_1808g" src="http://www.donotyet.com/wp-content/uploads/2009/08/WindowsLiveWriterAnexampleofHowtoloadFlashPaperinFlex_1340FAdobe-FlashPaper_1808g_thumb.png" width="500" height="273" /></a> </p>
<p>But if you are a flex developer, who has ever tried to load a FlashPaper document within a Flex application, then you should know it&#8217;s not so simple. The problem is: when a FlashPaper SWF is loaded in the flash player directly, as window is resized the area available for the document resizes, but the toolbars at the top stay the same height. Here is a sample on how to load FlashPaper in Flex, you can download full source code from <img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="download" src="http://www.donotyet.com/wp-content/uploads/2009/07/download.png" width="19" height="19" /><a href="http://www.donotyet.com/ext/An-example-of-How-to-load-FlashPaper-in-Flex/flexLoadFp.zip" target="_blank">here</a>.</p>
<p>Flex souce code:</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Gray;"> ?</span><span style="color: Green;">xml</span><span style="color: Gray;"> </span><span style="color: #00008b;">version</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">1.0</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">encoding</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">utf-8</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">?&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">mx</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">:WindowedApplication</span><span style="color: Gray;"> </span><span style="color: #00008b;">xmlns:mx</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">http://www.adobe.com/2006/mxml</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">layout</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">absolute</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">creationComplete</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">initType()</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">mx</span><span style="color: Olive;">&gt;&lt;</span><span style="color: Green;">mx</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">:Script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Gray;"> ![</span><span style="color: #00008b;">CDATA</span><span style="color: Gray;">[</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">import</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">com</span><span style="color: Gray;">.</span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">FlashPaperLoader</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><span style="color: Green;">flashpaper</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">private</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">var</span><span style="color: Gray;"> </span><span style="color: #00008b;">magReader:FlashPaperLoader</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">private</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">function</span><span style="color: Gray;"> </span><span style="color: #00008b;">initType</span><span style="color: Gray;">()</span><span style="color: #00008b;">:void</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">var</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">urlStr:String</span><span style="color: Gray;"> = </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Fpl.swf?url=template.swf</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;"> = </span><span style="color: #00008b;">new</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">FlashPaperLoader</span><span style="color: Gray;">();</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">source</span><span style="color: Gray;"> = </span><span style="color: #00008b;">urlStr</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">visible</span><span style="color: Gray;"> = </span><span style="color: #00008b;">false</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">addChild</span><span style="color: Gray;">(</span><span style="color: #00008b;">magReader</span><span style="color: Gray;">);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><span style="color: Green;">loadingBar</span><span style="color: Gray;">.</span><span style="color: #00008b;">visible</span><span style="color: Gray;"> = </span><span style="color: #00008b;">true</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">addEventListener</span><span style="color: Gray;">(</span><span style="color: #00008b;">FlashPaperLoader</span><span style="color: Gray;">.</span><span style="color: #00008b;">FLASH_PAPER_LOADED</span><span style="color: Gray;">,</span><span style="color: #00008b;">fpLoaded</span><span style="color: Gray;">);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><span style="color: Green;">flashpaper</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">private</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">function</span><span style="color: Gray;"> </span><span style="color: #00008b;">fpLoaded</span><span style="color: Gray;">(</span><span style="color: #00008b;">evt:Event</span><span style="color: Gray;">)</span><span style="color: #00008b;">:void</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><span style="color: Green;">trace</span><span style="color: Gray;">(</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">magContainer width = </span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #00008b;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">width</span><span style="color: Gray;"> + </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;"> magContainer height = </span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> + </span><span style="color: #00008b;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">height</span><span style="color: Gray;">);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">setSize</span><span style="color: Gray;">(</span><span style="color: #00008b;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">width</span><span style="color: Gray;">,</span><span style="color: #00008b;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">height</span><span style="color: Gray;">);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">visible</span><span style="color: Gray;"> = </span><span style="color: #00008b;">true</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><span style="color: Green;">loadingBar</span><span style="color: Gray;">.</span><span style="color: #00008b;">visible</span><span style="color: Gray;"> = </span><span style="color: #00008b;">false</span><span style="color: Gray;">;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //</span><span style="color: Green;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">removeChild</span><span style="color: Gray;">(</span><span style="color: #00008b;">loadingBar</span><span style="color: Gray;">);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">removeEventListener</span><span style="color: Gray;">(</span><span style="color: #00008b;">FlashPaperLoader</span><span style="color: Gray;">.</span><span style="color: #00008b;">FLASH_PAPER_LOADED</span><span style="color: Gray;">,</span><span style="color: #00008b;">fpLoaded</span><span style="color: Gray;">);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">public</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">function</span><span style="color: Gray;"> </span><span style="color: #00008b;">changSize</span><span style="color: Gray;">()</span><span style="color: #00008b;">:void</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">if</span><span style="color: Gray;">(</span><span style="color: #00008b;">magReader</span><span style="color: Gray;"> != </span><span style="color: #00008b;">null</span><span style="color: Gray;">)</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #00008b;">magReader</span><span style="color: Gray;">.</span><span style="color: #00008b;">setSize</span><span style="color: Gray;">(</span><span style="color: #00008b;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">width</span><span style="color: Gray;">,</span><span style="color: #00008b;">magContainer</span><span style="color: Gray;">.</span><span style="color: #00008b;">height</span><span style="color: Gray;">);</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; &nbsp; &nbsp; ]]</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">mx</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">mx</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">:Canvas</span><span style="color: Gray;"> </span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">magContainer</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">width</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">100%</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">height</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">100%</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">resize</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">changSize()</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">horizontalScrollPolicy</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">off</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">verticalScrollPolicy</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">off</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp; &nbsp; </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">mx</span><span style="color: Olive;">&gt;</span></li></ol></div>
<h3>Related Posts</h3>
<ul class="related_post">
<li><a href="http://www.donotyet.com/2009/09/18/how-to-render-pdf-content-in-air-with-source-code/" title="How to Render PDF Content in AIR(With Source Code)">How to Render PDF Content in AIR(With Source Code)</a></li>
<li><a href="http://www.donotyet.com/2009/08/28/how-to-wait-or-sleep-in-flex-actionscript/" title="How to Wait or Sleep in Flex/ActionScript">How to Wait or Sleep in Flex/ActionScript</a></li>
<li><a href="http://www.donotyet.com/2009/08/09/5-very-beautiful-skins-for-flex-applications/" title="5+ Very Beautiful Skins for Flex Applications">5+ Very Beautiful Skins for Flex Applications</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.donotyet.com/2009/08/15/an-example-of-how-to-load-flashpaper-in-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

