<?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>vamapaull.com</title>
	<atom:link href="http://vamapaull.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vamapaull.com</link>
	<description>It&#039;s all about Flash and Flash related technologies</description>
	<lastBuildDate>Wed, 22 May 2013 08:42:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Quick Tip: Replace Breakline (\n) with comma</title>
		<link>http://vamapaull.com/quick-tip-replace-breakline-n-with-comma/</link>
		<comments>http://vamapaull.com/quick-tip-replace-breakline-n-with-comma/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 13:42:43 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Tips and Tricks]]></category>

		<guid isPermaLink="false">http://vamapaull.com/?p=1158</guid>
		<description><![CDATA[Today I have a very quick tip but useful. I&#8217;ve wasted a few minutes of my life trying to find an answer for this because I&#8217;m not an expert when it comes to regular expressions. This code comes in handy if you&#8217;re trying to remove \n (a break line) from a string and you want [...]]]></description>
				<content:encoded><![CDATA[<p>Today I have a very quick tip but useful. I&#8217;ve wasted a few minutes of my life trying to find an answer for this because I&#8217;m not an expert when it comes to <a href="http://en.wikipedia.org/wiki/Regular_expression" title="Regular Expression" target="_blank">regular expressions</a>.</p>
<p>This code comes in handy if you&#8217;re trying to remove \n (a break line) from a string and you want to replace it with something else (line a comma, as shown in the example below) you can use the following code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;">string<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">replace</span><span style="color: #000000;">&#40;</span><span style="color: #009966; font-style: italic;">/[\r\n]+/g</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;,&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/quick-tip-replace-breakline-n-with-comma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Christmas Day Countdown &#8211; Free Android Application</title>
		<link>http://vamapaull.com/christmas-day-countdown-free-android-application/</link>
		<comments>http://vamapaull.com/christmas-day-countdown-free-android-application/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 13:05:05 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Adone AIR]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[Christmas]]></category>
		<category><![CDATA[Countdown]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=977</guid>
		<description><![CDATA[Yesterday I spent some time and made a cool little application with Adobe AIR technology, a simple application that will count down the days &#8217;til Christmas. Download it for free from Google Play. Here you have a video demonstration:]]></description>
				<content:encoded><![CDATA[<p>Yesterday I spent some time and made a cool little application with Adobe AIR technology, a simple application that will count down the days &#8217;til Christmas.</p>
<p><a title="Christmas day countdown free Android app" href="https://play.google.com/store/apps/details?id=air.ChristmasDayContdown&amp;feature=search_result#?t=W251bGwsMSwxLDEsImFpci5DaHJpc3RtYXNEYXlDb250ZG93biJd" target="_blank"><img class="size-medium wp-image-978 aligncenter" title="Christmas Countdown Android Application" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2012/12/Christmas-Countdown-Android-Application-640x384.png" width="640" height="384" /></a><br />
<span id="more-977"></span><br />
Download it for free from <a title="Google Play" href="https://play.google.com/store/apps/details?id=air.ChristmasDayContdown&amp;feature=search_result#?t=W251bGwsMSwxLDEsImFpci5DaHJpc3RtYXNEYXlDb250ZG93biJd" target="_blank">Google Play</a>.</p>
<p>Here you have a video demonstration:<br />
<iframe width="560" height="315" src="http://www.youtube.com/embed/DMp189S6qCo" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/christmas-day-countdown-free-android-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Numbers to letters with ActionScript 3</title>
		<link>http://vamapaull.com/numbers-to-letters-with-actionscript-3/</link>
		<comments>http://vamapaull.com/numbers-to-letters-with-actionscript-3/#comments</comments>
		<pubDate>Tue, 06 Nov 2012 19:43:18 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[letters]]></category>
		<category><![CDATA[numbers]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=946</guid>
		<description><![CDATA[Today I&#8217;ve been working on a project where I needed to convert numbers to letters. I&#8217;ve made a nice utility class for this simple task. Not sure if it&#8217;s the best way but it works perfectly fine. Basically I have an array where the items need to be in alphabetical order instead of numbering them [...]]]></description>
				<content:encoded><![CDATA[<p><img class="size-full wp-image-949 alignleft" alt="Numbers-to-letters" src="http://blog.vamapaull.com/wp-content/uploads/2012/11/Numbers-to-letters.jpg" width="254" height="212" /> Today I&#8217;ve been working on a project where I needed to convert numbers to letters.</p>
<p>I&#8217;ve made a nice utility class for this simple task.<br />
Not sure if it&#8217;s the best way but it works perfectly fine.</p>
<p>Basically I have an array where the items need to be in alphabetical order instead of numbering them with 1,2,3,4,etc.<br />
<span id="more-946"></span><br />
&nbsp;<br />
Example:<br />
0 &gt; A<br />
1 &gt; B<br />
2 &gt; C</p>
<p>I&#8217;ve made a nice utility class for this simple task.<br />
Not sure if it&#8217;s the best way but it works perfectly fine.</p>
<p>If you need to do the same thing your ActionScript project, please feel free to use this code.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>vamapaull<span style="color: #000066; font-weight: bold;">.</span>utils
<span style="color: #000000;">&#123;</span>	
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> NumberToLetter
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #339966; font-weight: bold;">function</span> convert<span style="color: #000000;">&#40;</span>number<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> letter<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">switch</span><span style="color: #000000;">&#40;</span>number<span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;A&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;B&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">2</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;C&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;D&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">4</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;E&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">5</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;F&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">6</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;G&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">7</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;H&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">8</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;I&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">9</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;J&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;K&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">11</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">12</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;M&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">13</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;N&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">14</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;O&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">15</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;P&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">16</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;Q&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">17</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">18</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;S&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">19</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;T&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">20</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;U&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">21</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;V&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">22</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;W&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">23</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;X&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">24</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;Y&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
				<span style="color: #0033ff; font-weight: bold;">case</span> <span style="color: #000000; font-weight:bold;">25</span><span style="color: #000066; font-weight: bold;">:</span>
				<span style="color: #000000;">&#123;</span>
					letter = <span style="color: #990000;">&quot;Z&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
					<span style="color: #0033ff; font-weight: bold;">break</span><span style="color: #000066; font-weight: bold;">;</span>
				<span style="color: #000000;">&#125;</span>
			<span style="color: #000000;">&#125;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">return</span> letter<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>UPDATE:</strong><br />
I&#8217;ve thought a bit more and came to the conclusion that the previous code with the switch statement is too messy.</p>
<p>A better way to do this is to simply make an array with all the letters in the alphabet and then return the letter using the number you want to convert.</p>
<p>New code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>vamapaull<span style="color: #000066; font-weight: bold;">.</span>utils
<span style="color: #000000;">&#123;</span>	
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> NumberToLetter
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #339966; font-weight: bold;">function</span> convert<span style="color: #000000;">&#40;</span>number<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> letters<span style="color: #000066; font-weight: bold;">:</span>Vector<span style="color: #000066; font-weight: bold;">.</span> = <span style="color: #0033ff; font-weight: bold;">new</span> Vector<span style="color: #000066; font-weight: bold;">.;</span>
			letters<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span> <span style="color: #990000;">&quot;A&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;B&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;C&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;D&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;E&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;F&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;G&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;H&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;I&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;J&quot;</span><span style="color: #000066; font-weight: bold;">,</span>  
					<span style="color: #990000;">&quot;K&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;L&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;M&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;N&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;O&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;P&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Q&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;R&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;S&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;T&quot;</span><span style="color: #000066; font-weight: bold;">,</span>  
					<span style="color: #990000;">&quot;U&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;V&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;W&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;X&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Y&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Z&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">return</span> letters<span style="color: #000000;">&#91;</span>number<span style="color: #000000;">&#93;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/numbers-to-letters-with-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book Creator For Kids</title>
		<link>http://vamapaull.com/book-creator-for-kids/</link>
		<comments>http://vamapaull.com/book-creator-for-kids/#comments</comments>
		<pubDate>Fri, 21 Sep 2012 19:37:16 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[Book Creator]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Kids]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=904</guid>
		<description><![CDATA[Update: At the beginning of this year, the client requested a few new features and a some features removed. Above you have a screen shot of the new app and below you can find an image with the old interface. Lately I’ve been absent because I have been working on a cool Book Creator Flash [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Update:</strong> At the beginning of this year, the client requested a few new features and a some features removed. Above you have a screen shot of the new app and below you can find an image with the old interface.</p>
<p>Lately I’ve been absent because I have been working on a cool Book Creator Flash application.</p>
<p>This project was a new experience for me since I got to work with Flash and server-side code.</p>
<p>The application is made for kids between the ages of 8 and 12 years.</p>
<p>It’s a Book Creator type of app that lets you configure a simple book. You can then print the book to your local printer or save on your profile.<br />
<span id="more-904"></span><br />
You can add/remove pages, select from a library of templates, add images, add text and add page backgrounds.</p>
<p>When you select a text field you have the option to choose from the embedded fonts, change text color, size, make it bold / italic / underline and change the alignment of your text.</p>
<p>You also have the ability to set the book orientation to landscape or portrait.</p>
<p><img src="http://blog.vamapaull.com/wp-content/uploads/2012/09/Book-Creator-Flash-Application-ActionScript-3.jpg" alt="Book-Creator-Flash-Application-ActionScript-3" width="1680" height="920" class="alignnone size-full wp-image-930" /></p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/book-creator-for-kids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Tip: Test to see if an XML attribute is present</title>
		<link>http://vamapaull.com/quick-tip-test-to-see-if-an-xml-attribute-is-present/</link>
		<comments>http://vamapaull.com/quick-tip-test-to-see-if-an-xml-attribute-is-present/#comments</comments>
		<pubDate>Thu, 14 Jun 2012 16:27:53 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[ActionScirpt]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[checking]]></category>
		<category><![CDATA[present]]></category>
		<category><![CDATA[Quick Tip]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[testing]]></category>
		<category><![CDATA[verify]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=839</guid>
		<description><![CDATA[Today I received a question about how to check and see if an attribute is present into a XML node. I thought it wold be a good idea if I post the answer here in case someone else needs to do the same. This is the ActionScript code: if&#40;node.@attributeName in node&#41; &#123; //the attribute is [...]]]></description>
				<content:encoded><![CDATA[<p>Today I received a question about how to check and see if an attribute is present into a XML node. </p>
<p>I thought it wold be a good idea if I post the answer here in case someone else needs to do the same.</p>
<p>This is the ActionScript code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>node.<span style="color: #66cc66;">@</span>attributeName <span style="color: #b1b100;">in</span> node<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">//the attribute is here</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>As you can see, the code is very simple, &#8220;node&#8221; is your actual XML node and &#8220;attributeName&#8221; is exactly what it says, the name of your attribute inside the XML node (the one that you are checking to see if it is there).</p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/quick-tip-test-to-see-if-an-xml-attribute-is-present/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using lineStyle to draw stroke without affecting the size of the holder container</title>
		<link>http://vamapaull.com/using-linestyle-to-draw-stroke-without-affecting-the-size-of-the-holder-container/</link>
		<comments>http://vamapaull.com/using-linestyle-to-draw-stroke-without-affecting-the-size-of-the-holder-container/#comments</comments>
		<pubDate>Thu, 17 May 2012 12:39:32 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[beginFill]]></category>
		<category><![CDATA[CapsStyle]]></category>
		<category><![CDATA[Draw]]></category>
		<category><![CDATA[drawRect]]></category>
		<category><![CDATA[endFill]]></category>
		<category><![CDATA[Graphics]]></category>
		<category><![CDATA[JointStyle]]></category>
		<category><![CDATA[LineScaleMode]]></category>
		<category><![CDATA[lineStyle]]></category>
		<category><![CDATA[SWF]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Trick]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=789</guid>
		<description><![CDATA[Have you ever tried to use the graphics class to draw a rectangle with a lineStyle (stroke) and then set bigger width and height values for the container that holds the graphic? If so, you probably noticed that there is a size difference between a rectangle with lineStyle and a rectangle without lineStyle. If you [...]]]></description>
				<content:encoded><![CDATA[<p><img class="size-full wp-image-841 alignleft" title="lineStyle-problem" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2012/05/lineStyle-problem.jpg" width="272" height="272" />Have you ever tried to use the <a title="Graphics Class" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics.html" target="_blank">graphics class</a> to draw a rectangle with a <a title="lineStyle" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics.html#lineStyle%28%29" target="_blank">lineStyle</a> (stroke) and then set bigger width and height values for the container that holds the graphic? If so, you probably noticed that there is a size difference between a rectangle with lineStyle and a rectangle without lineStyle.</p>
<p>If you trace the width and height values of the container, everything seems to be fine. Only if you run and look at the SWF you&#8217;ll notice a visual difference between those two (top image).<br />
<span id="more-789"></span></p>
<p>ActionScript Code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> rectangle<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><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> rectangleLineStyle<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Sprite</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Sprite</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">with</span><span style="color: #000000;">&#40;</span>rectangle<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0x333333<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</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;">50</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">with</span><span style="color: #000000;">&#40;</span>rectangleLineStyle<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">beginFill</span><span style="color: #000000;">&#40;</span>0xd5e7ed<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span> 0xff0000<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: #000066; font-weight: bold;">,</span> <span style="color: #004993;">LineScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NONE</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">drawRect</span><span style="color: #000000;">&#40;</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;">50</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">50</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">endFill</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>rectangle<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>rectangleLineStyle<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
rectangle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = rectangle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> = <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">;</span>
rectangleLineStyle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">width</span> = rectangleLineStyle<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">height</span> = <span style="color: #000000; font-weight:bold;">200</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>Both rectangles have the same width and height. Notice how the one with lineStyle is much smaller?</p>
<p>I&#8217;m not sure what the problem is, but there seems to be a fix (kind of).</p>
<p>Through some trial and error I found that if you use <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/CapsStyle.html" target="_blank">CapsStyle.ROUND</a> and <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/JointStyle.html" target="_blank">JointStyle.MITER</a> like so, the problem disappears:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">graphics</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">lineStyle</span><span style="color: #000000;">&#40;</span><span style="color: #000000; font-weight:bold;">3</span><span style="color: #000066; font-weight: bold;">,</span> 0xff0000<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: #000066; font-weight: bold;">,</span>  <span style="color: #004993;">LineScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NONE</span><span style="color: #000066; font-weight: bold;">,</span> 
					   <span style="color: #004993;">CapsStyle</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ROUND</span><span style="color: #000066; font-weight: bold;">,</span> 
					   <span style="color: #004993;">JointStyle</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MITER</span></pre></td></tr></table></div>

<p>However, it&#8217;s not perfect. If you have a much smaller rectangle, let&#8217;s say you create:<br />
drawRect(0,0,<strong>10</strong>,<strong>10</strong>);</p>
<p>Instead of:<br />
drawRect(0,0,<strong>50</strong>,<strong>50</strong>);</p>
<p>Then you will still notice a bit of a difference.</p>
<p>If you want to make a rectangle with lineStyle that can be scaled and you want to get rid of this problem completely, an easy fix wold be make the rectangle bigger and scale it down instead of making it smaller and scale it up. In this scenario, the visual rectangle seems to maintain the real width and height values.</p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/using-linestyle-to-draw-stroke-without-affecting-the-size-of-the-holder-container/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using ExternalInterface and JS to make an Expandable Flash Banner</title>
		<link>http://vamapaull.com/using-externalinterface-and-js-to-make-an-expandable-flash-banner/</link>
		<comments>http://vamapaull.com/using-externalinterface-and-js-to-make-an-expandable-flash-banner/#comments</comments>
		<pubDate>Sat, 05 May 2012 17:08:15 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ExternalInterface]]></category>
		<category><![CDATA[ExternalInterface.call]]></category>
		<category><![CDATA[Flash Banner]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=766</guid>
		<description><![CDATA[Expandable Banner &#8211; How to make it and embed it into your HTML page without affecting the rest of the page. Today I helped a friend who needed an expandable banner embedded into a news website. At first, I had the instinct to searching on Google and giving him an URL or something where he [...]]]></description>
				<content:encoded><![CDATA[<p>Expandable Banner &#8211; How to make it and embed it into your HTML page without affecting the rest of the page.</p>
<p><script type="text/javascript">
	function expand() {
		document.getElementById("expandableBanner").style.clip="rect(0px 640px 240px 0px)";
	}
	function retract() {
		document.getElementById("expandableBanner").style.clip="rect(0px 640px 120px 0px)";
	}
</script></p>
<div style="width: 100%; text-align: center">
<div style="position:relative; width:600px; height:120px; z-index:1000; background-color:none;">
<div id="expandableBanner" style="position: absolute; clip: rect(0px, 640px, 120px, 0px);">
	<object id="banner" width="640" height="240" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"><param name="movie" value="http://vamapaull.com/wp-content/uploads/2012/05/ExpandableBanner.swf"><param name="quality" value="high"><param name="wmode" value="transparent"><embed width="640" height="240" src="http://vamapaull.com/wp-content/uploads/2012/05/ExpandableBanner.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"><br />
	</object>
</div>
</div>
</div>
<p>Today I helped a friend who needed an expandable banner embedded into a news website. At first, I had the instinct to searching on Google and giving him an URL or something where he can read more about this. To my surprise, none of the info I got through search engines was relevant or complete for this specific subject.</p>
<p>This led me to create an example and now I want to share that example with those searching for how to make an expandable Flash banner.</p>
<p><span id="more-766"></span><br />
HTML and JS Code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="html" style="font-family:monospace;">&lt;body&gt;
	&lt;div style=&quot;position:relative; width:600px; height:120px; z-index:1000; background-color:none;&quot;&gt;
		&lt;div id=&quot;expandableBanner&quot; style=&quot;position: absolute; clip: rect(0px, 640px, 120px, 0px);&quot;&gt;
			&lt;object id=&quot;banner&quot; width=&quot;640&quot; height=&quot;240&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0&quot;&gt;
				&lt;param name=&quot;movie&quot; value=&quot;ExpandableBanner.swf&quot;&gt;
				&lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;
				&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;
				&lt;embed width=&quot;640&quot; height=&quot;240&quot; src=&quot;ExpandableBanner.swf&quot; quality=&quot;high&quot; wmode=&quot;transparent&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; type=&quot;application/x-shockwave-flash&quot;&gt;
			&lt;/object&gt;
		&lt;/div&gt;
	&lt;/div&gt;
&lt;/body&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
	function expand() {
		document.getElementById(&quot;expandableBanner&quot;).style.clip=&quot;rect(0px 640px 240px 0px)&quot;;
	}
	function retract() {
		document.getElementById(&quot;expandableBanner&quot;).style.clip=&quot;rect(0px 640px 120px 0px)&quot;;
	}
&lt;/script&gt;</pre></td></tr></table></div>

<p>ActionScript code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>	
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Sprite</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.external</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">ExternalInterface</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> caurina<span style="color: #000066; font-weight: bold;">.</span>transitions<span style="color: #000066; font-weight: bold;">.</span>Tweener<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ExpandableBanner <span style="color: #0033ff; font-weight: bold;">extends</span> <span style="color: #004993;">Sprite</span>
	<span style="color: #000000;">&#123;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> ExpandableBanner<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">align</span> = <span style="color: #004993;">StageAlign</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">TOP_LEFT</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #004993;">stage</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">scaleMode</span> = <span style="color: #004993;">StageScaleMode</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">NO_SCALE</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//make the close button invisible</span>
			closeButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//add the hand cursor on the content MovieClip</span>
			theContent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">buttonMode</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//add event listener on the close button</span>
			closeButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> retractBanner<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #009900; font-style: italic;">//add event listener on the content MovieClip</span>
			theContent<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> expandBanner<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> expandBanner<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><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: #009900; font-style: italic;">//check if the close button is not visible and if ExternalInterface is available</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>closeButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> == <span style="color: #0033ff; font-weight: bold;">false</span> <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> <span style="color: #004993;">ExternalInterface</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">available</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #009900; font-style: italic;">//call the &quot;expand&quot; JS function</span>
				<span style="color: #004993;">ExternalInterface</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">call</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;expand&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">//expand the height of the mask</span>
				Tweener<span style="color: #000066; font-weight: bold;">.</span>addTween<span style="color: #000000;">&#40;</span>theMask<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#123;</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">240</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">time</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">//set visibility to true for the close button</span>
				closeButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> = <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> retractBanner<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><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: #009900; font-style: italic;">//check if the close button is visible and if ExternalInterface is available</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>closeButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> == <span style="color: #0033ff; font-weight: bold;">true</span> <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> <span style="color: #004993;">ExternalInterface</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">available</span><span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				<span style="color: #009900; font-style: italic;">//change the height of the mask back to 120px, when the tween is complete, call the function &quot;callRetract&quot;</span>
				Tweener<span style="color: #000066; font-weight: bold;">.</span>addTween<span style="color: #000000;">&#40;</span>theMask<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000;">&#123;</span><span style="color: #004993;">height</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #000000; font-weight:bold;">120</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">time</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> onComplete<span style="color: #000066; font-weight: bold;">:</span>callRetract<span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
				<span style="color: #009900; font-style: italic;">//make the close button invisible</span>
				closeButton<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">visible</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">protected</span> <span style="color: #339966; font-weight: bold;">function</span> callRetract<span style="color: #000000;">&#40;</span><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: #009900; font-style: italic;">//call the &quot;retract&quot; JS function</span>
			<span style="color: #004993;">ExternalInterface</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">call</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;retract&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

Note: There is a file embedded within this post, please visit this post to download the file.
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/using-externalinterface-and-js-to-make-an-expandable-flash-banner/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Greetings Card Flash Application</title>
		<link>http://vamapaull.com/greetings-card-flash-application/</link>
		<comments>http://vamapaull.com/greetings-card-flash-application/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 11:01:38 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Greetings Card]]></category>
		<category><![CDATA[Greetings Island]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Singleton pattern]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=734</guid>
		<description><![CDATA[I have worked on this application for a few months and now I see it’s finally implemented into greetingsisland.com. The project was for two Flash applications, Cards and Invitations, both very similar with very few different features. It lets you make your own greeting card and invitation design. It’s great looking and easy to use, [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.greetingsisland.com/prints/PrintPosting.aspx?card=Happy-birthday-confetti&amp;id=1305" target="_blank"><img class="size-full wp-image-767 aligncenter" title="Greetings Card Flash Application" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2012/04/greetings-card-flash-application-tool.jpg" width="606" height="680" /></a></p>
<p>I have worked on this application for a few months and now I see it’s finally implemented into <a title="Greetings Island" href="http://www.greetingsisland.com" target="_blank">greetingsisland.com</a>.</p>
<p>The project was for two Flash applications, <a title="Greetings Island" href="http://www.greetingsisland.com/Printables/Featured" target="_blank">Cards</a> and <a title="Greetings Island" href="http://www.greetingsisland.com/Invitations/Featured" target="_blank">Invitations</a>, both very similar with very few different features.</p>
<p>It lets you make your own greeting card and invitation design. It’s great looking and easy to use, especially for kids. After you’ve made the perfect greeting, you can either print it on your home printer or save it as a PDF file.</p>
<p>The development itself was demanding and very rewarding, as I got to use techniques like <a title="Singleton pattern" href="http://en.wikipedia.org/wiki/Singleton_pattern" target="_blank">singleton pattern</a>, I’ve used the Facebook API to retrieve photos from Facebook albums and I’ve learned some new coding styles from my friend Biro Barna.</p>
<p>Go on, check it out and let me know if you like it <img src='http://vamapaull.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/greetings-card-flash-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AlivePDF download and save to server</title>
		<link>http://vamapaull.com/alivepdf-download-and-save-to-server/</link>
		<comments>http://vamapaull.com/alivepdf-download-and-save-to-server/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 11:27:26 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[General Flash Stuff]]></category>
		<category><![CDATA[actionscript 3. as3]]></category>
		<category><![CDATA[Alive PDF]]></category>
		<category><![CDATA[AlivePDF]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[HTTP_RAW_POST_DATA]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[save to server]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=753</guid>
		<description><![CDATA[Today I found myself needing to implement AlivePDF into a project that needs to generate a PDF, save it on the server and download it to the user&#8217;s computer. Since I didn&#8217;t find any information about how to do this (and I found some other people trying to find out how it&#8217;s done) I thought [...]]]></description>
				<content:encoded><![CDATA[<p>Today I found myself needing to implement AlivePDF into a project that needs to generate a PDF, save it on the server and download it to the user&#8217;s computer.</p>
<p>Since I didn&#8217;t find any information about how to do this (and I found some other people trying to find out how it&#8217;s done) I thought I should give it a try. I posted the final result below if someone else needs to know how to both save the PDF file on the server and download it to the user&#8217;s computer.</p>
<p>ActionScript 3 AlivePDF code:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;">_pdf<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">save</span><span style="color: #000000;">&#40;</span>Method<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">REMOTE</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;save.php&quot;</span><span style="color: #000066; font-weight: bold;">,</span> Download<span style="color: #000066; font-weight: bold;">.</span>ATTACHMENT<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;MyFile.pdf&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>PHP code that will save the file on the server (inside a specified folder) and save it to the user&#8217;s computer too:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_RAW_POST_DATA&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pdf</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;HTTP_RAW_POST_DATA&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$name</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$save_to</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;pdf/&quot;</span><span style="color: #339933;">.</span> <span style="color: #000088;">$name</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">file_put_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$save_to</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pdf</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// add headers for download dialog-box</span>
	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Type: application/pdf'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-Length: '</span><span style="color: #339933;">.</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pdf</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Content-disposition:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$method</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'; filename=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$name</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$pdf</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Encoded PDF information not received.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/alivepdf-download-and-save-to-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Convert values within a range to values within another range</title>
		<link>http://vamapaull.com/convert-values-within-a-range-to-values-within-another-range/</link>
		<comments>http://vamapaull.com/convert-values-within-a-range-to-values-within-another-range/#comments</comments>
		<pubDate>Thu, 23 Feb 2012 12:09:37 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[General Flash Stuff]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[convertor]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[number]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[value]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=729</guid>
		<description><![CDATA[Today I&#8217;m sharing with you a little utility that I find myself using a lot lately. This utility is a value convertor that you can use in those times when you need to make a volume slider or something similar where you&#8217;ll need to change a value and a value range. package com.vamapaull.utils &#123; public [...]]]></description>
				<content:encoded><![CDATA[<p>Today I&#8217;m sharing with you a little utility that I find myself using a lot lately. This utility is a value convertor that you can use in those times when you need to make a volume slider or something similar where you&#8217;ll need to change a value and a value range.</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>vamapaull<span style="color: #000066; font-weight: bold;">.</span>utils
<span style="color: #000000;">&#123;</span>	
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ValueConvertor
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #339966; font-weight: bold;">function</span> convertRange<span style="color: #000000;">&#40;</span>originalStart<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
							originalEnd<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
							newStart<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
							newEnd<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000066; font-weight: bold;">,</span> 
							<span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> originalRange<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = originalEnd <span style="color: #000066; font-weight: bold;">-</span> originalStart<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> newRange<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = newEnd <span style="color: #000066; font-weight: bold;">-</span> newStart<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> ratio<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = newRange <span style="color: #000066; font-weight: bold;">/</span> originalRange<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> newValue<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #004993;">value</span> <span style="color: #000066; font-weight: bold;">*</span> ratio<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> finalValue<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = newValue <span style="color: #000066; font-weight: bold;">+</span> newStart<span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #0033ff; font-weight: bold;">return</span> finalValue<span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/convert-values-within-a-range-to-values-within-another-range/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Control a Flash Game with your iPhone</title>
		<link>http://vamapaull.com/control-a-flash-game-with-your-iphone/</link>
		<comments>http://vamapaull.com/control-a-flash-game-with-your-iphone/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 13:33:45 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[General Flash Stuff]]></category>
		<category><![CDATA[arcade]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[entertainment]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash platform]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mammoot]]></category>
		<category><![CDATA[oldschool]]></category>
		<category><![CDATA[Science & Technology · Tagged: adobe flash]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[ufo]]></category>
		<category><![CDATA[websockets]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=722</guid>
		<description><![CDATA[Some programmers from Germany developed a great Flash game that uses your iPhone/iPod Touch to control the game actions. The concept is very interesting and I could see this being applied on lots of old-school arcade games that are ported to Flash. After learning about WebSockets we were eager to build a website around this [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.ufomammoot.de/" target="_blank"><img class="size-medium wp-image-730 aligncenter" title="mammoot-control-ufomammoot.de" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2012/02/mammoot-control-ufomammoot.de_-600x354.jpg" width="600" height="354" /></a></p>
<p>Some programmers from Germany developed a great Flash game that uses your iPhone/iPod Touch to control the game actions.</p>
<p>The concept is very interesting and I could see this being applied on lots of old-school arcade games that are ported to Flash.</p>
<blockquote><p>After learning about WebSockets we were eager to build a website around this technology. As we are a bunch of oldschool nerds it was obvious to transform the iPhone into a gamepad controlling a Flash Website.</p></blockquote>
<p>Source: <a title="Weekend Content" href="http://www.weekendcontent.com/control-flash-game-with-your-iphone/" target="_blank">WeekendContent.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/control-a-flash-game-with-your-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Timecode Utility</title>
		<link>http://vamapaull.com/timecode-utility/</link>
		<comments>http://vamapaull.com/timecode-utility/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 13:44:00 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[minutes]]></category>
		<category><![CDATA[seconds]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[timecode]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=696</guid>
		<description><![CDATA[Today I&#8217;m sharing simple utility that I use from time to time when I need to convert time (see what I did there? ) It&#8217;s very useful if you build a FLV player for example, and want to convert the time into minutes:seconds Example of how to apply it to your project: import com.vamapaull.utils.TimeUtil; &#160; [...]]]></description>
				<content:encoded><![CDATA[<p>Today I&#8217;m sharing simple utility that I use from time to time when I need to convert time (see what I did there? <img src='http://vamapaull.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )<br />
It&#8217;s very useful if you build a FLV player for example, and want to convert the time into minutes:seconds</p>
<p>Example of how to apply it to your project:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">import</span> com<span style="color: #000066; font-weight: bold;">.</span>vamapaull<span style="color: #000066; font-weight: bold;">.</span>utils<span style="color: #000066; font-weight: bold;">.</span>TimeUtil<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #004993;">time</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = TimeUtil<span style="color: #000066; font-weight: bold;">.</span>getTimecode<span style="color: #000000;">&#40;</span>timeValue<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></td></tr></table></div>

<p>Results:<br />
<img class="size-full wp-image-716 aligncenter" title="timecode-time-actionscript-utility" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2011/12/timecode-time-actionscript-utility.jpg" width="590" height="50" /></p>
<p>The ActionScript class:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span> com<span style="color: #000066; font-weight: bold;">.</span>vamapaull<span style="color: #000066; font-weight: bold;">.</span>utils
<span style="color: #000000;">&#123;</span>
    <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> TimeUtil
    <span style="color: #000000;">&#123;</span>
        <span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #339966; font-weight: bold;">function</span> getTimecode<span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #6699cc; font-weight: bold;">var</span> t<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span>    = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">value</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span>
                <span style="color: #004993;">min</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span>  = <span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">floor</span><span style="color: #000000;">&#40;</span>t<span style="color: #000066; font-weight: bold;">/</span><span style="color: #000000; font-weight:bold;">60</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span>
                sec<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span>  = t<span style="color: #000066; font-weight: bold;">%</span>60<span style="color: #000066; font-weight: bold;">,</span>
                tc<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">String</span>   = <span style="color: #990000;">&quot;&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
            <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">min</span> <span style="color: #000066; font-weight: bold;">&amp;</span>lt<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span>                  tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;0&quot;</span><span style="color: #000066; font-weight: bold;">;</span>                          <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">min</span> <span style="color: #000066; font-weight: bold;">&amp;</span>gt<span style="color: #000066; font-weight: bold;">;</span>= <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">isNaN</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">min</span><span style="color: #000000;">&#41;</span> == <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span> tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;0&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
                <span style="color: #0033ff; font-weight: bold;">else</span> tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #004993;">min</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0033ff; font-weight: bold;">else</span> 
                tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;0&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
            tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;:&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
            <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>sec <span style="color: #000066; font-weight: bold;">&amp;</span>lt<span style="color: #000066; font-weight: bold;">;</span> <span style="color: #000000; font-weight:bold;">10</span><span style="color: #000000;">&#41;</span> 
            <span style="color: #000000;">&#123;</span>
                tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;0&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
                <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">isNaN</span><span style="color: #000000;">&#40;</span>sec<span style="color: #000000;">&#41;</span> == <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span> tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;0&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
                <span style="color: #0033ff; font-weight: bold;">else</span> tc <span style="color: #000066; font-weight: bold;">+</span>= sec<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            <span style="color: #000000;">&#125;</span>
            <span style="color: #0033ff; font-weight: bold;">else</span> 
            <span style="color: #000000;">&#123;</span>
                <span style="color: #0033ff; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #004993;">isNaN</span><span style="color: #000000;">&#40;</span>sec<span style="color: #000000;">&#41;</span> == <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span> tc <span style="color: #000066; font-weight: bold;">+</span>= <span style="color: #990000;">&quot;0&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
                <span style="color: #0033ff; font-weight: bold;">else</span> tc <span style="color: #000066; font-weight: bold;">+</span>= sec<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
            <span style="color: #000000;">&#125;</span>
&nbsp;
            <span style="color: #0033ff; font-weight: bold;">return</span> tc<span style="color: #000066; font-weight: bold;">;</span>
        <span style="color: #000000;">&#125;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/timecode-utility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image and Video Slideshow</title>
		<link>http://vamapaull.com/image-and-video-slideshow/</link>
		<comments>http://vamapaull.com/image-and-video-slideshow/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 17:39:27 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[autoplay]]></category>
		<category><![CDATA[banner]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[Player]]></category>
		<category><![CDATA[playlist]]></category>
		<category><![CDATA[rotating]]></category>
		<category><![CDATA[rotator]]></category>
		<category><![CDATA[show]]></category>
		<category><![CDATA[slide]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vimeo]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=693</guid>
		<description><![CDATA[Just uploaded a new project to ActiveDen. This is a slideshow that will let you display images and play videos. You can play video from YouTube, Vimeo or your FLV, F4V, MP4 files. It can load JPG, SWF and PNG files. If you want to buy it, please check the image below]]></description>
				<content:encoded><![CDATA[<p>Just uploaded a new project to <a href="http://activeden.net?ref=vamapaull" target="_blank">ActiveDen</a>. This is a slideshow that will let you display images and play videos.</p>
<p>You can play video from YouTube, Vimeo or your FLV, F4V, MP4 files.<br />
It can load JPG, SWF and PNG files.</p>
<p>If you want to buy it, please check the image below <img src='http://vamapaull.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://activeden.net/item/image-and-video-slideshow/1052232?ref=vamapaull" target="_blank"><img class="size-full wp-image-694 aligncenter" title="Image and Video Slideshow" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2011/12/Image-and-Video-Slideshow.jpg" width="590" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/image-and-video-slideshow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Device Shake &#8211; Accelerometer</title>
		<link>http://vamapaull.com/device-shake-accelerometer/</link>
		<comments>http://vamapaull.com/device-shake-accelerometer/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 22:20:21 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[accelerometer]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[device]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[shake]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=671</guid>
		<description><![CDATA[Here you have an easy way to detect shakes on mobile devices with equipped accelerometer: var lastShake:Number = 0; var shakeWait:Number = 600; &#160; var acc:Accelerometer = new Accelerometer&#40;&#41;; acc.addEventListener&#40;AccelerometerEvent.UPDATE, onAccUpdate&#41;; &#160; function onAccUpdate&#40;e:AccelerometerEvent&#41;:void &#123; if&#40;getTimer&#40;&#41; - lastShake &#62; shakeWait &#38;&#38; &#40;e.accelerationX &#62;= 1.5 &#124;&#124; e.accelerationY &#62;= 1.5 &#124;&#124; e.accelerationZ &#62;= 1.5&#41;&#41; &#123; shakeIt&#40;&#41;; lastShake [...]]]></description>
				<content:encoded><![CDATA[<p>Here you have an easy way to detect shakes on mobile devices with equipped accelerometer:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> lastShake<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> shakeWait<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">600</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #6699cc; font-weight: bold;">var</span> acc<span style="color: #000066; font-weight: bold;">:</span>Accelerometer = <span style="color: #0033ff; font-weight: bold;">new</span> Accelerometer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
acc<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span>AccelerometerEvent<span style="color: #000066; font-weight: bold;">.</span>UPDATE<span style="color: #000066; font-weight: bold;">,</span> onAccUpdate<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> onAccUpdate<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span>AccelerometerEvent<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: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">getTimer</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">-</span> lastShake <span style="color: #000066; font-weight: bold;">&gt;</span> shakeWait <span style="color: #000066; font-weight: bold;">&amp;&amp;</span> 
			<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">.</span>accelerationX <span style="color: #000066; font-weight: bold;">&gt;</span>= <span style="color: #000000; font-weight:bold;">1.5</span> 
			<span style="color: #000066; font-weight: bold;">||</span> e<span style="color: #000066; font-weight: bold;">.</span>accelerationY <span style="color: #000066; font-weight: bold;">&gt;</span>= <span style="color: #000000; font-weight:bold;">1.5</span> 
			<span style="color: #000066; font-weight: bold;">||</span> e<span style="color: #000066; font-weight: bold;">.</span>accelerationZ <span style="color: #000066; font-weight: bold;">&gt;</span>= <span style="color: #000000; font-weight:bold;">1.5</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
		shakeIt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		lastShake = <span style="color: #004993;">getTimer</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #339966; font-weight: bold;">function</span> shakeIt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;device has been shaked&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/device-shake-accelerometer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For those who say Flash is dying</title>
		<link>http://vamapaull.com/for-those-who-say-flash-is-dying/</link>
		<comments>http://vamapaull.com/for-those-who-say-flash-is-dying/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 22:44:15 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[General Flash Stuff]]></category>
		<category><![CDATA[death]]></category>
		<category><![CDATA[dying]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=669</guid>
		<description><![CDATA[I started with Flash 5 and many people said Flash will never be good enough and after that I&#8217;ve heard many people saying Flash is dying. A very small part of the dying statement is true. I believe the market is saturated with Flash portfolios / photo galleries / video players, but Flash is not [...]]]></description>
				<content:encoded><![CDATA[<p>I started with Flash 5 and many people said Flash will never be good enough and after that I&#8217;ve heard many people saying Flash is dying. </p>
<p>A very small part of the dying statement is true.<br />
I believe the market is saturated with Flash portfolios / photo galleries / video players, but Flash is not only that. </p>
<p>I hear many developers who are doing just that and who are complaining about it. </p>
<p>My response is: Try something new! Stop doing the same video/photo galleries every single time and start experiment with different things. The Flash environment has a lot to offer, you don&#8217;t need to limit yourself only to galleries and video players.</p>
<p>A lot of those who complain are the stock Flash developers (the ones who sell stuff on <a href="http://tinyurl.com/2vkx68w">ActiveDen</a> and similar marketplaces).<br />
Those people need to understand that any market gets saturated and not all the Flash developers are selling stock files and have a living doing so.</p>
<p>Flash may not be the perfect environment and AcionScript may not be the perfect programming language but I believe a lot of good things can come from Flash if you know how to take advantage of it.</p>
<p>And no, the iPad dose not bring the death of Flash. Not everyone sits on the can to surf the web. And Flash is not limited only to the web.</p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/for-those-who-say-flash-is-dying/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paul Calver&#8217;s portfolio website</title>
		<link>http://vamapaull.com/paul-calvers-portfolio-website/</link>
		<comments>http://vamapaull.com/paul-calvers-portfolio-website/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 12:51:57 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[calver]]></category>
		<category><![CDATA[paul]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[slideshow]]></category>
		<category><![CDATA[slideshowpro]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=664</guid>
		<description><![CDATA[A few weeks ago I started working on some updates for a photography website. The project started a bit slow, but after I managed to get every information from the client I managed to understand what&#8217;s needed to be done in order to complete it. This project uses SlideShow PRO (at the request of my [...]]]></description>
				<content:encoded><![CDATA[<p>A few weeks ago I started working on some updates for a photography website. The project started a bit slow, but after I managed to get every information from the client I managed to understand what&#8217;s needed to be done in order to complete it. This project uses <a title="SlideShow PRO" href="http://slideshowpro.net/" target="_blank">SlideShow PRO</a> (at the request of my client) and <a title="SlideShow PRO Director " href="http://slideshowpro.net/products/slideshowpro_director/" target="_blank">SlideShow PRO Director</a> for <a title="CMS" href="http://en.wikipedia.org/wiki/Content_management_system" target="_blank">CMS</a>. I like the final result and that&#8217;s why I wrote about this website. Enjoy <img src='http://vamapaull.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<a title="Paul Calver Portfolio" href="http://www.calverphoto.com" target="_blank"><img class="size-medium wp-image-665 aligncenter" title="paul-calver" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2011/07/paul-calver-600x417.jpg" width="600" height="417" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/paul-calvers-portfolio-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What I&#8217;ve been up to lately</title>
		<link>http://vamapaull.com/what-ive-been-up-to-lately/</link>
		<comments>http://vamapaull.com/what-ive-been-up-to-lately/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 19:19:30 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[barna]]></category>
		<category><![CDATA[biro]]></category>
		<category><![CDATA[flash builder]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[ringtone]]></category>
		<category><![CDATA[to]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[up]]></category>
		<category><![CDATA[what]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=645</guid>
		<description><![CDATA[Lately I&#8217;ve been working on a lot of projects, one of them being this audio tool. This is my first Flex (aka. Flash Builder) project and it was delivered with big help from my partner Biro Barna. The tool is made to let people create their own ringtones. You can simply upload any MP3 file [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.free-ringtones.cc/make-ringtone/" target="_blank"><img src="http://blog.vamapaull.com/wp-content/uploads/2011/03/600x380-150x150.jpg" alt="" width="150" height="150" class="alignleft size-thumbnail wp-image-648" /></a></p>
<p>Lately I&#8217;ve been working on a lot of projects, one of them being this audio tool. This is my first Flex (aka. Flash Builder) project and it was delivered with big help from my partner Biro Barna.</p>
<p>The tool is made to let people create their own ringtones. You can simply upload any MP3 file and cut it up to 30 seconds, add fade in / fade out if you want and then give it a name and save it. Then a new page will let you download the ringtone in iPhone format or MP3 format.</p>
<p>I&#8217;m in the process of remaking my portfolio site. When it&#8217;s done I will post more of my projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/what-ive-been-up-to-lately/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Darth Vader &#8220;no&#8221; button</title>
		<link>http://vamapaull.com/darth-vader-no-button/</link>
		<comments>http://vamapaull.com/darth-vader-no-button/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 11:50:57 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[darth vader]]></category>
		<category><![CDATA[episode III]]></category>
		<category><![CDATA[no]]></category>
		<category><![CDATA[Revenge of the Sith]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[star wars]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=634</guid>
		<description><![CDATA[Last night I published my first application on the Android market. It&#8217;s just a cool button that plays the famous &#8220;noooo&#8221; scream made by Darth Vader in Star Wars: Episode III &#8211; Revenge of the Sith. Enjoy!]]></description>
				<content:encoded><![CDATA[<p>Last night I published my first application on the <a href="http://market.android.com" target="_blank">Android market</a>. It&#8217;s just a cool button that plays the famous &#8220;noooo&#8221; scream made by Darth Vader in Star Wars: Episode III &#8211; Revenge of the Sith.</p>
<p><img class="size-full wp-image-639 aligncenter" title="chart" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2011/02/chart.png" width="150" height="150" /></p>
<p><a href="https://play.google.com/store/apps/details?id=air.DarthVader&amp;feature=search_result#?t=W251bGwsMSwxLDEsImFpci5EYXJ0aFZhZGVyIl0." target="_blank"><img class="aligncenter" title="Darth Vader" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2011/02/screen.jpg" width="288" height="480" /></a></p>
<p style="text-align: center;">Enjoy! <img src='http://vamapaull.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/darth-vader-no-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First encounter with AIR for Android</title>
		<link>http://vamapaull.com/first-encounter-with-air-for-android/</link>
		<comments>http://vamapaull.com/first-encounter-with-air-for-android/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 17:44:25 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[air]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[AS 3]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=594</guid>
		<description><![CDATA[Today I made some experiments with AIR for Android. The process was very smooth and I like how simple everything is, in just a few minutes I managed to compile an application and play with it on my Android device. Totally love the way that I can reuse the ActionScript 3 code and make beautiful [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://blog.vamapaull.com/?p=594"><img class="size-full wp-image-621 aligncenter" title="samsung-galaxy-s-android-phone-600px" alt="" src="http://blog.vamapaull.com/wp-content/uploads/2011/02/samsung-galaxy-s-android-phone-600px.jpg" width="600" height="400" /></a></p>
<p>Today I made some experiments with AIR for Android. The process was very smooth and I like how simple everything is, in just a few minutes I managed to compile an application and play with it on my Android device. Totally love the way that I can reuse the ActionScript 3 code and make beautiful applications for Android!</p>
<p>Not so many good words about the <a href="http://developer.android.com/index.html" target="_blank">Android Market</a>. I started an account, then I was asked to pay a fee of $25 and then when my account was created I noticed that I can&#8217;t really make paid applications for the Android market since <a href="http://checkout.google.com" target="_blank">Google Checkout</a> is not available in Romania. How messed up is that? You want people to develop applications for your marketplace, you request a fee and then they have no way to at least get some of that money back. It&#8217;s not that I can&#8217;t live without 25 bucks, but that really sucks, I feel like I&#8217;m giving them money so I can develop for their marketplace and help it grow a little more (so they can earn even more money). I love Flash related technologies and Android, but this doesn&#8217;t have any logic.</p>
<p>Anyway, I tried to implement <a href="http://activeden.net/item/youtube-playlist-reader/97090?ref=vamapaull" target="_blank">an older youtube player</a> into my AIR application so I can test it out and see how it works. The problem was that when I played a video and hit the hardware back button on my device, the video was still playing because the application minimized instead of closing (as I imagined it would). Then I started to search for a solution, and sure enough, I found it very fast on <a href="http://www.flashrealtime.com/tip-close-your-android-air-app-on-back-button/" target="_blank">Tom Krcha&#8217;s</a> blog. To close the button when you hit the back button you first need to register a handler:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">Capabilities</span><span style="color: #000066; font-weight: bold;">.</span>cpuArchitecture==<span style="color: #990000;">&quot;ARM&quot;</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	NativeApplication<span style="color: #000066; font-weight: bold;">.</span>nativeApplication<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">KeyboardEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">KEY_DOWN</span><span style="color: #000066; font-weight: bold;">,</span> handleKeys<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Then you need to make the function for that handler:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #339966; font-weight: bold;">function</span> handleKeys<span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">KeyboardEvent</span><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: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>event<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">keyCode</span> == <span style="color: #004993;">Keyboard</span><span style="color: #000066; font-weight: bold;">.</span>BACK<span style="color: #000000;">&#41;</span>
	NativeApplication<span style="color: #000066; font-weight: bold;">.</span>nativeApplication<span style="color: #000066; font-weight: bold;">.</span>exit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>That&#8217;s it. I will continue to work with AIR for Android and hopefully make some cool apps <img src='http://vamapaull.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/first-encounter-with-air-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is amazing! 3D Flash Game with P2P Multiplayer</title>
		<link>http://vamapaull.com/this-is-amazing-3d-flash-game-with-p2p-multiplayer/</link>
		<comments>http://vamapaull.com/this-is-amazing-3d-flash-game-with-p2p-multiplayer/#comments</comments>
		<pubDate>Mon, 01 Nov 2010 16:04:46 +0000</pubDate>
		<dc:creator>vamapaull</dc:creator>
				<category><![CDATA[General Flash Stuff]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[amazing]]></category>
		<category><![CDATA[car]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[multiplayer]]></category>
		<category><![CDATA[p2p]]></category>
		<category><![CDATA[Player]]></category>

		<guid isPermaLink="false">http://blog.vamapaull.com/?p=545</guid>
		<description><![CDATA[I have to say, a Multiplayer 3D Game running in Flash Player is really exciting! The future of gaming will change from now on. Take a look and tell me what you think]]></description>
				<content:encoded><![CDATA[<p>I have to say, a Multiplayer 3D Game running in Flash Player is really exciting!<br />
The future of gaming will change from now on. Take a look and tell me what you think <img src='http://vamapaull.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://vamapaull.com/this-is-amazing-3d-flash-game-with-p2p-multiplayer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
