<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using the YouTube Player API with ActionScript 3.0</title>
	<atom:link href="http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/</link>
	<description>Flash, Flex &#38; ActionScript Tutorials</description>
	<lastBuildDate>Sat, 21 Nov 2009 17:18:16 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tizi</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-11769</link>
		<dc:creator>tizi</dc:creator>
		<pubDate>Thu, 19 Nov 2009 19:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-11769</guid>
		<description>Hi, thanks for the great tutorial....but now that the YouTube Player API has been updtaed to AS3,are you going to have a tutorial on using it? It would be great. I can&#039;t make it work correctly based on the official documentation.Thanks</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the great tutorial&#8230;.but now that the YouTube Player API has been updtaed to AS3,are you going to have a tutorial on using it? It would be great. I can&#8217;t make it work correctly based on the official documentation.Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dani</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-11625</link>
		<dc:creator>Dani</dc:creator>
		<pubDate>Mon, 16 Nov 2009 10:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-11625</guid>
		<description>great, this what i&#039;m looking for. nice tutorial :)</description>
		<content:encoded><![CDATA[<p>great, this what i&#8217;m looking for. nice tutorial <img src='http://active.tutsplus.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-6619</link>
		<dc:creator>praveen</dc:creator>
		<pubDate>Wed, 09 Sep 2009 06:03:34 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-6619</guid>
		<description>this is good post</description>
		<content:encoded><![CDATA[<p>this is good post</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerardo</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-6594</link>
		<dc:creator>Gerardo</dc:creator>
		<pubDate>Tue, 08 Sep 2009 14:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-6594</guid>
		<description>Thanks Ahmed, this is a great tutorial.
However now I&#039;m having trouble having it work on firefox. Is there any security issue that I&#039;m overlooking?
It works fine in safari.</description>
		<content:encoded><![CDATA[<p>Thanks Ahmed, this is a great tutorial.<br />
However now I&#8217;m having trouble having it work on firefox. Is there any security issue that I&#8217;m overlooking?<br />
It works fine in safari.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rodrigo</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-6568</link>
		<dc:creator>rodrigo</dc:creator>
		<pubDate>Mon, 07 Sep 2009 17:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-6568</guid>
		<description>Hello .. My name is Rodrigo. I have a very big doubt on that player on youtube in flash ... I tried to adapt it to AS3 but I could not ... Could you get me up and running in AS3?</description>
		<content:encoded><![CDATA[<p>Hello .. My name is Rodrigo. I have a very big doubt on that player on youtube in flash &#8230; I tried to adapt it to AS3 but I could not &#8230; Could you get me up and running in AS3?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Buzzeo</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-5727</link>
		<dc:creator>Jason Buzzeo</dc:creator>
		<pubDate>Mon, 24 Aug 2009 18:23:59 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-5727</guid>
		<description>Thanks Ahmed, this was a very helpful tutorial. The one snag I ran into was figuring out how to access getter functions on the AS2 player through the bridge. Can you demonstrate how, for instance, you would access the getDuration method? Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks Ahmed, this was a very helpful tutorial. The one snag I ran into was figuring out how to access getter functions on the AS2 player through the bridge. Can you demonstrate how, for instance, you would access the getDuration method? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bernie</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-5649</link>
		<dc:creator>bernie</dc:creator>
		<pubDate>Sat, 22 Aug 2009 21:06:42 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-5649</guid>
		<description>After some tweaking to the Actionscript 2.0 files,YouTubePlayerWrapper.as and YouTubePlayer, I finally got the MTASC compiler to generate a swf file, but the wrapper still does not work. Apparently, the bridge (SWFBridgeAS3) is not creating a valid connection.  Any help would be appreciated.

For anyone interested, here are the steps I followed to generate the swf file with the MTASC compiler.

MTASC mainly complained about code in the class YouTubePlayer, which is instantiated in the YourTubePlayerWrapper class.  

The compiler objected to the global functions removeMovieClip and unloadMovie. I replaced these with the instance method calls, 
(parent[ players ]).removeMovieClip(); and  ( parent[players ]).removeMovieClip();

The compiler did not like mx.utils.Delegate, so the various calls to the Delegate.create function created a problem (in both the YouTubePlayer and YouTubePlayerWrapper classes). 
Apparently, most of the mx components, including mx.,utils.Delegate, are not directly supported by MTASC.  After removing all references to the mx.utils.Delegate and any calls to its create method, I add the following class and replaced calls to Delegate.create with calls to EventDelegate.create:

class EventDelegate {
	private function EventDelegate () {};

	public static function create (scope, method:Function):Function {
		var params:Array = arguments.splice (2, arguments.length-2);
		var proxyFunc:Function = function ():Void {
			method.apply(scope, arguments.concat (params));
		}
		return proxyFunc;
	}
}


(see: &quot;http://lists.motion-twin.com/pipermail/mtasc/2005-April/001602.html&quot;)


Lastly, MTASC complained about the following syntax in the loadVideo function:

loader.addListener({ onLoadInit: loadInit() }); 

I replaced this with:

loader.addListener(this);

and changed the name of YouTubePlayer&#039;s loadInit method to onLoadInit.

After these changes I was able to use MTASC to generate YouTubePlayerWrapper.swf.</description>
		<content:encoded><![CDATA[<p>After some tweaking to the Actionscript 2.0 files,YouTubePlayerWrapper.as and YouTubePlayer, I finally got the MTASC compiler to generate a swf file, but the wrapper still does not work. Apparently, the bridge (SWFBridgeAS3) is not creating a valid connection.  Any help would be appreciated.</p>
<p>For anyone interested, here are the steps I followed to generate the swf file with the MTASC compiler.</p>
<p>MTASC mainly complained about code in the class YouTubePlayer, which is instantiated in the YourTubePlayerWrapper class.  </p>
<p>The compiler objected to the global functions removeMovieClip and unloadMovie. I replaced these with the instance method calls,<br />
(parent[ players ]).removeMovieClip(); and  ( parent[players ]).removeMovieClip();</p>
<p>The compiler did not like mx.utils.Delegate, so the various calls to the Delegate.create function created a problem (in both the YouTubePlayer and YouTubePlayerWrapper classes).<br />
Apparently, most of the mx components, including mx.,utils.Delegate, are not directly supported by MTASC.  After removing all references to the mx.utils.Delegate and any calls to its create method, I add the following class and replaced calls to Delegate.create with calls to EventDelegate.create:</p>
<p>class EventDelegate {<br />
	private function EventDelegate () {};</p>
<p>	public static function create (scope, method:Function):Function {<br />
		var params:Array = arguments.splice (2, arguments.length-2);<br />
		var proxyFunc:Function = function ():Void {<br />
			method.apply(scope, arguments.concat (params));<br />
		}<br />
		return proxyFunc;<br />
	}<br />
}</p>
<p>(see: &#8220;http://lists.motion-twin.com/pipermail/mtasc/2005-April/001602.html&#8221;)</p>
<p>Lastly, MTASC complained about the following syntax in the loadVideo function:</p>
<p>loader.addListener({ onLoadInit: loadInit() }); </p>
<p>I replaced this with:</p>
<p>loader.addListener(this);</p>
<p>and changed the name of YouTubePlayer&#8217;s loadInit method to onLoadInit.</p>
<p>After these changes I was able to use MTASC to generate YouTubePlayerWrapper.swf.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bernie Mueller</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-5645</link>
		<dc:creator>Bernie Mueller</dc:creator>
		<pubDate>Sat, 22 Aug 2009 16:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-5645</guid>
		<description>I believe YouTubePlayerWrapper.as has to be compiled into a swf.  How is this done?  I am using MTASC but I am getting numerous errors which I am trying to resolve, one by one.  For example the compiler does not seem to recognize the global function removeMovieClip.  I am ready to give up using MTASC.

Is there a better way to create the swf file?</description>
		<content:encoded><![CDATA[<p>I believe YouTubePlayerWrapper.as has to be compiled into a swf.  How is this done?  I am using MTASC but I am getting numerous errors which I am trying to resolve, one by one.  For example the compiler does not seem to recognize the global function removeMovieClip.  I am ready to give up using MTASC.</p>
<p>Is there a better way to create the swf file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: locos</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-5455</link>
		<dc:creator>locos</dc:creator>
		<pubDate>Tue, 18 Aug 2009 12:22:32 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-5455</guid>
		<description>Hi, thanks for this tutorial, I&#039;ve used it to make this http://www.kongregate.com/games/locos/youkongregate</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this tutorial, I&#8217;ve used it to make this <a href="http://www.kongregate.com/games/locos/youkongregate" rel="nofollow">http://www.kongregate.com/games/locos/youkongregate</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Creating a YouTube Search and Play Gadget with PureMVC : Webby Tutos</title>
		<link>http://active.tutsplus.com/tutorials/video/using-the-youtube-player-api-with-actionscript-30/#comment-5444</link>
		<dc:creator>Creating a YouTube Search and Play Gadget with PureMVC : Webby Tutos</dc:creator>
		<pubDate>Tue, 18 Aug 2009 07:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://flash.tutsplus.com/?p=879#comment-5444</guid>
		<description>[...] my tutorials on PureMVC and the YouTube Player API I thought it would be a good idea to show you how to use the YouTube GData API for searching for [...]</description>
		<content:encoded><![CDATA[<p>[...] my tutorials on PureMVC and the YouTube Player API I thought it would be a good idea to show you how to use the YouTube GData API for searching for [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!--
This site's performance optimized by W3 Total Cache:

W3 Total Cache improves the user experience of your blog by caching
frequent operations, reducing the weight of various files and providing
transparent content delivery network integration.

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 2/7 queries in 0.006 seconds using memcached

Served from: psdtutsplus.com @ 2009-11-21 13:14:24 -->