<?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: Chromeless Youtube Video Player for Flex</title>
	<atom:link href="http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:28:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: windhood (wenhu guan)</title>
		<link>http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/comment-page-1/#comment-1827</link>
		<dc:creator>windhood (wenhu guan)</dc:creator>
		<pubDate>Fri, 26 Feb 2010 06:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=1346#comment-1827</guid>
		<description>another youtube player sample http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/</description>
		<content:encoded><![CDATA[<p>another youtube player sample <a href="http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/" rel="nofollow">http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sharedtut</title>
		<link>http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/comment-page-1/#comment-1785</link>
		<dc:creator>sharedtut</dc:creator>
		<pubDate>Fri, 22 Jan 2010 04:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=1346#comment-1785</guid>
		<description>thank you for sharing and fixing the source code</description>
		<content:encoded><![CDATA[<p>thank you for sharing and fixing the source code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will F</title>
		<link>http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/comment-page-1/#comment-1777</link>
		<dc:creator>Will F</dc:creator>
		<pubDate>Thu, 31 Dec 2009 14:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=1346#comment-1777</guid>
		<description>Great thanks a lot :) That&#039;s really helped me.</description>
		<content:encoded><![CDATA[<p>Great thanks a lot <img src='http://www.flexer.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  That&#8217;s really helped me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stelian Crisan</title>
		<link>http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/comment-page-1/#comment-1776</link>
		<dc:creator>Stelian Crisan</dc:creator>
		<pubDate>Wed, 30 Dec 2009 22:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=1346#comment-1776</guid>
		<description>Hi Will F,

Thank you for this comment because I just noticed that I don&#039;t put the source code for this article :D. Now it&#039;s there.

About YouTube API download: You can&#039;t download the API, you will load a player object from youtube.com. The code section that do this is in Youtube.as file in the source archive. Anyway I will put it in this comment:

&lt;pre lang=&quot;ActionScript&quot;&gt;
[Bindable]
private var _loader:Loader; 
private var _player:Object;  

.....................

 public function Youtube()
{ 
    super();

    //allow domains
    Security.allowDomain(&quot;www.youtube.com&quot;);
    Security.allowDomain(&quot;video-stats.video.google.com&quot;);
 
    //load youtube api
    _loader  = new Loader();
    _loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderInit);
    _loader.load(new URLRequest(&quot;http://www.youtube.com/apiplayer?version=3&quot;));
  
    //add loader to our component
    addChild(_loader);  
} 

.....................

//set events for our movie
private function onLoaderInit(event:Event):void 
{
      _loader.content.addEventListener(&quot;onReady&quot;, onPlayerReady);
     .....................
}
		
private function onPlayerReady(event:Event):void 
{
    // Once this event has been dispatched by the player, we can use
    // cueVideoById, loadVideoById, cueVideoByUrl and loadVideoByUrl
    // to load a particular YouTube video.
    _player = _loader.content;
    //load our video ID
    _player.loadVideoById(_videoId);
    ..................... 
}
&lt;/pre&gt; </description>
		<content:encoded><![CDATA[<p>Hi Will F,</p>
<p>Thank you for this comment because I just noticed that I don&#8217;t put the source code for this article <img src='http://www.flexer.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . Now it&#8217;s there.</p>
<p>About YouTube API download: You can&#8217;t download the API, you will load a player object from youtube.com. The code section that do this is in Youtube.as file in the source archive. Anyway I will put it in this comment:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _loader:Loader; 
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _player:<span style="color: #0066CC;">Object</span>;  
&nbsp;
.....................
&nbsp;
 <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Youtube<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span> 
    <span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    <span style="color: #808080; font-style: italic;">//allow domains</span>
    Security.<span style="color: #0066CC;">allowDomain</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;www.youtube.com&quot;</span><span style="color: #66cc66;">&#41;</span>;
    Security.<span style="color: #0066CC;">allowDomain</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;video-stats.video.google.com&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    <span style="color: #808080; font-style: italic;">//load youtube api</span>
    _loader  = <span style="color: #000000; font-weight: bold;">new</span> Loader<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
    _loader.<span style="color: #006600;">contentLoaderInfo</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">COMPLETE</span>, onLoaderInit<span style="color: #66cc66;">&#41;</span>;
    _loader.<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: #ff0000;">&quot;http://www.youtube.com/apiplayer?version=3&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    <span style="color: #808080; font-style: italic;">//add loader to our component</span>
    addChild<span style="color: #66cc66;">&#40;</span>_loader<span style="color: #66cc66;">&#41;</span>;  
<span style="color: #66cc66;">&#125;</span> 
&nbsp;
.....................
&nbsp;
<span style="color: #808080; font-style: italic;">//set events for our movie</span>
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onLoaderInit<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> 
<span style="color: #66cc66;">&#123;</span>
      _loader.<span style="color: #006600;">content</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;onReady&quot;</span>, onPlayerReady<span style="color: #66cc66;">&#41;</span>;
     .....................
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> onPlayerReady<span style="color: #66cc66;">&#40;</span>event:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> 
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">// Once this event has been dispatched by the player, we can use</span>
    <span style="color: #808080; font-style: italic;">// cueVideoById, loadVideoById, cueVideoByUrl and loadVideoByUrl</span>
    <span style="color: #808080; font-style: italic;">// to load a particular YouTube video.</span>
    _player = _loader.<span style="color: #006600;">content</span>;
    <span style="color: #808080; font-style: italic;">//load our video ID</span>
    _player.<span style="color: #006600;">loadVideoById</span><span style="color: #66cc66;">&#40;</span>_videoId<span style="color: #66cc66;">&#41;</span>;
    ..................... 
<span style="color: #66cc66;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Will F</title>
		<link>http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/comment-page-1/#comment-1775</link>
		<dc:creator>Will F</dc:creator>
		<pubDate>Wed, 30 Dec 2009 21:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=1346#comment-1775</guid>
		<description>Hi, i am probably being really stupid here, but it is driving me crazy. Where do i download the youtube API from? I can&#039;t find any download links on the site.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, i am probably being really stupid here, but it is driving me crazy. Where do i download the youtube API from? I can&#8217;t find any download links on the site.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: derhess.de - Florian</title>
		<link>http://www.flexer.info/2009/12/24/chromeless-youtube-video-player-for-flex/comment-page-1/#comment-1771</link>
		<dc:creator>derhess.de - Florian</dc:creator>
		<pubDate>Sat, 26 Dec 2009 08:50:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=1346#comment-1771</guid>
		<description>Hey thx for this tutorial. I was a little sick of this YouTube API and created some Component for Flex and Air. That makes the developer life a little bit easier for working with youTube. Maybe you will like it, too?!

http://blog.derhess.de/2009/10/27/the-new-youtube-as3-chromeless-api-in-flex-air-flash/</description>
		<content:encoded><![CDATA[<p>Hey thx for this tutorial. I was a little sick of this YouTube API and created some Component for Flex and Air. That makes the developer life a little bit easier for working with youTube. Maybe you will like it, too?!</p>
<p><a href="http://blog.derhess.de/2009/10/27/the-new-youtube-as3-chromeless-api-in-flex-air-flash/" rel="nofollow">http://blog.derhess.de/2009/10/27/the-new-youtube-as3-chromeless-api-in-flex-air-flash/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

