<?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>Life of a Glasgow Flash Developer</title>
	<atom:link href="http://www.scotflash.co.uk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.scotflash.co.uk/blog</link>
	<description>Paul Bainbridge Glasgow Flash Web developer</description>
	<lastBuildDate>Thu, 25 Apr 2013 14:46:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>What I&#8217;ve been upto</title>
		<link>http://www.scotflash.co.uk/blog/?p=632</link>
		<comments>http://www.scotflash.co.uk/blog/?p=632#comments</comments>
		<pubDate>Thu, 14 Jul 2011 14:24:44 +0000</pubDate>
		<dc:creator>Paul Bainbridge</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Flash AS3]]></category>
		<category><![CDATA[What i am upto]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.scotflash.co.uk/blog/?p=632</guid>
		<description><![CDATA[I cannot believe how quickly the past 6 months have flown by. Has it really been since January since I last made a blog post. It&#8217;s to easy to just tweet rather than post something to the blog. I would &#8230; <a href="http://www.scotflash.co.uk/blog/?p=632">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D632"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D632&amp;source=glasgow_flasher&amp;style=normal&amp;service=TinyURL.com&amp;hashtags=AIR,Android,AS3,flash,google,iOS,twitter&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>I cannot believe how quickly the past 6 months have flown by. Has it really been since January since I last made a blog post. It&#8217;s to easy to just tweet rather than post something to the blog. <a href="http://www.twitter.com/scotflash" title="Follow me on Twitter"><img src="http://www.scotflash.co.uk/blog/wp-content/uploads/2011/07/twitter-bird-1.png" alt="Follow me on Twitter" title="Follow me on Twitter" width="249" height="166" class="alignright size-full wp-image-635" /></a></p>
<p>I would like to say it has been a busy 6 months but that would be lying. This year was the slowest start to the year for me since I started freelancing over 10 years ago. So with all that free time I started to take a serious look at development with AIR for android and Ipad. Still got nothing to show at the moment but things are moving along nicely.</p>
<p><a href="http://www.dopeawards.com/?ref=pb" target="_blank" title="dopeawards-logo"><img src="http://www.scotflash.co.uk/blog/wp-content/uploads/2010/10/dopeawards-logo.jpg" alt="dopeawards-logo" title="dopeawards-logo" width="127" height="56" class="alignleft size-full wp-image-480" /></a>Things have also been moving along nicely with dopeawards. Some nice new features have been added to help improve the UI. You can check them out <a href="http://dopeawards.com/?ref=pb" target="_blank">here.</a></p>
<p>I&#8217;ve set-up a new twitter account as I feel it&#8217;s time to drop the <a href="http://twitter.com/#!/glasgow_flasher" target="_blank">@glasgow_flasher</a> account. You can now follow me <a href="http://twitter.com/#!/scotflash" target="_blank">@scotflash</a>. I would like to  thank all the peeps(tweeps) that have started following my second account. I&#8217;ve also taken a moment to get set up with google+.  You can find me <a href="https://plus.google.com/106838136112054334545" target="_blank">here</a>.<a href="https://plus.google.com/106838136112054334545" title="Follow me on google+"><img src="http://www.scotflash.co.uk/blog/wp-content/uploads/2011/07/icon_google+-icon.png" alt="Follow me on google+" title="Follow me on google+" width="24" height="24" class="alignnone size-full wp-image-657" /></a> Need an invite? <a href="https://plus.google.com/_/notifications/ngemlink?path=%2F%3Fgpinv%3DYbJDUTBjiQE%3A0QB5a-YR6SA" title="Google invite" target="_blank">Linky</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scotflash.co.uk/blog/?feed=rss2&#038;p=632</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Save masked image to server. AS3</title>
		<link>http://www.scotflash.co.uk/blog/?p=568</link>
		<comments>http://www.scotflash.co.uk/blog/?p=568#comments</comments>
		<pubDate>Wed, 19 Jan 2011 13:21:31 +0000</pubDate>
		<dc:creator>Paul Bainbridge</dc:creator>
				<category><![CDATA[Flash AS3]]></category>
		<category><![CDATA[Flash general]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[What i am upto]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[bitmapData]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[new bitmap]]></category>
		<category><![CDATA[save]]></category>

		<guid isPermaLink="false">http://www.scotflash.co.uk/blog/?p=568</guid>
		<description><![CDATA[This is a follow up to my previous post Crop bitmapdata under mask to create new bitmap. In this example I&#8217;ve set-up to allow for the cropped image to be saved out from flash to the server. There is also &#8230; <a href="http://www.scotflash.co.uk/blog/?p=568">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D568"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D568&amp;source=glasgow_flasher&amp;style=normal&amp;service=TinyURL.com&amp;hashtags=actionscript+3,AS3,bitmap,bitmapData,crop,export,flash,image,mask,matrix,new+bitmap,save&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a follow up to my previous post <em><strong><a href="http://www.scotflash.co.uk/blog/?p=562">Crop bitmapdata under mask to create new bitmap</a></strong></em>. In this example I&#8217;ve set-up to allow for the cropped image to be saved out from flash to the server. There is also an additional php script to handle the data being sent from flash to create the exported jpg.<br />
Below is the code that is used to save the cropped image to the server and then load it back into flash.</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="co1">//Save cropped image to the server.</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> saveCroppedImage<span class="br0">&#40;</span><span class="kw3">e</span>:Event<span class="br0">&#41;</span>:<span class="kw3">void</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Matrix to holder the area to be cropped</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> maskRect =mcHolder.<span class="me1">mcMask</span>.<span class="kw3">getBounds</span><span class="br0">&#40;</span>mcHolder<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Matrix of image to be cropped</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> imgMatrix= mcHolder.<span class="me1">mcImg</span>.<span class="me1">transform</span>.<span class="me1">matrix</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Cropped image</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> myCroppedImage:Bitmap = cropImage<span class="br0">&#40;</span>maskRect, imgMatrix, mcHolder.<span class="me1">mcMask</span>.<span class="kw3">width</span>, mcHolder.<span class="me1">mcMask</span>.<span class="kw3">height</span>,mcHolder.<span class="me1">mcImg</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Get new matrix of cropped image</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> m:Matrix = myCroppedImage.<span class="me1">transform</span>.<span class="me1">matrix</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> urlLoader:URLLoader = <span class="kw2">new</span> URLLoader<span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Set jpg quality of the image to be export 1-100</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> myEncoder:JPGEncoder = <span class="kw2">new</span> JPGEncoder<span class="br0">&#40;</span><span class="nu0">80</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Create jpg to be exported</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> jpgSource:BitmapData = <span class="kw2">new</span> BitmapData <span class="br0">&#40;</span>mcHolder.<span class="me1">mcMask</span>.<span class="kw3">width</span>, mcHolder.<span class="me1">mcMask</span>.<span class="kw3">height</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;jpgSource.<span class="me1">draw</span><span class="br0">&#40;</span>myCroppedImage, m<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Create byte array to hold jpg data</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> byteArray:ByteArray = myEncoder.<span class="me1">encode</span><span class="br0">&#40;</span>jpgSource<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> header:URLRequestHeader = <span class="kw2">new</span> URLRequestHeader<span class="br0">&#40;</span><span class="st0">&quot;Content-type&quot;</span>, <span class="st0">&quot;application/octet-stream&quot;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Send image to the server to be saved</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> saveJPG:URLRequest = <span class="kw2">new</span> URLRequest<span class="br0">&#40;</span>_path+<span class="st0">&quot;saveImage.php?r=&quot;</span>+imgID<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;saveJPG.<span class="me1">requestHeaders</span>.<span class="kw3">push</span><span class="br0">&#40;</span>header<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;saveJPG.<span class="me1">method</span> = URLRequestMethod.<span class="me1">POST</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;saveJPG.<span class="kw3">data</span> = byteArray; </div>
</li>
<li class="li1">
<div class="de1">&nbsp;urlLoader.<span class="me1">addEventListener</span><span class="br0">&#40;</span>Event.<span class="me1">COMPLETE</span>, loadCroppedImage<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;urlLoader.<span class="kw3">load</span><span class="br0">&#40;</span>saveJPG<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Here is an example:<br />
Drag the image around then click &#8220;crop image&#8221;. The second image that appears has been loaded from the server and clicking on &#8220;view in browser&#8221; will display the saved image in a new browser window.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_cropImageSave_1022444830"
			class="flashmovie"
			width="300"
			height="150">
	<param name="movie" value="http://www.scotflash.co.uk/blog/wp-content/uploads/2011/01/cropImageSave.swf" />
	<param name="bgcolor" value="#ffffff" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.scotflash.co.uk/blog/wp-content/uploads/2011/01/cropImageSave.swf"
			name="fm_cropImageSave_1022444830"
			width="300"
			height="150">
		<param name="bgcolor" value="#ffffff" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
Source example:<br />
<a href="http://www.scotflash.co.uk/blog/wp-content/plugins/download-monitor/download.php?id=18" title="Downloaded 1313 times"><img src="http://www.scotflash.co.uk/blog/wp-content/plugins/download-monitor/img/downloads-icon.gif" width="30" height="40" /></a></p>
<p>Credits: <a href="http://blog.vamapaull.com/">vamapaull</a>, <a href="http://blog.vamapaull.com/?p=355">Photo Booth – Flash Webcam Image Capture</a> (insight into export an image from Flash)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scotflash.co.uk/blog/?feed=rss2&#038;p=568</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Crop bitmapdata under mask to create new bitmap AS3</title>
		<link>http://www.scotflash.co.uk/blog/?p=562</link>
		<comments>http://www.scotflash.co.uk/blog/?p=562#comments</comments>
		<pubDate>Wed, 12 Jan 2011 14:54:42 +0000</pubDate>
		<dc:creator>Paul Bainbridge</dc:creator>
				<category><![CDATA[Flash AS3]]></category>
		<category><![CDATA[Flash general]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[bitmapData]]></category>
		<category><![CDATA[crop]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[mask]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[new bitmap]]></category>

		<guid isPermaLink="false">http://www.scotflash.co.uk/blog/?p=562</guid>
		<description><![CDATA[So you want to be able to crop an image based on what is viewable through the mask and then saved that cropped image out to a new file. For two days I played about with code to trying to &#8230; <a href="http://www.scotflash.co.uk/blog/?p=562">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D562"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D562&amp;source=glasgow_flasher&amp;style=normal&amp;service=TinyURL.com&amp;hashtags=actionscript+3,AS3,bitmap,bitmapData,crop,flash,image,mask,matrix,new+bitmap&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>So you want to be able to crop an image based on what is viewable through the mask and then saved that cropped image out to a new file. For two days I played about with code to trying to get this to work. The main problem for me was that the image would be dragged about underneath the mask.  This was proving a bit confusing for me in getting the coordinates to crop from. Well thankfully I was able to get it to work the way I wanted. So now that I have it working I thought I would share the code as whilst doing research for a solution I didn&#8217;t find anything of real use.</p>
<div class="geshi no actionscript">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">function</span> toCrop<span class="br0">&#40;</span><span class="kw3">e</span>:Event<span class="br0">&#41;</span>:<span class="kw3">void</span> <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Matrix to holder the area to be cropped</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> maskRect =mcHolder.<span class="me1">mcMask</span>.<span class="kw3">getBounds</span><span class="br0">&#40;</span>mcHolder<span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Matrix of image to be cropped</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> imgMatrix= mcHolder.<span class="me1">mcImg</span>.<span class="me1">transform</span>.<span class="me1">matrix</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Cropped image</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> myCroppedImage:Bitmap = crop<span class="br0">&#40;</span>maskRect, imgMatrix, mcHolder.<span class="me1">mcMask</span>.<span class="kw3">width</span>, mcHolder.<span class="me1">mcMask</span>.<span class="kw3">height</span>,mcHolder.<span class="me1">mcImg</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;addChild<span class="br0">&#40;</span> myCroppedImage <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;</div>
</li>
<li class="li1">
<div class="de1"><span class="kw2">function</span> crop<span class="br0">&#40;</span> rect, matrix, <span class="kw3">_width</span>:<span class="kw3">Number</span>, <span class="kw3">_height</span>:<span class="kw3">Number</span>, displayObject:DisplayObject<span class="br0">&#41;</span>:Bitmap <span class="br0">&#123;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="co1">//Create cropped image</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw2">var</span> croppedBitmap:Bitmap = <span class="kw2">new</span> Bitmap<span class="br0">&#40;</span> <span class="kw2">new</span> BitmapData<span class="br0">&#40;</span> <span class="kw3">_width</span>, <span class="kw3">_height</span> <span class="br0">&#41;</span>, PixelSnapping.<span class="me1">ALWAYS</span>, <span class="kw2">true</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;croppedBitmap.<span class="me1">bitmapData</span>.<span class="me1">draw</span><span class="br0">&#40;</span>displayObject, matrix , <span class="kw2">null</span>, <span class="kw2">null</span>, rect, <span class="kw2">true</span> <span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">&nbsp;<span class="kw1">return</span> croppedBitmap;</div>
</li>
<li class="li1">
<div class="de1"><span class="br0">&#125;</span></div>
</li>
</ol>
</div>
<p>Here is an example:<br />
Drag the image around then click &#8220;crop image&#8221;<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_cropImage_1034765952"
			class="flashmovie"
			width="300"
			height="150">
	<param name="movie" value="http://www.scotflash.co.uk/blog/wp-content/uploads/2011/01/cropImage.swf" />
	<param name="bgcolor" value="#ffffff" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.scotflash.co.uk/blog/wp-content/uploads/2011/01/cropImage.swf"
			name="fm_cropImage_1034765952"
			width="300"
			height="150">
		<param name="bgcolor" value="#ffffff" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
Source example:<br />
<a href="http://www.scotflash.co.uk/blog/wp-content/plugins/download-monitor/download.php?id=17" title="Downloaded 1299 times"><img src="http://www.scotflash.co.uk/blog/wp-content/plugins/download-monitor/img/downloads-icon.gif" width="30" height="40" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scotflash.co.uk/blog/?feed=rss2&#038;p=562</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Youtube chromeless player flash source</title>
		<link>http://www.scotflash.co.uk/blog/?p=486</link>
		<comments>http://www.scotflash.co.uk/blog/?p=486#comments</comments>
		<pubDate>Wed, 24 Nov 2010 12:42:11 +0000</pubDate>
		<dc:creator>Paul Bainbridge</dc:creator>
				<category><![CDATA[Flash AS3]]></category>
		<category><![CDATA[Flash CS3 components]]></category>
		<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Chromeless]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[player]]></category>
		<category><![CDATA[source]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.scotflash.co.uk/blog/?p=486</guid>
		<description><![CDATA[Following on from my recent post &#8216;Youtube chromeless player example&#8216; I&#8217;ve finally found the time to get this example source put up available for download. So here&#8217;s the brief. The raw code for the Youtube API can be found here. &#8230; <a href="http://www.scotflash.co.uk/blog/?p=486">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D486"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D486&amp;source=glasgow_flasher&amp;style=normal&amp;service=TinyURL.com&amp;hashtags=AS2,AS3,Chromeless,flash,player,source,youtube&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Following on from my recent post &#8216;<a href="http://www.scotflash.co.uk/blog/?p=442">Youtube chromeless player example</a>&#8216; I&#8217;ve finally found the time to get this example source put up available for download.<br />
<a href="http://www.scotflash.co.uk/youtube/index.html" target="_blank"><br />
<img class="size-full wp-image-522 alignleft" title="Click to view Youtube chromelss player AS3 example" src="http://www.scotflash.co.uk/blog/wp-content/uploads/2010/10/yt-chromeless.jpg" alt="Click to view Youtube chromelss player AS3 example" width="300" height="160" /></a></p>
<p>So here&#8217;s the brief.<br />
The raw code for the Youtube API can be found <a title="youtube api AS3 example code" href="http://code.google.com/p/gdata-samples/source/browse/trunk/ytplayer/actionscript3/com/google/youtube/examples/AS3Player.as" target="_blank">here</a>. The API is available in both <a title="youtube api AS2" href="http://code.google.com/apis/youtube/flash_api_reference_as2.html" target="_blank">AS2</a> and <a title="youtube api AS3" href="http://code.google.com/apis/youtube/flash_api_reference.html" target="_blank">AS3</a>. This is a basics you need to get started creating your own chromeless player example in AS3. You can download an sample AS2 version fla from <a title="youtube api AS2 example fla" href="http://code.google.com/apis/youtube/flash_api_reference_as2.html#Examples" target="_blank">here</a>. You can of course skip this and go ahead and download my moded AS3 version of the chromeless player<img class="alignleft size-full wp-image-447" title="yt-icon" src="http://www.scotflash.co.uk/blog/wp-content/uploads/2010/08/yt-icon.png" alt="" width="73" height="73" /> and hack it to fit your own needs. In my example I&#8217;ve set it up so that you can set set the video id in flash embed params and on url like here: <a title="Youtube chromelss player AS3 example" href="http://www.scotflash.co.uk/youtube/?id=8hn15ugMJ4k" target="_blank">www.scotflash.co.uk/youtube/?id=8hn15ugMJ4k</a>. If no id is found then flash will load a default video id already set inside the swf.</p>
<p>The source is fully commented and includes both the fla file and html embed page to get you on your way.</p>
<a href="http://www.scotflash.co.uk/blog/wp-content/plugins/download-monitor/download.php?id=16" title="Downloaded 1488 times"><img src="http://www.scotflash.co.uk/blog/wp-content/plugins/download-monitor/img/downloads-icon.gif" width="30" height="40" /></a>
]]></content:encoded>
			<wfw:commentRss>http://www.scotflash.co.uk/blog/?feed=rss2&#038;p=486</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>New Dope awards</title>
		<link>http://www.scotflash.co.uk/blog/?p=472</link>
		<comments>http://www.scotflash.co.uk/blog/?p=472#comments</comments>
		<pubDate>Fri, 08 Oct 2010 18:56:29 +0000</pubDate>
		<dc:creator>Paul Bainbridge</dc:creator>
				<category><![CDATA[Flash general]]></category>
		<category><![CDATA[What i am upto]]></category>
		<category><![CDATA[3D awards]]></category>
		<category><![CDATA[animation awards]]></category>
		<category><![CDATA[dope awards]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[photography awards]]></category>
		<category><![CDATA[website awards]]></category>

		<guid isPermaLink="false">http://www.scotflash.co.uk/blog/?p=472</guid>
		<description><![CDATA[It&#8217;s been a hard graft over the past few months and we finally find ourselves at a point where we are happy to get all these updates live.&#160; After 10 years of awarding the worlds best Flash websites, Dope is &#8230; <a href="http://www.scotflash.co.uk/blog/?p=472">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D472"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.scotflash.co.uk%2Fblog%2F%3Fp%3D472&amp;source=glasgow_flasher&amp;style=normal&amp;service=TinyURL.com&amp;hashtags=3D+awards,animation+awards,dope+awards,flash,photography+awards,website+awards&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a title="DopeAwards" href="http://www.dopeawards.com/?ref=pb" target="_blank" data-mce-href="http://www.dopeawards.com/?ref=pb"><img class="alignleft size-full wp-image-480" title="dopeawards-logo" src="http://www.scotflash.co.uk/blog/wp-content/uploads/2010/10/dopeawards-logo.jpg" alt="" width="127" height="56" data-mce-src="http://www.scotflash.co.uk/blog/wp-content/uploads/2010/10/dopeawards-logo.jpg"/></a>It&#8217;s been a hard graft over the past few months and we finally find ourselves at a point where we are happy to get all these updates live.&nbsp; After 10 years of awarding the worlds best Flash websites, Dope is changing to create an amazing new resource of not just websites , but now the worlds best 3D Artists, 3D Animators and Photographers.</p>
<div align="center"><a href="http://www.dopeawards.com/?ref=pb" data-mce-href="http://www.dopeawards.com/?ref=pb" title="DopeAwards"><img class="aligncenter size-full wp-image-474" title="DopeAwards" src="http://www.scotflash.co.uk/blog/wp-content/uploads/2010/10/dope.jpg" alt="DopeAwards image" width="350" height="183" data-mce-src="http://www.scotflash.co.uk/blog/wp-content/uploads/2010/10/dope.jpg"/></a></div>
<p><span class="mceItemHidden">Dope will now be a site of 4 flavours, with each <span class="hiddenSuggestion" pre="each ">category</span> complimenting and inspiring the others.</span></p>
<p>As well as the 4 award programs we are also adding a whole host of new features. You will start to see these new features added to the website shortly&nbsp;after&nbsp;the first launch.</p>
<p><span class="mceItemHidden">We hope you enjoy the web<span class="hiddenSpellError" pre="the ">site</span>&nbsp;and content. </span><a title="DopeAwards" href="http://www.dopeawards.com/?ref=pb" target="_blank" data-mce-href="http://www.dopeawards.com/?ref=pb">www.dopeawards.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.scotflash.co.uk/blog/?feed=rss2&#038;p=472</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: www.scotflash.co.uk @ 2013-05-19 01:47:14 by W3 Total Cache -->