<?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; Franto</title>
	<atom:link href="http://franto.com/author/franto/feed/" rel="self" type="application/rss+xml" />
	<link>http://franto.com</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 19:38:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>DragManager.doDrag problems</title>
		<link>http://franto.com/dragmanagerdodrag-problems/</link>
		<comments>http://franto.com/dragmanagerdodrag-problems/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 14:06:34 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[dragging]]></category>
		<category><![CDATA[problem]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=938</guid>
		<description><![CDATA[I have found 2 issues with DragManager.doDrag. One of the problem is just on Mac and second one is "not really problem", but strange behavior between web version and AIR version. I really can't find answers for this problems, so I'm trying to get answers from you. I hope anyone has workaround for me :)]]></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 data-url="http://franto.com/dragmanagerdodrag-problems/" data-text="DragManager.doDrag problems"data-count="vertical" data-lang="en" data-related="AIR,dragging,problem""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I have found 2 issues with DragManager.doDrag. One of the problem is just on Mac and second one is &#8220;not really problem&#8221;, but strange behavior between web version and AIR version. I really can&#8217;t find answers for this problems, so I&#8217;m trying to get answers from you. I hope anyone has workaround for me <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, first problem is about dragImage alpha problem on Mac. <strong>Imagine this:</strong> I want drag some button and I want to make dragImage (which is &#8220;screenshot&#8221; of that dragged button) transparent. So i have create Bitmap from that button and use it as 4th parameter of doDrag() function.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">DragManager<span style="color: #000066; font-weight: bold;">.</span>doDrag<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> dragSource<span style="color: #000066; font-weight: bold;">,</span> event<span style="color: #000066; font-weight: bold;">,</span> dragImage<span style="color: #000066; font-weight: bold;">,</span> draggedButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> draggedButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>Problem is that on PC dragImage is transparent, but on Mac is solid. And problem is just in AIR, not in web version (Flex). You can try it here</p>
