<?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>Flex Examples &#187; FLVPlayback</title>
	<atom:link href="http://blog.flexexamples.com/category/flvplayback/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Wed, 26 Jan 2011 18:09:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using the Flash FLVPlayback control in Flex</title>
		<link>http://blog.flexexamples.com/2008/12/11/using-the-flash-flvplayback-control-in-flex/</link>
		<comments>http://blog.flexexamples.com/2008/12/11/using-the-flash-flvplayback-control-in-flex/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 07:31:02 +0000</pubDate>
		<dc:creator>Peter deHaan</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Integration]]></category>
		<category><![CDATA[FLVPlayback]]></category>
		<category><![CDATA[UIComponent]]></category>

		<guid isPermaLink="false">http://blog.flexexamples.com/2008/12/11/using-the-flash-flvplayback-control-in-flex/</guid>
		<description><![CDATA[<p>The following example shows how you can use the Flash FLVPlayback component that ships with Flash CS3 and Flash CS4 by copying the FLVPlaybackAS3.swc file into your Flex project&#8217;s /libs/ folder.</p> <p>Full code after the jump.</p> <p></p> <p>Flash CS3<br /> PC: \Adobe Flash CS3\en\Configuration\Components\Video\FLVPlaybackAS3.swc</p> <p>Flash CS4<br /> PC: \Adobe Flash CS4\Common\Configuration\Components\Video\FLVPlaybackAS3.swc</p> <p class="download"><a href="">View MXML</a></p> [...]]]></description>
			<content:encoded><![CDATA[<p>The following example shows how you can use the Flash FLVPlayback component that ships with Flash CS3 and Flash CS4 by copying the FLVPlaybackAS3.swc file into your Flex project&#8217;s /libs/ folder.</p>
<p>Full code after the jump.</p>
<p><span id="more-897"></span></p>
<p><strong>Flash CS3</strong><br />
PC: \Adobe Flash CS3\en\Configuration\Components\Video\FLVPlaybackAS3.swc</p>
<p><strong>Flash CS4</strong><br />
PC: \Adobe Flash CS4\Common\Configuration\Components\Video\FLVPlaybackAS3.swc</p>
<p class="download"><a href="">View MXML</a></p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!-- http://blog.flexexamples.com/2008/12/11/using-the-flash-flvplayback-control-in-flex/ --&gt;
&lt;mx:Application name="FLVPlayback_MXML_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:video="fl.video.*"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function flvPlayback_autoLayout(evt:Event):void {
                videoHolder.width = flvPlayback.width;
                videoHolder.height = flvPlayback.height;
                flvPlayback.x = 0;
                flvPlayback.y = 0;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;video:FLVPlayback id="flvPlayback"
            source="http://www.helpexamples.com/flash/video/caption_video.flv"
            scaleMode="maintainAspectRatio"
            skin="SkinOverPlaySeekMute.swf"
            skinAutoHide="true"
            autoLayout="flvPlayback_autoLayout(event);" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Button id="btn"
                label="Play Video"
                click="videoHolder.addChild(flvPlayback);" /&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:Panel backgroundColor="red"&gt;
        &lt;mx:UIComponent id="videoHolder" /&gt;
    &lt;/mx:Panel&gt;

&lt;/mx:Application&gt;
</pre>
<div class="evernoteSiteMemory"><a href="javascript:" onclick="Evernote.doClip({title: 'Using the Flash FLVPlayback control in Flex on FlexExamples.com',url: 'http://blog.flexexamples.com/2008/12/11/using-the-flash-flvplayback-control-in-flex/',contentID: 'post-897',code: 'Pete9667',suggestNotebook: 'FlexExamples',suggestTags: '',providerName: 'FlexExamples.com',styling: 'text' });return false" class="evernoteSiteMemoryLink"><img src="http://static.evernote.com/article-clipper-remember.png" class="evernoteSiteMemoryButton" />
				</a>				<div class="evernoteSiteMemoryClear">&nbsp;</div>
</div>]]></content:encoded>
			<wfw:commentRss>http://blog.flexexamples.com/2008/12/11/using-the-flash-flvplayback-control-in-flex/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

