<?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>franto.com &#187; ActionScript</title>
	<atom:link href="http://franto.com/tag/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://franto.com</link>
	<description></description>
	<lastBuildDate>Tue, 23 Aug 2011 10:29:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Crop whitespace from PNG image</title>
		<link>http://franto.com/crop-whitespace-from-png-image/</link>
		<comments>http://franto.com/crop-whitespace-from-png-image/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 11:04:55 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AS3 Tip]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=912</guid>
		<description><![CDATA[Yesterday, I've posted about interesting AS3 Class <a href="http://www.franto.com/interactivepng-useful-as3-class">InteractivePNG</a>, and now I'm adding new addition for solving other problem with transparent Bitmaps. If you have transparent bitmap with whitespace around image and you want to crop whitespace around "real" image, you can use this function...]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fcrop-whitespace-from-png-image%2F&amp;text=Crop whitespace from PNG image&amp;count=vertical&amp;lang=en&amp;related=ActionScript,AS3+Tip,Flash"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Yesterday, I&#8217;ve posted about interesting AS3 Class <a href="http://www.franto.com/interactivepng-useful-as3-class">InteractivePNG</a>, and now I&#8217;m adding new addition for solving other problem with transparent Bitmaps. If you have transparent bitmap with whitespace around image and you want to crop whitespace around &#8220;real&#8221; image, you can use this function&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #339966; font-weight: bold;">function</span> getBitmapCroppedOutWhitespace<span style="color: #000000;">&#40;</span>bd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> bmd<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span>bd.<span style="color: #004993;">width</span>, bd.<span style="color: #004993;">height</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, 0x00000000<span style="color: #000000;">&#41;</span>;
	bmd.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>bd<span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">rect</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Rectangle</span> = bmd.<span style="color: #004993;">getColorBoundsRect</span><span style="color: #000000;">&#40;</span>0xFFFFFF, 0x00000000, <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span>;
	<span style="color: #6699cc; font-weight: bold;">var</span> bmd2<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">rect</span>.<span style="color: #004993;">width</span>, <span style="color: #004993;">rect</span>.<span style="color: #004993;">height</span>, <span style="color: #0033ff; font-weight: bold;">true</span>, 0x00000000<span style="color: #000000;">&#41;</span>;
	bmd2.<span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>bmd, <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Matrix</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">1</span>,<span style="color: #000000; font-weight:bold;">0</span>,<span style="color: #000000; font-weight:bold;">0</span>,<span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #000000; font-weight: bold;">-</span><span style="color: #004993;">rect</span>.<span style="color: #004993;">x</span>, <span style="color: #000000; font-weight: bold;">-</span><span style="color: #004993;">rect</span>.<span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> bmp<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Bitmap</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bmd2<span style="color: #000000;">&#41;</span>;
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">return</span> bmp;
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>From BitmapData it creates Bitmap without whitespace. It will find whitespace automaticaly and removes it. If you want to insert Bitmap data instead of BitmapData, just edit this function slightly. This is just idea how to do such cropping. Enjoy, I hope it will be useful for someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/crop-whitespace-from-png-image/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Franto.com Tips &amp; Tricks</title>
		<link>http://franto.com/frantocom-tips-tricks/</link>
		<comments>http://franto.com/frantocom-tips-tricks/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 10:02:13 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Flash Tips & Tricks]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Newsletter]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=581</guid>
		<description><![CDATA[I've created newsletter service for useful tips &#038; tricks for Flex, AIR, Flash, ActionScript. If you are developer and using this languages and tools on your daily basis, or just want to receive different tips &#038; tricks, please <a href="http://www.franto.com/subscribe-to-the-frantocom-tips-tricks" title="Franto.com Tips &#038; Tricks"><strong>Subscribe to Franto.com Tips &#038; Tricks</strong></a>.]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Ffrantocom-tips-tricks%2F&amp;text=Franto.com Tips &amp; Tricks&amp;count=vertical&amp;lang=en&amp;related=ActionScript,AIR,Flash,Flash+Tips+%26amp%3B+Tricks,Flex,Newsletter"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I&#8217;ve created newsletter service for useful tips &#038; tricks for Flex, AIR, Flash, ActionScript. If you are developer and using this languages and tools on your daily basis, or just want to receive different tips &#038; tricks, please <a href="http://www.franto.com/subscribe-to-the-frantocom-tips-tricks" title="Franto.com Tips &#038; Tricks"><strong>Subscribe to Franto.com Tips &#038; Tricks</strong></a>. Don&#8217;t be afraid i will fill up your inbox, I&#8217;m planning to send 1 email per week. If there will be feedback from subscirbers to post it more often it can change in future.</p>
<p>If you prefer anything what should be inside <a href="http://www.franto.com/subscribe-to-the-frantocom-tips-tricks" title="Franto.com Tips &#038; Tricks"><strong>Franto.com Tips &#038; Tricks Newsletters</strong></a>, please let me know in comments or <a href="http://www.franto.com/contact-me">Contact Me.</a></p>
<form method="post" action="http://www.aweber.com/scripts/addlead.pl">
<input type="hidden" name="meta_web_form_id" value="1387149334"/>
<input type="hidden" name="meta_split_id" value=""/>
<input type="hidden" name="unit" value="franto"/>
<input type="hidden" name="redirect" value="http://www.franto.com/thank-you-for-subscribing-to-frantocom-tips-tricks" id="redirect_5319ed79a1470ba7649ed3d4b830811b"/>
<input type="hidden" name="meta_redirect_onlist" value="http://www.franto.com/already-subscribed-to-frantocom-tips-tricks"/>
<input type="hidden" name="meta_adtracking" value="franto_tips"/>
<input type="hidden" name="meta_message" value="1"/>
<input type="hidden" name="meta_required" value="from"/>
<input type="hidden" name="meta_forward_vars" value="0"/>
<div style="padding:20px 0px 40px 0px">
<table width="100%">
<tr>
<td colspan=2>
<h1>Subscribe to Franto.com Tips &amp; Tricks</h1>
</td>
</tr>
<tr height="25">
<td colspan=2>&nbsp;</td>
</tr>
<tr>
<td><strong>Name:</strong></td>
<td>
<input type="text" name="name" value="" size="50"/></td>
</tr>
<tr>
<td><strong>Your Email:</strong></td>
<td>
<input type="text" name="from" value="" size="50"/></td>
</tr>
<tr>
<td align="left" rowspan="5"><strong>Preferred Technology:</strong></td>
<td colspan="2">
<input type="radio" name="custom Preferred Technology" value="Flex"/> Flex</td>
</tr>
<tr>
<td colspan="2">
<input type="radio" name="custom Preferred Technology" value="AIR"/> AIR</td>
</tr>
<tr>
<td colspan="2">
<input type="radio" name="custom Preferred Technology" value="Flash"/> Flash</td>
</tr>
<tr>
<td colspan="2">
<input type="radio" name="custom Preferred Technology" value="ActionScript"/> ActionScript</td>
</tr>
<tr>
<td colspan="2">
<input type="radio" name="custom Preferred Technology" value="All" checked/> All</td>
</tr>
<tr>
<td colspan=2>
<p><span></span>By submitting your Email address you are subscribing to <strong>Franto.com Tips &amp; Tricks</strong>. You will receive usefull <strong>Flex, AIR, Flash, ActionScript Tips &amp; Tricks</strong> and other usefull information from development with <strong>Adobe</strong> Tools like <strong>Flex Builder</strong>, <strong>Flash</strong>, <strong>Photoshop </strong>and others&#8230; I will try to post Tips &amp; Tricks once per week, so you will not have halted your Inbox with them.</p>
<p>&nbsp;</td>
</tr>
<tr>
<td align="center" colspan="2">
<input type="submit" name="submit" value="Subscribe to the Franto.com Tips &#038; Tricks"/></td>
</tr>
</table>
<p><center><img src="http://forms.aweber.com/form/ci/?tc=FFFFFF&#038;bg=990000&#038;d=7IwMnEycPoLqpkamTj5MbBxs" style="margin-top: 8px;"/></center>
</div>
</form>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/frantocom-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Generating .xls Excel file &#8211; part I.</title>
		<link>http://franto.com/generating-xls-excel-file-part-i/</link>
		<comments>http://franto.com/generating-xls-excel-file-part-i/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 10:20:58 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=493</guid>
		<description><![CDATA[In my latest project I need generate Excel .xls file from Flex. Because in Flex or Flash there is no support for such generation, I&#8217;ve to do it manually and I want to share this knowledge with all of you in this new tutorial serie. Because content of Excel file can vary this will be [...]]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fgenerating-xls-excel-file-part-i%2F&amp;text=Generating .xls Excel file &#8211; part I.&amp;count=vertical&amp;lang=en&amp;related=ActionScript,Excel,Flex"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>In my latest project I need generate Excel .xls file from <strong>Flex</strong>. Because in <strong>Flex</strong> or <strong>Flash</strong> there is no support for such generation, I&#8217;ve to do it manually and I want to share this knowledge with all of you in this <strong>new tutorial serie</strong>. Because content of Excel file can vary this will be serie of posts. And this information is for all developers not only for Flash or Flex coders, because this is general information about generating .xls Excel file, only some parts can contain some ActionScript code.</p>
<h3>Different ways of generating .xls file</h3>
<p>There is many ways for generating .xls file, I will not write about all ways, just about ways, which were suitable for my <strong>Flex project</strong>. As probably all of you know .xls is binary file, but it&#8217;s not always true. I will write about this later.</p>
<h3>How to start with generating .xls Excel file</h3>
<p>Maybe best thing at the start is make test .xls file and save it and look at source code. As I told .xls has binary data format, but you have possibilities to save file as Webpage or XML file, and that&#8217;s what we want. So we got 2 text formats available:</p>
<ul>
<li><strong>HTML</strong></li>
<li><strong>XML</strong></li>
</ul>
<p>So <strong>SUPER SECRET</strong> is simple:</p>
<h2 class="redColor ">Save your html or xml file as .xls file &#8211; Excel will do the rest.</h2>
<p></p>
<p>In next part I will show you some simple generation of .xls Ecel file with some styling. Stay tuned and subcribe to my <a href="http://feeds.feedburner.com/franto">RSS Feed</a> or <a href="http://twitter.com/franto">Follow me at Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/generating-xls-excel-file-part-i/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>AS3Tip: Tween in AS3.0 project</title>
		<link>http://franto.com/as3tip-tween-in-as30-project/</link>
		<comments>http://franto.com/as3tip-tween-in-as30-project/#comments</comments>
		<pubDate>Wed, 25 Jul 2007 06:54:19 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AS3 Tip]]></category>
		<category><![CDATA[Tween]]></category>

		<guid isPermaLink="false">http://www.franto.com/blog2/flextips-tween-in-as30-project</guid>
		<description><![CDATA[If you want make just pure AS3.0 project, not Flex project, there is problem with Tween. Adobe has not included Tween to pure AS3.0 project, it&#8217;s included in Flex framework library (at least I don&#8217;t know something). So you have few possibilites how to use Tween in your project. By including Flex framework library, make [...]]]></description>
			<content:encoded><![CDATA[<div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ffranto.com%2Fas3tip-tween-in-as30-project%2F&amp;text=AS3Tip: Tween in AS3.0 project&amp;count=vertical&amp;lang=en&amp;related=ActionScript,AS3+Tip,Tween"><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>If you want make just pure AS3.0 project, not Flex project, there is problem with Tween. Adobe has not included Tween to pure AS3.0 project, it&#8217;s  included in Flex framework library (at least I don&#8217;t know something). So you have few possibilites how to use Tween in your project. By <a href="http://www.hcxm.cn/blog2/article.asp?id=147">including Flex framework library</a>, make your own Tween Class, or use any already built framework, packages which has custom Tween class inside.</p>
<p>Let me know, how you are using Tween in your AS3.0 projects, maybe you will help someone.</p>
<hr />
<p>Here is list of already build Tween classes for you (I will update it, when someone point out new class):</p>
<ul>
<li><a href="http://code.google.com/p/tweener/">http://code.google.com/p/tweener/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/as3tip-tween-in-as30-project/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

