<?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>zerokernel.com &#187; featured</title>
	<atom:link href="http://zerokernel.com/blog/index.php/category/featured/feed/" rel="self" type="application/rss+xml" />
	<link>http://zerokernel.com/blog</link>
	<description>everything you don't need to know (but you are asking anyway)</description>
	<lastBuildDate>Sat, 20 Feb 2010 20:19:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Youtube and Flex 3</title>
		<link>http://zerokernel.com/blog/index.php/2009/05/25/youtube-and-flex-3/</link>
		<comments>http://zerokernel.com/blog/index.php/2009/05/25/youtube-and-flex-3/#comments</comments>
		<pubDate>Mon, 25 May 2009 19:54:47 +0000</pubDate>
		<dc:creator>Polo Ornelas</dc:creator>
				<category><![CDATA[featured]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://zerokernel.com/blog/?p=117</guid>
		<description><![CDATA[A time ago google released an SWF/API to interact with the youtube player, and be able to embed it into your swf projects, the main problem is that it was for AS2, so when you try to do it on AS3 / Flex, you can run into problems.
I ran into this problem, so doing my [...]


Related posts:<ol><li><a href='http://zerokernel.com/blog/index.php/2010/02/18/flex-dynamic-background-image-on-canvas-redraw-version/' rel='bookmark' title='Permanent Link: Flex: Dynamic Background Image on Canvas (redraw version)'>Flex: Dynamic Background Image on Canvas (redraw version)</a> <small>Today I tried to load an image form an url...</small></li><li><a href='http://zerokernel.com/blog/index.php/2008/12/29/flex-myths/' rel='bookmark' title='Permanent Link: Flex Myths'>Flex Myths</a> <small>I found a very nice article about misconceptions of flex,...</small></li><li><a href='http://zerokernel.com/blog/index.php/2009/09/15/flex-3-svn-plugin-subclipse-change-credentials-osx/' rel='bookmark' title='Permanent Link: Flex 3 / SVN plugin (subclipse) / change credentials / OS X'>Flex 3 / SVN plugin (subclipse) / change credentials / OS X</a> <small>For a complex reason I couldn&#8217;t understand the SVN plugin...</small></li></ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A time ago google released an SWF/API to interact with the youtube player, and be able to embed it into your swf projects, the main problem is that it was for AS2, so when you try to do it on AS3 / Flex, you can run into problems.</p>
<p>I ran into this problem, so doing my research, I found a library written for AS, it uses a clever way to do it, it actually use a javascript bridge to communicate with the player inside your SWF.</p>
<p>It&#8217;s internals can be summarized in this way:<br />
swf (external call) -> browser (js) -> swf (via javascript)</p>
<p>There are a lot of tricks that can help our life easier with this problems, but I will like to gave you a list:</p>
<p>- The main tricks in this library are done in javascript, so you have to pay a lot of attention of details like the id of the player in the HTML of the deploy (be sure to copy outside your working copy, because flex overwrites changes on it), check the ****YOUTUBE**** comments in the example.</p>
<p>- You can run into issues with the sandbox, be sure to test it on a webserver.</p>
<p>- Because you are running outside the flex ide, be sure to install <a href="https://addons.mozilla.org/en-US/firefox/addon/3469">flash tracer</a> it will help you a lot</p>
<p>- When you add it to your project, and you can get the creation complete event you are ready to go !</p>
<p>This is the link of the library:</p>
<p><a href="http://code.google.com/p/youtubechromelesswrapper-as3/">http://code.google.com/p/youtubechromelesswrapper-as3/</a></p>
<p>A live demo:<br />
<a href="http://www.zerokernel.com/demos/flex/youtube/">http://www.zerokernel.com/demos/flex/youtube/</a></p>
<p>Deployment files:<br />
<a href="http://www.zerokernel.com/demos/flex/youtube/youtube-deploy.zip">http://www.zerokernel.com/demos/flex/youtube/youtube-deploy.zip</a></p>
<p>Flex source:<br />
<a href="http://www.zerokernel.com/demos/flex/youtube/YoutubeTest.zip">http://www.zerokernel.com/demos/flex/youtube/YoutubeTest.zip</a></p>


<p>Related posts:<ol><li><a href='http://zerokernel.com/blog/index.php/2010/02/18/flex-dynamic-background-image-on-canvas-redraw-version/' rel='bookmark' title='Permanent Link: Flex: Dynamic Background Image on Canvas (redraw version)'>Flex: Dynamic Background Image on Canvas (redraw version)</a> <small>Today I tried to load an image form an url...</small></li><li><a href='http://zerokernel.com/blog/index.php/2008/12/29/flex-myths/' rel='bookmark' title='Permanent Link: Flex Myths'>Flex Myths</a> <small>I found a very nice article about misconceptions of flex,...</small></li><li><a href='http://zerokernel.com/blog/index.php/2009/09/15/flex-3-svn-plugin-subclipse-change-credentials-osx/' rel='bookmark' title='Permanent Link: Flex 3 / SVN plugin (subclipse) / change credentials / OS X'>Flex 3 / SVN plugin (subclipse) / change credentials / OS X</a> <small>For a complex reason I couldn&#8217;t understand the SVN plugin...</small></li></ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://zerokernel.com/blog/index.php/2009/05/25/youtube-and-flex-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