<ul>
<li>Web version: <a href="http://www.franto.com/work/dragMacProblem/">Alpha Drag Problem</a></li>
<li>AIR version: <a href="http://www.franto.com/work/dragMacProblem/DragMacProblemAIR.air">Alpha Drag Problem</a></li>
</ul>
<p>Try drag any button and you should experience this: web version works for PC and Mac as well (I don&#8217;t  have Linux, so you can try Linux as well), but AIR version works just for PC. DragImage on Mac will be solid and not transparent.</p>
<p>Does anyone know, if this is bug, or there is some workaround for this?</p>
<p>Second issue I have found is somethin strange. As I&#8217;m listening from dragStart on Canvas and it handles all 3 buttons, I need to set offset to doDrag() function (5th, 6th parameter) from dragged buton. And you know what? There is difference between web version (Flex) and desktop version (AIR). In web version I need to insert offset like -draggedButton.x, -draggedButton.y, but in AIR version I need to insert draggedButton.x, draggedButton.y. Really strange, but otherwise it doesnt work as expected.</p>
<p>You can see sources of both projects. For web version, use right click, there is <a href="http://www.franto.com/work/dragMacProblem/srcview/index.html">View Source</a> and for AIR version use this link for downloading project source: <a href="http://www.franto.com/work/dragMacProblem/DragMacProblemAIR.zip">AIR Project Download</a>.</p>
<p>I would be glad to hear your opinions and solutions or workarounds. Thank you</p>
<p>Source for creating screenshot and calling DragManager.doDrag</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> dragStart<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span>DragEvent<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> dragSource<span style="color: #000066; font-weight: bold;">:</span>DragSource = <span style="color: #0033ff; font-weight: bold;">new</span> DragSource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> dragImage<span style="color: #000066; font-weight: bold;">:</span>Image = <span style="color: #0033ff; font-weight: bold;">new</span> Image<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> bd<span style="color: #000066; 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>draggedButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> draggedButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">,</span> 0x00000000<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	bd<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>draggedButton<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
        dragImage<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">source</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Bitmap</span><span style="color: #000000;">&#40;</span>bd<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> shadow<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">DropShadowFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">DropShadowFilter</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">225</span><span style="color: #000066; font-weight: bold;">,</span>0x000000<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> glow<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">GlowFilter</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">GlowFilter</span><span style="color: #000000;">&#40;</span>0x888888<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">20</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	glow<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">inner</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
	dragImage<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">filters</span> = <span style="color: #000000;">&#91;</span>shadow<span style="color: #000066; font-weight: bold;">,</span> glow<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	dragImage<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">alpha</span> = <span style="color: #000000; font-weight:bold;">0.5</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
        DragManager<span style="color: #000066; font-weight: bold;">.</span>doDrag<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> dragSource<span style="color: #000066; font-weight: bold;">,</span> event<span style="color: #000066; font-weight: bold;">,</span> dragImage<span style="color: #000066; font-weight: bold;">,</span>
                       draggedButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> draggedButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://franto.com/dragmanagerdodrag-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex Styling &amp; Skinning Presentation for Slovak FUG</title>
		<link>http://franto.com/flex-styling-skinning-presentation-for-slovak-fug/</link>
		<comments>http://franto.com/flex-styling-skinning-presentation-for-slovak-fug/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 09:53:33 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Styling and Skinning]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=934</guid>
		<description><![CDATA[Today I will have presentation about Flex Styling &#038; Skinning for slovak Flex User Group called Flexgarden. If there are really cool skinned or styled application on web, or something other really cool I can show to slovak flex coders, please let me know. Presentation will be today at 7pm CET. Sure I'm aware of sites like <a href="http://www.scalenine.com">scalenine.com</a>, <a href="http://www.fillcolors.com">fillcolors.com</a> and similar :)]]></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 data-url="http://franto.com/flex-styling-skinning-presentation-for-slovak-fug/" data-text="Flex Styling &amp; Skinning Presentation for Slovak FUG"data-count="vertical" data-lang="en" data-related="Flex,Styling+and+Skinning""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Today I will have presentation about Flex Styling &#038; Skinning for slovak Flex User Group called <a href="http://www.flexgarden.net/">Flexgarden</a>. If there are really cool skinned or styled Flex applications on web or AIR applications for desktop, or something other really cool I can show to slovak flex coders, please let me know. Presentation will be today at 7pm CET. Sure I&#8217;m aware of sites like <a href="http://www.scalenine.com">scalenine.com</a>, <a href="http://www.fillcolors.com">fillcolors.com</a> and similar <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thank you</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/flex-styling-skinning-presentation-for-slovak-fug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fastest way of closing AIR application</title>
		<link>http://franto.com/fastest-way-of-closing-air-application/</link>
		<comments>http://franto.com/fastest-way-of-closing-air-application/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 10:03:12 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[AIR Tips]]></category>
		<category><![CDATA[Feedback]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=932</guid>
		<description><![CDATA[In my appliaction, The code: "application.close();" is used to exit
the application. And I found, no. of ways are there to exit the application. Let me
know, which one is best , should allow the grace full exit and should faster.

No. of ways to Exit in Flex:

       1. NativeApplication.nativeApplication.exit();
       2. Application.application.exit();
       3. application.close();
       4. exit();

       And please advise, any other option is there to exit the application.]]></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 data-url="http://franto.com/fastest-way-of-closing-air-application/" data-text="Fastest way of closing AIR application"data-count="vertical" data-lang="en" data-related="AIR,AIR+Tips,Feedback""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>Today on <a href="http://code.google.com/p/flexlib/">FlexLib</a> mailinglist I&#8217;ve found quite nice and interesting question:</p>
<blockquote><p>Dear Folks,</p>
<p>       In my appliaction, The code: &#8220;application.close();&#8221; is used to exit<br />
the application.<br />
And I found, no. of ways are there to exit the application. Let me<br />
know, which one is best , should allow the<br />
grace full exit and should faster.</p>
<p> No. of ways to Exit in Flex:</p>
<p>       1. NativeApplication.nativeApplication.exit();<br />
       2. Application.application.exit();<br />
       3. application.close();<br />
       4. exit();</p>
<p>       And please advise, any other option is there to exit the application.</p>
<p>Thanks in Advance</p>
<p>Lokh</p></blockquote>
<p>What are your experiences with closing AIR application. Do you think it&#8217;s matters on function which is  closing AIR application?</p>
<p>Post your thoughts and I will post them to the FlexLib mailinglist.</p>
<p>Thank you</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/fastest-way-of-closing-air-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Basecamp has 5 years anniversary</title>
		<link>http://franto.com/basecamp-has-5-years-anniversary/</link>
		<comments>http://franto.com/basecamp-has-5-years-anniversary/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 09:43:32 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Project Management]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=926</guid>
		<description><![CDATA[In Flexets we are using Basecamp for project management. It's really great tool and yesterday Basecamp had 5 years anniversary. Here are few impressive numbers :)

<blockquote>Today over 3,000,000 people have Basecamp accounts. Over 2,800,000 projects have been created. Over 26 terabytes of files have been uploaded. Over 20,000,000 messages have been posted, over 31,000,000 to-dos have been added, and over 5,000,000 milestones have been completed. All in five short years over the web from around the world.</blockquote>]]></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 data-url="http://franto.com/basecamp-has-5-years-anniversary/" data-text="Basecamp has 5 years anniversary"data-count="vertical" data-lang="en" data-related="Project+Management""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>In <a href="http://www.flexets.com">Flexets</a> we are using Basecamp for project management. It&#8217;s really great tool and yesterday Basecamp had 5 years anniversary. Here are few impressive numbers <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote><p>Today over 3,000,000 people have Basecamp accounts. Over 2,800,000 projects have been created. Over 26 terabytes of files have been uploaded. Over 20,000,000 messages have been posted, over 31,000,000 to-dos have been added, and over 5,000,000 milestones have been completed. All in five short years over the web from around the world.</p></blockquote>
<p><a href="http://www.37signals.com/svn/posts/1556-happy-birthday-basecamp-turns-five">Read more at 37 signals</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/basecamp-has-5-years-anniversary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 Conditional Breakpoint &#8211; enterDebugger()</title>
		<link>http://franto.com/as3-conditional-breakpoint-enterdebugger/</link>
		<comments>http://franto.com/as3-conditional-breakpoint-enterdebugger/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 10:41:47 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex Tips]]></category>
		<category><![CDATA[AS3 Tip]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Tip]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=922</guid>
		<description><![CDATA[I have to confess I didn't know about great function enterDebugger() in flash.debugger package. If you ever want to have conditional breakpoint you can do it programatically. Just add this statement to you code and debuger will stop as it there would be normal breakpoint. So you can use it in IF statement and call it just when some conditions are met. I think I will use this function a lot from now on :)]]></description>
			<content:encoded><![CDATA[<div class='series_toc'><h3>Table of contents for flex-tips</h3><ol><li><a href='http://franto.com/flextips/' title='FlexTips'>FlexTips</a></li><li><a href='http://franto.com/flextips-mxtext-vs-mxtextarea/' title='FlexTip: mx:Text vs. mx:TextArea'>FlexTip: mx:Text vs. mx:TextArea</a></li><li><a href='http://franto.com/flextips-xmlsocket-connect-after-disconnect-from-server/' title='FlexTip: XMLSocket connect() after disconnect from server'>FlexTip: XMLSocket connect() after disconnect from server</a></li><li><a href='http://franto.com/flextips-problem-with-masks-and-scalable-flash/' title='FlexTip: Problem with masks and scalable Flash'>FlexTip: Problem with masks and scalable Flash</a></li><li><a href='http://franto.com/flextips-how-to-add-bitmap-to-uicomponent/' title='FlexTips: How to add Bitmap to UIComponent'>FlexTips: How to add Bitmap to UIComponent</a></li><li><a href='http://franto.com/flextips-stop-displaying-focus/' title='FlexTip &#8211; Stop displaying Focus'>FlexTip &#8211; Stop displaying Focus</a></li><li><a href='http://franto.com/preventing-checkbox-selection-with-keyspace/' title='FlexTip: Preventing CheckBox selection with Key.SPACE'>FlexTip: Preventing CheckBox selection with Key.SPACE</a></li><li><a href='http://franto.com/flextip-wordwrap-for-mxtext/' title='FlexTip: WordWrap for mx:Text'>FlexTip: WordWrap for mx:Text</a></li><li><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>FlexTip: Add Thumbs to Mx:Slider programatically</a></li><li>AS3 Conditional Breakpoint &#8211; enterDebugger()</li></ol></div> <div class="TweetButton_button" style="float: right; margin-left: 10px;;height:20px;margin-bottom:5px;"><a href="http://twitter.com/share data-url="http://franto.com/as3-conditional-breakpoint-enterdebugger/" data-text="AS3 Conditional Breakpoint &#038;%238211; enterDebugger()"data-count="vertical" data-lang="en" data-related="AS3+Tip,Flex,Flex+Tip""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I have to confess I didn&#8217;t know about great function enterDebugger() in flash.debugger package. If you ever want to have conditional breakpoint you can do it programatically. Just add this statement to your code and debuger will stop as it there would be normal breakpoint. So you can use it in IF statement and call it just when some conditions are met. I think I will use this function a lot from now on <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Enjoy</p>
 <div class='series_links'><a href='http://franto.com/add-thumbs-to-mxslider-programatically/' title='FlexTip: Add Thumbs to Mx:Slider programatically'>Previous in series</a> </div>]]></content:encoded>
			<wfw:commentRss>http://franto.com/as3-conditional-breakpoint-enterdebugger/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Win Adobe CS4 Web Premium and Flex Builder Pro 3</title>
		<link>http://franto.com/win-adobe-cs4-web-premium-and-flex-builder-pro-3/</link>
		<comments>http://franto.com/win-adobe-cs4-web-premium-and-flex-builder-pro-3/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 07:58:48 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=917</guid>
		<description><![CDATA[You can have time just till tommorow so act fast (I've found out just today from Sitepoint.com newsletter). There is easy way how to include you into draw. Just read this article on Sitepoint.com: <a href="http://www.sitepoint.com/article/ajaxify-your-flex-application/2/">Ajaxify Your Flex Application</a> and <a href="http://www.sitepoint.com/quiz/adobe/ajaxify-your-flex-application">take this quiz</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 data-url="http://franto.com/win-adobe-cs4-web-premium-and-flex-builder-pro-3/" data-text="Win Adobe CS4 Web Premium and Flex Builder Pro 3"data-count="vertical" data-lang="en""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>You have time just till tommorow so act fast (I&#8217;ve found out this just today from Sitepoint.com newsletter). There is easy way how to include you into draw. Just read this article on Sitepoint.com: <a href="http://www.sitepoint.com/article/ajaxify-your-flex-application/2/">Ajaxify Your Flex Application</a> and <a href="http://www.sitepoint.com/quiz/adobe/ajaxify-your-flex-application">take this quiz</a>. There are 5 easy questions and if you are Flex coder you should probably know asnwers without reading article, but it&#8217;s always better to read it and maybe learn something new. If you will answer 5 times correct you can win your own copy of Adobe CS4 Web Premium and Flex Builder Pro 3.</p>
<p>Wish you best luck <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/win-adobe-cs4-web-premium-and-flex-builder-pro-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 data-url="http://franto.com/crop-whitespace-from-png-image/" data-text="Crop whitespace from PNG image"data-count="vertical" data-lang="en" data-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: #000066; font-weight: bold;">:</span><span style="color: #004993;">BitmapData</span><span style="color: #000000;">&#41;</span><span style="color: #000066; 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: #000066; 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: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> bd<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">,</span> 0x00000000<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	bmd<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>bd<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Rectangle</span> = bmd<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">getColorBoundsRect</span><span style="color: #000000;">&#40;</span>0xFFFFFF<span style="color: #000066; font-weight: bold;">,</span> 0x00000000<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #6699cc; font-weight: bold;">var</span> bmd2<span style="color: #000066; 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: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">,</span> 0x00000000<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	bmd2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">draw</span><span style="color: #000000;">&#40;</span>bmd<span style="color: #000066; font-weight: bold;">,</span> <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: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span><span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">x</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000066; font-weight: bold;">-</span><span style="color: #004993;">rect</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">y</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #6699cc; font-weight: bold;">var</span> bmp<span style="color: #000066; 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><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">return</span> bmp<span style="color: #000066; font-weight: bold;">;</span>
<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>InteractivePNG &#8211; useful AS3 class</title>
		<link>http://franto.com/interactivepng-useful-as3-class/</link>
		<comments>http://franto.com/interactivepng-useful-as3-class/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 21:47:09 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=905</guid>
		<description><![CDATA[I working on some game editors for my old game engine (not finished) to show people something what I have and let people convince me maybe to continue (<a href="http://www.fallenswordsgame.com">fallenswordsgame.com</a>) and there are lot of PNG assets. If I got on stage many PNG images there is problem with selection of correct one, because in AS3 there are MouseEvent events even on transparent pixels and that's problem. I have tried search if someone did great job on some workaround and I have found really great AS3 class called <strong><a href="http://blog.mosessupposes.com/?p=40">InteractivePNG</a></strong>.]]></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 data-url="http://franto.com/interactivepng-useful-as3-class/" data-text="InteractivePNG &#038;%238211; useful AS3 class"data-count="vertical" data-lang="en""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>I&#8217;m working on some game editors for my old game engine (not finished) to show people something what I have done and let people convince me maybe to continue (<a href="http://www.fallenswordsgame.com">fallenswordsgame.com</a>). There are lot of PNG assets used. If there are many PNG images on stage, there is problem with selection of correct one, because in AS3 there are MouseEvent events even on transparent pixels and that&#8217;s problem. I have tried search if someone did great job on some workaround and I have found really great AS3 class called <strong><a href="http://blog.mosessupposes.com/?p=40">InteractivePNG</a></strong>. You can set even alphaTolerance to tell class if your MouseEvent event should be catched on semitransparent pixels or just opaque pixels. Check it out <a href="http://www.mosessupposes.com/utilities/InteractivePNG_demo.html">InteractivePNG demo</a>.  It really helps me, so I hope it can help you as well. Great job, Moses.</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/interactivepng-useful-as3-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FireScope &#8211; HTML and CSS Reference for Firebug</title>
		<link>http://franto.com/firescope-html-and-css-reference-for-firebug/</link>
		<comments>http://franto.com/firescope-html-and-css-reference-for-firebug/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 07:47:47 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=901</guid>
		<description><![CDATA[SitePoint.com has released <a href="http://tools.sitepoint.com/firescope/">FireScope</a>, which is <strong>HTML</strong> and <strong>CSS</strong> Reference fo <a href="http://getfirebug.com/">Firebug</a>, so now Firebug is even more powerful with inline help.]]></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 data-url="http://franto.com/firescope-html-and-css-reference-for-firebug/" data-text="FireScope &#038;%238211; HTML and CSS Reference for Firebug"data-count="vertical" data-lang="en""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>SitePoint.com has released <a href="http://tools.sitepoint.com/firescope/">FireScope</a>, which is <strong>HTML</strong> and <strong>CSS</strong> Reference fo <a href="http://getfirebug.com/">Firebug</a>, so now Firebug is even more powerful with inline help. You can see which browser support currently viewed feature, in which browser is feature implementation buggy and so on&#8230; I like <strong>FireBug</strong> much and even now with quick help it is really Firefox extension which everyone who wants to understand HTML and CSS, quick edit page, or just find some problem on page should have installed.</p>
<p>This is tool which helps me to help my customers at <a href="http://www.franto.com/become-webmaster">Become The Webmaster Coaching</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/firescope-html-and-css-reference-for-firebug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wallpaper for you &#8211; Christmas Wallpapers</title>
		<link>http://franto.com/wallpaper-for-you-christmas-wallpapers/</link>
		<comments>http://franto.com/wallpaper-for-you-christmas-wallpapers/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 08:00:06 +0000</pubDate>
		<dc:creator>Franto</dc:creator>
				<category><![CDATA[Wallpapers]]></category>

		<guid isPermaLink="false">http://www.franto.com/?p=871</guid>
		<description><![CDATA[As Christmas is really near, I&#8217;ve created few Christmas Wallpapers for you. You can use them as desktop wallpapers, or send them as Merry Christmas and Happy New Year wishes and cards. If you want to use them in your websites or anywhere else, please give me proper credits and link back to franto.com. And [...]]]></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 data-url="http://franto.com/wallpaper-for-you-christmas-wallpapers/" data-text="Wallpaper for you &#038;%238211; Christmas Wallpapers"data-count="vertical" data-lang="en""><img src="http://franto.com/blog2/wp-content/plugins/tweetbutton-for-wordpress/images/tweet.png" style="border:none" /></a></div>
<p>As Christmas is really near, I&#8217;ve created few Christmas Wallpapers for you. You can use them as desktop wallpapers, or send them as Merry Christmas and Happy New Year wishes and cards. If you want to use them in your websites or anywhere else, please give me proper credits and link back to franto.com.</p>
<p><a href="http://www.franto.com/wallpaper/christmaswallpapers.jpg" rel="lightbox"><img src="http://www.franto.com/wallpaper/christmaswallpapers.jpg" alt="Christmas Wallpapers from Franto.com " title="christmaswallpapers" width="600" height="480" class="size-full wp-image-872" /></a></p>
<p>And here you can see list of all my wallpapers for you. Just click on image bellow <img src='http://franto.com/blog2/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.franto.com/wallpaper-for-you" title="Franto.com Wallpapers for You"><br />
<img src="http://www.franto.com/blog2/wp-content/uploads/franto_com_wallpapers_for_you.jpg"/></a></p>
]]></content:encoded>
			<wfw:commentRss>http://franto.com/wallpaper-for-you-christmas-wallpapers/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

