<?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"
	>

<channel>
	<title>Flash Goblin</title>
	<atom:link href="http://www.flashgoblin.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.flashgoblin.com</link>
	<description>Adobe Flash Tutorials</description>
	<pubDate>Sat, 24 Jul 2010 04:59:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Free Text-to-Speech in Flash</title>
		<link>http://www.flashgoblin.com/?p=26</link>
		<comments>http://www.flashgoblin.com/?p=26#comments</comments>
		<pubDate>Sat, 24 Jul 2010 04:59:13 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Technologies]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=26</guid>
		<description><![CDATA[There are several text-to-speech packages out there. But thanks to Google Translate, you can create a sort of "poor-man's" text-to-speech application in Flash. The method is a simple query string to the Google Translate service, which returns an MP3. Simply load that Mp3 into Flash, and voilà. The draw backs are that you only get [...]]]></description>
			<content:encoded><![CDATA[<p>There are several text-to-speech packages out there. But thanks to <a href="http://translate.google.com">Google Translate</a>, you can create a sort of "poor-man's" text-to-speech application in Flash. The method is a simple query string to the Google Translate service, which returns an MP3. Simply load that Mp3 into Flash, and voilà. The draw backs are that you only get on voice (although you can choose different languages which use an alternate accents) and you have a limit of 100 characters.</p>
<p>Check out the example and source code below.</p>

<object	type="application/x-shockwave-flash"
			data="http://www.flashgoblin.com/wp-content/uploads/2010/07/GoogleTTS.swf"
			width="400"
			height="250">
	<param name="movie" value="http://www.flashgoblin.com/wp-content/uploads/2010/07/GoogleTTS.swf" />
</object>
<pre class="actionscript"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">media</span>.<span style="color: #0066CC;">Sound</span>;
<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;
<span style="color: #0066CC;">import</span> fl.<span style="color: #006600;">controls</span>.<span style="color: #0066CC;">Button</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">// stage instances</span>
<span style="color: #000000; font-weight: bold;">var</span> input_txt:<span style="color: #0066CC;">TextField</span>;
<span style="color: #000000; font-weight: bold;">var</span> speak_btn:<span style="color: #0066CC;">Button</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> speech:<span style="color: #0066CC;">Sound</span>;
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">url</span>:<span style="color: #0066CC;">String</span> = <span style="color: #ff0000;">&quot;http://translate.google.com/translate_tts?q=&quot;</span>;
&nbsp;
input_txt.<span style="color: #0066CC;">maxChars</span> = <span style="color: #cc66cc;">100</span>;
speak_btn.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, handleClick<span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> handleClick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
     speech= <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Sound</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
     speech.<span style="color: #0066CC;">load</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> URLRequest<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">url</span> + input_txt.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
     speech.<span style="color: #0066CC;">play</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=26</wfw:commentRss>
		</item>
		<item>
		<title>Reading Flash Alliance</title>
		<link>http://www.flashgoblin.com/?p=25</link>
		<comments>http://www.flashgoblin.com/?p=25#comments</comments>
		<pubDate>Wed, 02 Jun 2010 02:22:43 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[News]]></category>

		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=25</guid>
		<description><![CDATA[Attention all Flash developers in the Reading, Pa area!!!
Be sure to check out the new Adobe Flash User Group in Reading. The Reading Flash Alliance is a group of Flash talent made up of local firms and freelancers who share ideas, knowledge, and talk shop. They are having a meeting next month and are giving [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Attention all Flash developers in the Reading, Pa area!!!</strong></p>
<p>Be sure to check out the new Adobe Flash User Group in Reading. The Reading Flash Alliance is a group of Flash talent made up of local firms and freelancers who share ideas, knowledge, and talk shop. They are having a <a href="http://www.readingflashalliance.com/2010/05/27/june-alliance-meeting/" target="_blank">meeting</a> next month and are giving away some prizes including a copy of Creative Suite 5. Pretty sick.</p>
<p>Go check 'em out. <a href="http://www.readingflashalliance.com" target="_blank">www.readingflashalliance.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=25</wfw:commentRss>
		</item>
		<item>
		<title>My 2010 Resolution Fail</title>
		<link>http://www.flashgoblin.com/?p=24</link>
		<comments>http://www.flashgoblin.com/?p=24#comments</comments>
		<pubDate>Tue, 18 May 2010 00:10:52 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[2010 Resolution]]></category>

		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Training]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=24</guid>
		<description><![CDATA[Ok so, in the beginning of 2010 I made a New Years resolution that I would learn one new thing each week and blog about it. Like most resolutions, it went for three weeks and then failed miserably. Now I would normally look at this as a failed attempt to commit to learning. However, the [...]]]></description>
			<content:encoded><![CDATA[<p>Ok so, in the beginning of 2010 I made a New Years resolution that I would learn one new thing each week and blog about it. Like most resolutions, it went for three weeks and then failed miserably. Now I would normally look at this as a failed attempt to commit to learning. However, the reason that I'm not able to keep up with this is because I am just too damn busy. I'm 6 months into my new job at <a href="http://www.neo-pangea.com/neo-pangea.php">Neo-Pangea</a>, and loving it. We are developing some really awesome Flash applications that push the limits and are just down right bitchin'. So it goes without saying that I "am" learning more and more as we continue to kick ass for our clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=24</wfw:commentRss>
		</item>
		<item>
		<title>I Agree</title>
		<link>http://www.flashgoblin.com/?p=23</link>
		<comments>http://www.flashgoblin.com/?p=23#comments</comments>
		<pubDate>Mon, 17 May 2010 20:39:14 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[News]]></category>

		<category><![CDATA[Technologies]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=23</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.adobe.com/choice/"><img src="http://wwwimages.adobe.com/www.adobe.com/choice/images/marquee_792x200.jpg" alt="" width="408" height="103" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=23</wfw:commentRss>
		</item>
		<item>
		<title>Hulk Yourself</title>
		<link>http://www.flashgoblin.com/?p=22</link>
		<comments>http://www.flashgoblin.com/?p=22#comments</comments>
		<pubDate>Tue, 09 Feb 2010 07:28:50 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[2010 Resolution]]></category>

		<category><![CDATA[BitmapData]]></category>

		<category><![CDATA[Camera]]></category>

		<category><![CDATA[FileReference]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=22</guid>
		<description><![CDATA[This is part of my 2010 resolution of learning something new each week. I've been playing around with using ActionScript's BitmapData and FileReference classes.
Use your webcam to position yourself in the frame. Then you can save an image to your hard drive. I still need to tweak some things, like adding controls to adjust the [...]]]></description>
			<content:encoded><![CDATA[<p>This is part of my 2010 resolution of learning something new each week. I've been playing around with using ActionScript's BitmapData and FileReference classes.</p>
<p>Use your webcam to position yourself in the frame. Then you can save an image to your hard drive. I still need to tweak some things, like adding controls to adjust the brightness. Press the "BEGIN" button to Hulk Yourself.</p>

<object	type="application/x-shockwave-flash"
			data="http://www.flashgoblin.com/wp-content/uploads/2010/02/HulkYourself.swf"
			width="490"
			height="460">
	<param name="movie" value="http://www.flashgoblin.com/wp-content/uploads/2010/02/HulkYourself.swf" />
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=22</wfw:commentRss>
		</item>
		<item>
		<title>Flash Resolution-Week 3: Google Maps API + iPhone GPS Tracking</title>
		<link>http://www.flashgoblin.com/?p=21</link>
		<comments>http://www.flashgoblin.com/?p=21#comments</comments>
		<pubDate>Wed, 20 Jan 2010 02:58:18 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[2010 Resolution]]></category>

		<category><![CDATA[Technologies]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=21</guid>
		<description><![CDATA[To build on my previous post about the Google Maps ActionScript API, I wanted to track the position of my iPhone in real time. I came across the site instamapper.com. After creating a free account with Instamapper and downloading their iPhone app from the Apple App Store, I was tracking my phone in no time. [...]]]></description>
			<content:encoded><![CDATA[<p>To build on my previous post about the Google Maps ActionScript API, I wanted to track the position of my iPhone in real time. I came across the site <a href="http://www.instamapper.com">instamapper.com</a>. After creating a free account with Instamapper and downloading their iPhone app from the Apple App Store, I was tracking my phone in no time. They have prebuilt maps that you can embed on your blog and even a Facebook application.  Although I wanted to use my own map so I can have more control over the map. Instamapper has a simple little API that you can use to retrieve your information. A http call returns a string of all the data about your phone's location.  Using a URLLoader to load in the request (<a href="http://www.instamapper.com/api?action=getPositions&amp;key=584014439054448247">http://www.instamapper.com/api?action=getPositions&amp;key=584014439054448247</a>) returns the data:</p>
<pre>InstaMapper API v1.00
0071543339995,Demo car,1209252615,47.58822,-122.17969,25.0,27.7,349</pre>
<p>The format of each record (seporated by commas) is as follows:</p>
<ol>
<li>Device key</li>
<li>Device label</li>
<li>Position timestamp in UTC (number of seconds since January 1, 1970)</li>
<li>Latitude</li>
<li>Longitude</li>
<li>Altitude in meters</li>
<li>Speed in meters / second</li>
<li>Heading in degree</li>
</ol>
<p>So using a split() method on the returned string, I could just parse the latitude and longitude coordinates and sent them to my Google map object.  Here is a screen shot of my application. The only problem is that instamapper.com does not (yet) have a cross domain policy, which is not allowing the SWF on my server to access instamapper's server. Though it works just fine when run locally. So for now, this is just a proof of concept.</p>
<p><img src="http://www.flashgoblin.com/wp-content/uploads/2010/01/iPhoneTracker.jpg" alt="" width="470" height="400" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=21</wfw:commentRss>
		</item>
		<item>
		<title>Flash Resolution-Week 2: Google Maps API</title>
		<link>http://www.flashgoblin.com/?p=20</link>
		<comments>http://www.flashgoblin.com/?p=20#comments</comments>
		<pubDate>Thu, 14 Jan 2010 05:47:47 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[2010 Resolution]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=20</guid>
		<description><![CDATA[Incorporating Google Maps within Flash is one of those things that I always wanted to look into, but just never really had the time. Well it turns out that I actually did have the time, due to the fact that it only took me 10 minutes until I had a working example. I followed this [...]]]></description>
			<content:encoded><![CDATA[<p>Incorporating Google Maps within Flash is one of those things that I always wanted to look into, but just never really had the time. Well it turns out that I actually did have the time, due to the fact that it only took me 10 minutes until I had a working example. I followed <a href="http://www.layersmagazine.com/integrate-google-maps-into-flash-cs4.html">this tutorial</a> from <a href="http://www.layersmagazine.com">www.layersmagazine.com</a>.</p>
<p>So in my example I simply mapped Mikey's house from The Goonies and inserted the Goonies logo. Yes, I am a little geeky that way. And if you don't like The Goonies please leave this site now. Just kidding.</p>
<p><img src="http://www.thoughtsunveiled.com/serendipity/uploads/locations48.jpg" alt="" width="268" height="150" /></p>

<object	type="application/x-shockwave-flash"
			data="http://www.flashgoblin.com/wp-content/uploads/2010/01/GooniesHouse.swf"
			width="470"
			height="400">
	<param name="movie" value="http://www.flashgoblin.com/wp-content/uploads/2010/01/GooniesHouse.swf" />
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=20</wfw:commentRss>
		</item>
		<item>
		<title>Flash Resolution-Week 1: BitmapData &#038; Trigonometry</title>
		<link>http://www.flashgoblin.com/?p=18</link>
		<comments>http://www.flashgoblin.com/?p=18#comments</comments>
		<pubDate>Fri, 08 Jan 2010 11:59:35 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[2010 Resolution]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=18</guid>
		<description><![CDATA[A couple of areas that I'm trying to improve in are BitmapData and Trigonometry. Trig is really useful in Flash for working with angles and BitmapData can give some pretty cool effects.
I started this example by making a MovieClip rotate around a center point. I know I could have used TweenMax to rotate around a [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of areas that I'm trying to improve in are BitmapData and Trigonometry. Trig is really useful in Flash for working with angles and BitmapData can give some pretty cool effects.</p>
<p>I started this example by making a MovieClip rotate around a center point. I know I could have used <a href="http://www.greensock.com/tweenmax/">TweenMax</a> to rotate around a center point, but the idea here is to do the math, remember? Here are some posts I referenced. <a href="http://www.kirupa.com/developer/actionscript/trigonometry.htm">Kirupa</a>, <a href="http://www.actionscript.org/resources/articles/155/1/trigonometry-and-flash/Page1.html">ActionScript.org</a>.</p>
<p><img src="http://www.kirupa.com/developer/actionscript/images/sineandcosine.gif" alt="" width="175" height="175" /><br />
<img src="http://www.actionscript.org/resources/content_images/76/images/sine_tan_cos.gif" alt="" width="471" height="312" /></p>
<p>After I got the MovieClip rotating, I decided to use it to create some interesting effects with BitmapData. I simply referenced the <a href="http://help.adobe.com/en_US/AS3LCR/Flash_10.0/index.html">ActionScript 3.0 Language Reference</a> for this.</p>
<p>[<strong>Move your mouse</strong> around the stage. The closer you get to the center cross hair, the smaller the ball's radius gets. <strong>Click and drag</strong> your mouse to draw lines from the center.]<br />

<object	type="application/x-shockwave-flash"
			data="http://www.flashgoblin.com/wp-content/uploads/2010/01/LineBlur.swf"
			width="465"
			height="250">
	<param name="movie" value="http://www.flashgoblin.com/wp-content/uploads/2010/01/LineBlur.swf" />
</object>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=18</wfw:commentRss>
		</item>
		<item>
		<title>My 2010 Flash Resolution</title>
		<link>http://www.flashgoblin.com/?p=17</link>
		<comments>http://www.flashgoblin.com/?p=17#comments</comments>
		<pubDate>Mon, 04 Jan 2010 22:07:09 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[2010 Resolution]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=17</guid>
		<description><![CDATA[For a while I have been wanting to focus on the areas of Flash where I am weakest. So what better way to step up my game than to make a New Year's resolution.
My resolution:
Once a week I will learn something new and post a blog entry about it here. I don't claim that I [...]]]></description>
			<content:encoded><![CDATA[<p>For a while I have been wanting to focus on the areas of Flash where I am weakest. So what better way to step up my game than to make a New Year's resolution.</p>
<p><strong>My resolution:</strong><br />
Once a week I will learn something new and post a blog entry about it here. I don't claim that I will be doing any mind-blowing or uncharted discoveries or anything, but this will be an area where I will document my process. I hope it will help others who aren't familiar with some of these concepts, but it's mostly for me to keep tabs on myself.</p>
<p>We'll see how I do...</p>
<p><img src="http://www.offthemarkcartoons.com/cartoons/2009-01-01.gif" alt="" width="240" height="320" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=17</wfw:commentRss>
		</item>
		<item>
		<title>Switching to a Mac, and Switching ActionScript Editors</title>
		<link>http://www.flashgoblin.com/?p=16</link>
		<comments>http://www.flashgoblin.com/?p=16#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:54:51 +0000</pubDate>
		<dc:creator>Shane</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.flashgoblin.com/?p=16</guid>
		<description><![CDATA[I recently purchased a new MacBook Pro that replaces my primary Dell desktop. But now that I'm on a Mac, I am no longer able to use Flash Develop as my ActionScript editor since its developed in .NET. So I've turned to Flex Builder 3 as my ActionScript editor of choice. It is a really [...]]]></description>
			<content:encoded><![CDATA[<p>I recently purchased a new MacBook Pro that replaces my primary Dell desktop. But now that I'm on a Mac, I am no longer able to use <a href="http://www.flashdevelop.org/wikidocs/index.php?title=FlashDevelop:About">Flash Develop</a> as my ActionScript editor since its developed in .NET. So I've turned to Flex Builder 3 as my ActionScript editor of choice. It is a really great editor, although it does seem a bit bulky compared to Flash Develop.</p>
<p>So that led me to want to learn more about the Flex Framework (MXML). Something that I've been wanting to do for some time now, but now have more of an urgent reason. So currently, I am watching the <a href="http://www.lynda.com/home/DisplayCourse.aspx?lpk2=438">Flex 3 Essential Training</a> at Lynda.com. (Great site!) I figured that this will give me a great overview of Flex and a tour of the Flex Builder IDE.</p>
<p>I realize that I can get <a href="http://www.parallels.com/">Parallels</a> or <a href="http://www.vmware.com/products/fusion/">Fusion</a> for the Mac so I can run Windows based applications. Perhaps I will eventually. But this way I'll be able to get more into Flex like I've been wanting to.</p>
<p>We'll see in a few weeks how I like the transition.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashgoblin.com/?feed=rss2&amp;p=16</wfw:commentRss>
		</item>
	</channel>
</rss>
