<?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: Displaying a semi-transparent FLV file in an MX VideoDisplay control in Flex 4</title>
	<atom:link href="http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: credit repair agencies</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-9960</link>
		<dc:creator>credit repair agencies</dc:creator>
		<pubDate>Mon, 26 Sep 2011 02:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-9960</guid>
		<description>The problem here is how the media servers expect to get the &#039;application&#039; and the &#039;file name&#039; you will be streaming. The query string variables must be passed to the application. But when the VideoPlayer component takes the source you give it and passes it to the server, it passes the query string variables with the file name.</description>
		<content:encoded><![CDATA[<p>The problem here is how the media servers expect to get the &#8216;application&#8217; and the &#8216;file name&#8217; you will be streaming. The query string variables must be passed to the application. But when the VideoPlayer component takes the source you give it and passes it to the server, it passes the query string variables with the file name.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7590</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Mon, 26 Apr 2010 12:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7590</guid>
		<description>Sorry, I really need to apologize. I saw that big hint. But forgot the ; behind the &amp;lt and &amp;gt. So here’s my code and my question again:

I encountered another problem. I dont know if this is the right spot to ask for it. Anyway: I’d like to video controls that come with the Spark Video Player to be invisble until the user mouse overs the videoplayer. I did the following in the VideoPlayer Skin Class (only the relevant code blocks):

&lt;code&gt;

&lt;!-- defining show and hide effects in the declaration block --&gt;
&lt;fx:Declarations&gt;
&lt;!-- effects --&gt;
&lt;s:Fade alphaFrom=&quot;0&quot; alphaTo=&quot;1&quot; id=&quot;fadeIn&quot; /&gt;
&lt;s:Fade alphaFrom=&quot;1&quot; alphaTo=&quot;0&quot; id=&quot;fadeOut&quot; /&gt;
&lt;/fx:Declarations&gt;

&lt;!-- setting event listener for the relevant mouse events --&gt;

&lt;s:Group id=&quot;clippedGroup&quot; clipAndEnableScrolling=&quot;true&quot; left=&quot;0&quot; top=&quot;0&quot; right=&quot;0&quot; bottom=&quot;0&quot;
verticalScrollPosition=&quot;{Math.max(0, 184-clippedGroup.height)}&quot;
mouseOver=&quot;this.videoPlayerControls.visible=true&quot; mouseOut=&quot;this.videoPlayerControls.visible=false&quot;&gt;

&lt;!-- setting show and hide effects for the control group and making it invisible --&gt;

&lt;!-- video player controls --&gt;
&lt;s:Group left=&quot;0&quot; right=&quot;0&quot; height=&quot;24&quot; bottom=&quot;0&quot; bottom.fullScreenStates=&quot;150&quot;
id=&quot;videoPlayerControls&quot;
visible=&quot;false&quot;
showEffect=&quot;fadeIn&quot; hideEffect=&quot;fadeOut&quot;&gt; 

&lt;/code&gt;

It works when the mouse pointer enteres the videoplayer and the controls appear. The problem ist, that the controls disappear when the mouse is over the controls (play/pause button, scrubber, etc.) or the videoDisplay. In this case the mouse is obviously considered to be “out of” the main group and over the controls and videoDisplay respectively.

Any clue for that, although this might be the wrong spot for those questions.

Thanks a lot, Christian</description>
		<content:encoded><![CDATA[<p>Sorry, I really need to apologize. I saw that big hint. But forgot the ; behind the &amp;lt and &amp;gt. So here’s my code and my question again:</p>
<p>I encountered another problem. I dont know if this is the right spot to ask for it. Anyway: I’d like to video controls that come with the Spark Video Player to be invisble until the user mouse overs the videoplayer. I did the following in the VideoPlayer Skin Class (only the relevant code blocks):</p>
<p><code></p>
<p>&lt;!-- defining show and hide effects in the declaration block --&gt;<br />
&lt;fx:Declarations&gt;<br />
&lt;!-- effects --&gt;<br />
&lt;s:Fade alphaFrom="0" alphaTo="1" id="fadeIn" /&gt;<br />
&lt;s:Fade alphaFrom="1" alphaTo="0" id="fadeOut" /&gt;<br />
&lt;/fx:Declarations&gt;</p>
<p>&lt;!-- setting event listener for the relevant mouse events --&gt;</p>
<p>&lt;s:Group id="clippedGroup" clipAndEnableScrolling="true" left="0" top="0" right="0" bottom="0"<br />
verticalScrollPosition="{Math.max(0, 184-clippedGroup.height)}"<br />
mouseOver="this.videoPlayerControls.visible=true" mouseOut="this.videoPlayerControls.visible=false"&gt;</p>
<p>&lt;!-- setting show and hide effects for the control group and making it invisible --&gt;</p>
<p>&lt;!-- video player controls --&gt;<br />
&lt;s:Group left="0" right="0" height="24" bottom="0" bottom.fullScreenStates="150"<br />
id="videoPlayerControls"<br />
visible="false"<br />
showEffect="fadeIn" hideEffect="fadeOut"&gt; </p>
<p></code></p>
<p>It works when the mouse pointer enteres the videoplayer and the controls appear. The problem ist, that the controls disappear when the mouse is over the controls (play/pause button, scrubber, etc.) or the videoDisplay. In this case the mouse is obviously considered to be “out of” the main group and over the controls and videoDisplay respectively.</p>
<p>Any clue for that, although this might be the wrong spot for those questions.</p>
<p>Thanks a lot, Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7589</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Mon, 26 Apr 2010 12:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7589</guid>
		<description>Sorry, I really need to apologize. I saw that big hint. But forgot the ; behind the &amp;lt and &amp;gt. So here&#039;s my code again:

 &lt;!-- defining show and hide effects in the declaration block --&gt;
&lt;fx:Declarations&gt;
&lt;!-- effects --&gt;
&lt;s:Fade alphaFrom=&quot;0&quot; alphaTo=&quot;1&quot; id=&quot;fadeIn&quot; /&gt;
&lt;s:Fade alphaFrom=&quot;1&quot; alphaTo=&quot;0&quot; id=&quot;fadeOut&quot; /&gt;
&lt;/fx:Declarations&gt;


 &lt;!-- setting event listener for the relevant mouse events --&gt;

&lt;s:Group id=&quot;clippedGroup&quot; clipAndEnableScrolling=&quot;true&quot; left=&quot;0&quot; top=&quot;0&quot; right=&quot;0&quot; bottom=&quot;0&quot;
verticalScrollPosition=&quot;{Math.max(0, 184-clippedGroup.height)}&quot;
mouseOver=&quot;this.videoPlayerControls.visible=true&quot; mouseOut=&quot;this.videoPlayerControls.visible=false&quot;&gt;


 &lt;!-- setting show and hide effects for the control group and making it invisible --&gt;

&lt;!-- video player controls --&gt;
&lt;s:Group left=&quot;0&quot; right=&quot;0&quot; height=&quot;24&quot; bottom=&quot;0&quot; bottom.fullScreenStates=&quot;150&quot;
id=&quot;videoPlayerControls&quot;
visible=&quot;false&quot;
showEffect=&quot;fadeIn&quot; hideEffect=&quot;fadeOut&quot;&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, I really need to apologize. I saw that big hint. But forgot the ; behind the &amp;lt and &amp;gt. So here&#8217;s my code again:</p>
<p> &lt;!&#8211; defining show and hide effects in the declaration block &#8211;&gt;<br />
&lt;fx:Declarations&gt;<br />
&lt;!&#8211; effects &#8211;&gt;<br />
&lt;s:Fade alphaFrom=&#8221;0&#8243; alphaTo=&#8221;1&#8243; id=&#8221;fadeIn&#8221; /&gt;<br />
&lt;s:Fade alphaFrom=&#8221;1&#8243; alphaTo=&#8221;0&#8243; id=&#8221;fadeOut&#8221; /&gt;<br />
&lt;/fx:Declarations&gt;</p>
<p> &lt;!&#8211; setting event listener for the relevant mouse events &#8211;&gt;</p>
<p>&lt;s:Group id=&#8221;clippedGroup&#8221; clipAndEnableScrolling=&#8221;true&#8221; left=&#8221;0&#8243; top=&#8221;0&#8243; right=&#8221;0&#8243; bottom=&#8221;0&#8243;<br />
verticalScrollPosition=&#8221;{Math.max(0, 184-clippedGroup.height)}&#8221;<br />
mouseOver=&#8221;this.videoPlayerControls.visible=true&#8221; mouseOut=&#8221;this.videoPlayerControls.visible=false&#8221;&gt;</p>
<p> &lt;!&#8211; setting show and hide effects for the control group and making it invisible &#8211;&gt;</p>
<p>&lt;!&#8211; video player controls &#8211;&gt;<br />
&lt;s:Group left=&#8221;0&#8243; right=&#8221;0&#8243; height=&#8221;24&#8243; bottom=&#8221;0&#8243; bottom.fullScreenStates=&#8221;150&#8243;<br />
id=&#8221;videoPlayerControls&#8221;<br />
visible=&#8221;false&#8221;<br />
showEffect=&#8221;fadeIn&#8221; hideEffect=&#8221;fadeOut&#8221;&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7585</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Mon, 26 Apr 2010 05:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7585</guid>
		<description>But, but, but.... It&#039;s 48 point red/white text!</description>
		<content:encoded><![CDATA[<p>But, but, but&#8230;. It&#8217;s 48 point red/white text!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7581</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Sat, 24 Apr 2010 13:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7581</guid>
		<description>sorry for spamming your blog. dont now how to post code... Christian</description>
		<content:encoded><![CDATA[<p>sorry for spamming your blog. dont now how to post code&#8230; Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7580</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Sat, 24 Apr 2010 13:38:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7580</guid>
		<description>Sorry.. the code:

&lt;code&gt;

... &amp;lt!-- defining show and hide effects in the declaration block --&amp;gt
	&amp;ltfx:Declarations&amp;gt
		&amp;lt!-- effects --&amp;gt
		&amp;lts:Fade alphaFrom=&quot;0&quot; alphaTo=&quot;1&quot; id=&quot;fadeIn&quot; /&amp;gt
		&amp;lts:Fade alphaFrom=&quot;1&quot; alphaTo=&quot;0&quot; id=&quot;fadeOut&quot; /&amp;gt	
	&amp;lt/fx:Declarations&amp;gt

... &amp;lt!-- setting event listener for the relevant mouse events --&amp;gt

&amp;lts:Group id=&quot;clippedGroup&quot; clipAndEnableScrolling=&quot;true&quot; left=&quot;0&quot; top=&quot;0&quot; right=&quot;0&quot; bottom=&quot;0&quot; 
             verticalScrollPosition=&quot;{Math.max(0, 184-clippedGroup.height)}&quot;						
			 mouseOver=&quot;this.videoPlayerControls.visible=true&quot; mouseOut=&quot;this.videoPlayerControls.visible=false&quot;&amp;gt

...  &amp;lt!-- setting show and hide effects for the control group and making it invisible --&amp;gt
    
&amp;lt!-- video player controls --&amp;gt
            &amp;lts:Group left=&quot;0&quot; right=&quot;0&quot; height=&quot;24&quot; bottom=&quot;0&quot; bottom.fullScreenStates=&quot;150&quot; 
					 id=&quot;videoPlayerControls&quot;
					 visible=&quot;false&quot;
					 showEffect=&quot;fadeIn&quot; hideEffect=&quot;fadeOut&quot;&amp;gt 


&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Sorry.. the code:</p>
<p><code></p>
<p>... &amp;lt!-- defining show and hide effects in the declaration block --&amp;gt<br />
	&amp;ltfx:Declarations&amp;gt<br />
		&amp;lt!-- effects --&amp;gt<br />
		&amp;lts:Fade alphaFrom="0" alphaTo="1" id="fadeIn" /&amp;gt<br />
		&amp;lts:Fade alphaFrom="1" alphaTo="0" id="fadeOut" /&amp;gt<br />
	&amp;lt/fx:Declarations&amp;gt</p>
<p>... &amp;lt!-- setting event listener for the relevant mouse events --&amp;gt</p>
<p>&amp;lts:Group id="clippedGroup" clipAndEnableScrolling="true" left="0" top="0" right="0" bottom="0"<br />
             verticalScrollPosition="{Math.max(0, 184-clippedGroup.height)}"<br />
			 mouseOver="this.videoPlayerControls.visible=true" mouseOut="this.videoPlayerControls.visible=false"&amp;gt</p>
<p>...  &amp;lt!-- setting show and hide effects for the control group and making it invisible --&amp;gt</p>
<p>&amp;lt!-- video player controls --&amp;gt<br />
            &amp;lts:Group left="0" right="0" height="24" bottom="0" bottom.fullScreenStates="150"<br />
					 id="videoPlayerControls"<br />
					 visible="false"<br />
					 showEffect="fadeIn" hideEffect="fadeOut"&amp;gt </p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7579</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Sat, 24 Apr 2010 13:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7579</guid>
		<description>oh OK... I see... I now understand my second question: If the background rectangle is included in full Screen States, it is simply exclude from the other states. To fully remove it from any state, I have to remove the rectangle from the skin.

I encountered another problem. I dont know if this is the right spot to ask for it. Anyway: I&#039;d like to video controls that come with the Spark Video Player to be invisble until the user mouse overs the videoplayer.  I did the following in the VideoPlayer Skin Class (only the relevant code blocks):

&lt;code&gt;

... &lt;!-- defining show and hide effects in the declaration block --&gt;
	
		&lt;!-- effects --&gt;
		
			
	

... &lt;!-- setting event listener for the relevant mouse events --&gt;



...  &lt;!-- setting show and hide effects for the control group and making it invisible --&gt;
    
&lt;!-- video player controls --&gt;
             


&lt;/code&gt;

It works when the mouse pointer enteres the videoplayer and the controls appear. The problem ist, that the controls disappear when the mouse is over the controls (play/pause button, scrubber, etc.) or the videoDisplay. In this case the mouse is obviously considered to be &quot;out of&quot; the main group and over the controls and videoDisplay respectively.

Any clue for that, although this might be the wrong spot for those questions.

Thanks a lot, Christian</description>
		<content:encoded><![CDATA[<p>oh OK&#8230; I see&#8230; I now understand my second question: If the background rectangle is included in full Screen States, it is simply exclude from the other states. To fully remove it from any state, I have to remove the rectangle from the skin.</p>
<p>I encountered another problem. I dont know if this is the right spot to ask for it. Anyway: I&#8217;d like to video controls that come with the Spark Video Player to be invisble until the user mouse overs the videoplayer.  I did the following in the VideoPlayer Skin Class (only the relevant code blocks):</p>
<p><code></p>
<p>... <!-- defining show and hide effects in the declaration block --></p>
<p>		<!-- effects --></p>
<p>... <!-- setting event listener for the relevant mouse events --></p>
<p>...  <!-- setting show and hide effects for the control group and making it invisible --></p>
<p><!-- video player controls --></p>
<p></code></p>
<p>It works when the mouse pointer enteres the videoplayer and the controls appear. The problem ist, that the controls disappear when the mouse is over the controls (play/pause button, scrubber, etc.) or the videoDisplay. In this case the mouse is obviously considered to be &#8220;out of&#8221; the main group and over the controls and videoDisplay respectively.</p>
<p>Any clue for that, although this might be the wrong spot for those questions.</p>
<p>Thanks a lot, Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7578</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Sat, 24 Apr 2010 12:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7578</guid>
		<description>Oh wow! Yes it also works for me perfectly.  Thanks!!

But I really don&#039;t understand why. But one step after the other
1.)RE: VideoDisplay: Obviously the Spark VideoDisplay recognizes the alpha channel transperency itself. And as you wrote it works without any style set (e.g. contentBackgroundAlpha = 0.0). Thats fine for me so far. But what if I don&#039;t want VideDisplay to use the alpha channel. At the moment this is actually not my problem, but it could become one.

2.)RE: VideoPlayer: Why does including the background rectangle in the full screen state tell the VideoDisplay within the VideoPlayer to use the video&#039;s alpha channel? I&#039;m quite new to Flex4 and maybe I misunterstood some basic concept.

Thanks a lot!
Christian</description>
		<content:encoded><![CDATA[<p>Oh wow! Yes it also works for me perfectly.  Thanks!!</p>
<p>But I really don&#8217;t understand why. But one step after the other<br />
1.)RE: VideoDisplay: Obviously the Spark VideoDisplay recognizes the alpha channel transperency itself. And as you wrote it works without any style set (e.g. contentBackgroundAlpha = 0.0). Thats fine for me so far. But what if I don&#8217;t want VideDisplay to use the alpha channel. At the moment this is actually not my problem, but it could become one.</p>
<p>2.)RE: VideoPlayer: Why does including the background rectangle in the full screen state tell the VideoDisplay within the VideoPlayer to use the video&#8217;s alpha channel? I&#8217;m quite new to Flex4 and maybe I misunterstood some basic concept.</p>
<p>Thanks a lot!<br />
Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7575</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 23 Apr 2010 22:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7575</guid>
		<description>And if you want to display a transparent FLV using the Spark VideoPlayer control you will need to do a custom skin, as seen in the following example:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;
    
    &lt;s:Rect width=&quot;100%&quot; height=&quot;100%&quot;&gt;
        &lt;s:fill&gt;
            &lt;s:LinearGradient rotation=&quot;90&quot;&gt;
                &lt;s:GradientEntry color=&quot;red&quot; /&gt;
                &lt;s:GradientEntry color=&quot;blue&quot; /&gt;
            &lt;/s:LinearGradient&gt;
        &lt;/s:fill&gt;
    &lt;/s:Rect&gt;
    
    &lt;s:VideoPlayer id=&quot;vidDisp&quot;
            source=&quot;walking.flv&quot;
            loop=&quot;true&quot;
            skinClass=&quot;skins.CustomSparkVideoPlayerSkin&quot;
            width=&quot;80%&quot; height=&quot;80%&quot;
            horizontalCenter=&quot;0&quot; verticalCenter=&quot;0&quot; /&gt;
    
&lt;/s:Application&gt;
&lt;/pre&gt;

And the custom Spark VideoPlayer skin, &lt;em&gt;skins/CustomSparkVideoPlayerSkin.mxml&lt;/em&gt;, is as follows:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- A chrome color of 0xCCCCCC in the fullScreenStates means we ignore the chromeColor property 
all together as 0xCCCCCC is essentially just a no-op color transform --&gt;
&lt;s:SparkSkin name=&quot;CustomSparkVideoPlayerSkin&quot;
        xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        xmlns:fb=&quot;http://ns.adobe.com/flashbuilder/2009&quot;
        alpha.disabledStates=&quot;0.5&quot; 
        chromeColor.fullScreenStates=&quot;0xCCCCCC&quot;&gt;
    &lt;!-- states --&gt;
    &lt;s:states&gt;
        &lt;s:State name=&quot;uninitialized&quot; stateGroups=&quot;uninitializedStates, normalStates&quot; /&gt;
        &lt;s:State name=&quot;loading&quot; stateGroups=&quot;loadingStates, normalStates&quot; /&gt;
        &lt;s:State name=&quot;ready&quot; stateGroups=&quot;readyStates, normalStates&quot; /&gt;
        &lt;s:State name=&quot;playing&quot; stateGroups=&quot;playingStates, normalStates&quot; /&gt;
        &lt;s:State name=&quot;paused&quot; stateGroups=&quot;pausedStates, normalStates&quot; /&gt;
        &lt;s:State name=&quot;buffering&quot; stateGroups=&quot;bufferingStates, normalStates&quot; /&gt;
        &lt;s:State name=&quot;playbackError&quot; stateGroups=&quot;playbackErrorStates, normalStates&quot; /&gt;
        &lt;s:State name=&quot;disabled&quot; stateGroups=&quot;disabledStates, normalStates&quot;/&gt;
        &lt;s:State name=&quot;uninitializedAndFullScreen&quot; stateGroups=&quot;uninitializedStates, fullScreenStates&quot; /&gt;
        &lt;s:State name=&quot;loadingAndFullScreen&quot; stateGroups=&quot;loadingStates, fullScreenStates&quot; /&gt;
        &lt;s:State name=&quot;readyAndFullScreen&quot; stateGroups=&quot;readyStates, fullScreenStates&quot; /&gt;
        &lt;s:State name=&quot;playingAndFullScreen&quot; stateGroups=&quot;playingStates, fullScreenStates&quot; /&gt;
        &lt;s:State name=&quot;pausedAndFullScreen&quot; stateGroups=&quot;pausedStates, fullScreenStates&quot; /&gt;
        &lt;s:State name=&quot;bufferingAndFullScreen&quot; stateGroups=&quot;bufferingStates, fullScreenStates&quot; /&gt;
        &lt;s:State name=&quot;playbackErrorAndFullScreen&quot; stateGroups=&quot;playbackErrorStates, fullScreenStates&quot; /&gt;
        &lt;s:State name=&quot;disabledAndFullScreen&quot; stateGroups=&quot;disabledStates, fullScreenStates&quot;/&gt;
    &lt;/s:states&gt;
    
    &lt;!-- host component --&gt;
    &lt;fx:Metadata&gt;
        [HostComponent(&quot;spark.components.VideoPlayer&quot;)]
    &lt;/fx:Metadata&gt;
    
    &lt;fx:Script fb:purpose=&quot;styling&quot;&gt;
        &lt;![CDATA[
            /* Define the skin elements that should not be colorized. */
            static private const exclusions:Array = [&quot;videoDisplay&quot;, &quot;playPauseButton&quot;, &quot;scrubBar&quot;, 
                                                     &quot;currentTimeDisplay&quot;, &quot;timeDivider&quot;, &quot;durationDisplay&quot;, 
                                                     &quot;volumeBar&quot;, &quot;fullScreenButton&quot;];
            
            override protected function initializationComplete():void {
                useChromeColor = true;
                super.initializationComplete();
            }
            
            override public function get colorizeExclusions():Array {
                return exclusions;
            }
            
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
                dropShadow.visible = getStyle(&quot;dropShadowVisible&quot;);
                
                super.updateDisplayList(unscaledWidth, unscaledHeight);
            }
        ]]&gt;
    &lt;/fx:Script&gt;
    
    &lt;!-- drop shadow --&gt;
    &lt;s:RectangularDropShadow id=&quot;dropShadow&quot; blurX=&quot;17&quot; blurY=&quot;17&quot; alpha=&quot;0.32&quot; distance=&quot;4&quot; 
                angle=&quot;90&quot; color=&quot;#131313&quot; left=&quot;0&quot; top=&quot;0&quot; right=&quot;0&quot; bottom=&quot;0&quot; 
                excludeFrom=&quot;fullScreenStates&quot;/&gt;
    
    &lt;!--- Video and player controls are clipped if they exceed the size of the 
          component, but the drop shadow above is not clipped and sizes to the component.
          We also set verticalScrollPosition so that when we do clip, rather than clipping  
          off the bottom first, we clip off the top fist.  This is so the player controls 
          are still visible when we start clipping. --&gt;
    &lt;s:Group id=&quot;clippedGroup&quot; clipAndEnableScrolling=&quot;true&quot; left=&quot;0&quot; top=&quot;0&quot; right=&quot;0&quot; bottom=&quot;0&quot; 
             verticalScrollPosition=&quot;{Math.max(0, 184-clippedGroup.height)}&quot;&gt;
        &lt;!-- There&#039;s a minimum size for the video and controls.  If we go below that
             we are clipped. --&gt;
        &lt;s:Group minWidth=&quot;263&quot; minHeight=&quot;184&quot; left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot;&gt;
            &lt;!-- background when the videoDisplay doesn&#039;t fill its whole spot --&gt;
            &lt;s:Rect bottom=&quot;1&quot; left=&quot;1&quot; right=&quot;1&quot; top=&quot;1&quot;
                    bottom.fullScreenStates=&quot;0&quot; left.fullScreenStates=&quot;0&quot; 
                    right.fullScreenStates=&quot;0&quot; top.fullScreenStates=&quot;0&quot;
                    includeIn=&quot;fullScreenStates&quot;&gt;
                &lt;s:fill&gt;
                    &lt;s:SolidColor color=&quot;0x000000&quot; /&gt;
                &lt;/s:fill&gt;
            &lt;/s:Rect&gt;
            
            &lt;s:VideoDisplay id=&quot;videoDisplay&quot; bottom=&quot;24&quot; left=&quot;1&quot; right=&quot;1&quot; top=&quot;1&quot; 
                            bottom.fullScreenStates=&quot;0&quot; left.fullScreenStates=&quot;0&quot; 
                            right.fullScreenStates=&quot;0&quot; top.fullScreenStates=&quot;0&quot; /&gt;
            
            &lt;!-- video player controls --&gt;
            &lt;s:Group left=&quot;0&quot; right=&quot;0&quot; height=&quot;24&quot; bottom=&quot;0&quot; bottom.fullScreenStates=&quot;150&quot;&gt;
                &lt;!-- actual controls with a maxWidth in non-fullScreen mode --&gt;
                &lt;s:Group bottom=&quot;0&quot; horizontalCenter=&quot;0&quot; left=&quot;0&quot; right=&quot;0&quot; maxWidth.fullScreenStates=&quot;755&quot; id=&quot;playerControls&quot;&gt;
                    &lt;s:ToggleButton id=&quot;playPauseButton&quot; left=&quot;0&quot; bottom=&quot;0&quot; 
                            skinClass=&quot;spark.skins.spark.mediaClasses.normal.PlayPauseButtonSkin&quot; 
                            skinClass.fullScreenStates=&quot;spark.skins.spark.mediaClasses.fullScreen.PlayPauseButtonSkin&quot;
                            layoutDirection=&quot;ltr&quot;
                            focusIn=&quot;event.target.depth=1&quot; focusOut=&quot;event.target.depth=0&quot; /&gt;
                    
                    &lt;!-- scrubbar + the currentTime/duration labels --&gt;
                    &lt;s:Group left=&quot;39&quot; right=&quot;75&quot; top=&quot;0&quot; bottom=&quot;0&quot;&gt;
                          
                        &lt;!-- background for scrubbar + the currentTime/duration --&gt;
                        &lt;s:Rect left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot;&gt;
                            &lt;s:fill&gt;
                                &lt;s:LinearGradient rotation=&quot;90&quot;&gt;
                                    &lt;s:GradientEntry color=&quot;0xFFFFFF&quot; color.fullScreenStates=&quot;0x585858&quot; alpha.fullScreenStates=&quot;0.55&quot;/&gt;
                                    &lt;s:GradientEntry color=&quot;0xDCDCDC&quot; color.fullScreenStates=&quot;0x1E1E1E&quot; alpha.fullScreenStates=&quot;0.55&quot;/&gt;
                                &lt;/s:LinearGradient&gt;
                            &lt;/s:fill&gt;
                        &lt;/s:Rect&gt;
                        
                        &lt;!-- fill highlight  (exclude in fullScreen) --&gt;
                        &lt;s:Rect left=&quot;1&quot; right=&quot;1&quot; top=&quot;1&quot; height=&quot;11&quot; excludeFrom=&quot;fullScreenStates&quot;&gt;
                            &lt;s:fill&gt;
                                &lt;s:SolidColor color=&quot;0xFFFFFF&quot; alpha=&quot;0.3&quot; /&gt;
                            &lt;/s:fill&gt;
                        &lt;/s:Rect&gt;
                        
                        &lt;!-- one pixel border --&gt;
                        &lt;s:Rect left=&quot;1&quot; right=&quot;1&quot; top=&quot;1&quot; bottom=&quot;1&quot;&gt;
                            &lt;s:stroke&gt;
                                &lt;s:LinearGradientStroke weight=&quot;1&quot; rotation=&quot;90&quot;&gt;
                                    &lt;s:GradientEntry color=&quot;0xFEFEFE&quot; color.fullScreenStates=&quot;0xFFFFFF&quot; alpha.fullScreenStates=&quot;0.12&quot; /&gt;
                                    &lt;s:GradientEntry color=&quot;0xEAEAEA&quot; color.fullScreenStates=&quot;0xFFFFFF&quot; alpha.fullScreenStates=&quot;0.09&quot; /&gt;
                                &lt;/s:LinearGradientStroke&gt;
                            &lt;/s:stroke&gt;
                        &lt;/s:Rect&gt;
                        
                        &lt;!-- border for the scrubbar/time label controls --&gt;
                        &lt;s:Rect left=&quot;-1&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot;&gt;
                            &lt;s:stroke&gt;
                                &lt;s:SolidColorStroke color=&quot;0x131313&quot; color.fullScreenStates=&quot;0x222222&quot; alpha.fullScreenStates=&quot;0.66&quot;  /&gt;
                            &lt;/s:stroke&gt;
                        &lt;/s:Rect&gt;
                        
                        &lt;!-- scrub bar + currentTime/duration in a HorizontalLayout --&gt;
                        &lt;s:Group left=&quot;0&quot; right=&quot;0&quot; height=&quot;23&quot; bottom=&quot;0&quot;&gt;
                            &lt;s:layout&gt;
                                &lt;s:HorizontalLayout verticalAlign=&quot;middle&quot; gap=&quot;1&quot; /&gt;
                            &lt;/s:layout&gt;
                            
                            &lt;!-- spacer --&gt;
                            &lt;s:Rect width=&quot;7&quot; height=&quot;1&quot; /&gt;
                            
                            &lt;s:ScrubBar id=&quot;scrubBar&quot; width=&quot;100%&quot; liveDragging=&quot;true&quot;
                                    skinClass=&quot;spark.skins.spark.mediaClasses.normal.ScrubBarSkin&quot;
                                    skinClass.fullScreenStates=&quot;spark.skins.spark.mediaClasses.fullScreen.ScrubBarSkin&quot; /&gt;
                            
                            &lt;!-- spacer --&gt;
                            &lt;s:Rect width=&quot;8&quot; height=&quot;1&quot; /&gt;
                            
                            &lt;s:Label id=&quot;currentTimeDisplay&quot; color.fullScreenStates=&quot;0xFFFFFF&quot; /&gt;
                            
                            &lt;s:Label id=&quot;timeDivider&quot; text=&quot;/&quot; color.fullScreenStates=&quot;0xFFFFFF&quot; /&gt;
                            
                            &lt;s:Label id=&quot;durationDisplay&quot; color.fullScreenStates=&quot;0xFFFFFF&quot; /&gt;
                            
                            &lt;!-- spacer --&gt;
                            &lt;s:Rect width=&quot;8&quot; height=&quot;1&quot; /&gt;
                        &lt;/s:Group&gt;
                    &lt;/s:Group&gt;
                    
                    &lt;s:VolumeBar id=&quot;volumeBar&quot; snapInterval=&quot;.01&quot; stepSize=&quot;.01&quot; liveDragging=&quot;true&quot;
                            right=&quot;37&quot; bottom=&quot;0&quot; 
                            layoutDirection=&quot;ltr&quot;
                            skinClass=&quot;spark.skins.spark.mediaClasses.normal.VolumeBarSkin&quot;
                            skinClass.fullScreenStates=&quot;spark.skins.spark.mediaClasses.fullScreen.VolumeBarSkin&quot;
                            focusIn=&quot;event.target.depth=1&quot; focusOut=&quot;event.target.depth=0&quot; /&gt;
                    
                    &lt;s:Button id=&quot;fullScreenButton&quot; right=&quot;0&quot; bottom=&quot;0&quot; label=&quot;Fullscreen&quot; 
                            skinClass=&quot;spark.skins.spark.mediaClasses.normal.FullScreenButtonSkin&quot;
                            skinClass.fullScreenStates=&quot;spark.skins.spark.mediaClasses.fullScreen.FullScreenButtonSkin&quot;
                            focusIn=&quot;event.target.depth=1&quot; focusOut=&quot;event.target.depth=0&quot; /&gt;
                &lt;/s:Group&gt;
            &lt;/s:Group&gt;
            
            &lt;!-- border --&gt;
            &lt;s:Rect left=&quot;0&quot; right=&quot;0&quot; top=&quot;0&quot; bottom=&quot;0&quot; excludeFrom=&quot;fullScreenStates&quot;&gt;
                &lt;s:stroke&gt;
                    &lt;s:SolidColorStroke color=&quot;0x131313&quot; /&gt;
                &lt;/s:stroke&gt;
            &lt;/s:Rect&gt;
        &lt;/s:Group&gt;
    &lt;/s:Group&gt;
    
&lt;/s:SparkSkin&gt;
&lt;/pre&gt;

Basically it is the same as the default Spark VideoPlayerSkin except I only include the background Rect in the full screen states:
&lt;pre lang=&quot;mxml&quot;&gt;
           &lt;!-- background when the videoDisplay doesn&#039;t fill its whole spot --&gt;
            &lt;s:Rect bottom=&quot;1&quot; left=&quot;1&quot; right=&quot;1&quot; top=&quot;1&quot;
                    bottom.fullScreenStates=&quot;0&quot; left.fullScreenStates=&quot;0&quot; 
                    right.fullScreenStates=&quot;0&quot; top.fullScreenStates=&quot;0&quot;
                    includeIn=&quot;fullScreenStates&quot;&gt;
                &lt;s:fill&gt;
                    &lt;s:SolidColor color=&quot;0x000000&quot; /&gt;
                &lt;/s:fill&gt;
            &lt;/s:Rect&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>And if you want to display a transparent FLV using the Spark VideoPlayer control you will need to do a custom skin, as seen in the following example:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:LinearGradient</span> rotation=<span style="color: #ff0000;">&quot;90&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;red&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;blue&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:LinearGradient</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:VideoPlayer</span> id=<span style="color: #ff0000;">&quot;vidDisp&quot;</span></span>
<span style="color: #000000;">            source=<span style="color: #ff0000;">&quot;walking.flv&quot;</span></span>
<span style="color: #000000;">            loop=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">            skinClass=<span style="color: #ff0000;">&quot;skins.CustomSparkVideoPlayerSkin&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;80%&quot;</span> height=<span style="color: #ff0000;">&quot;80%&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>And the custom Spark VideoPlayer skin, <em>skins/CustomSparkVideoPlayerSkin.mxml</em>, is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- A chrome color of 0xCCCCCC in the fullScreenStates means we ignore the chromeColor property </span>
<span style="color: #000000;">all together as 0xCCCCCC is essentially just a no-op color transform --&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SparkSkin</span> name=<span style="color: #ff0000;">&quot;CustomSparkVideoPlayerSkin&quot;</span></span>
<span style="color: #000000;">        xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:fb=<span style="color: #ff0000;">&quot;http://ns.adobe.com/flashbuilder/2009&quot;</span></span>
<span style="color: #000000;">        alpha.disabledStates=<span style="color: #ff0000;">&quot;0.5&quot;</span> </span>
<span style="color: #000000;">        chromeColor.fullScreenStates=<span style="color: #ff0000;">&quot;0xCCCCCC&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- states --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:states</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;uninitialized&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;uninitializedStates, normalStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;loading&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;loadingStates, normalStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;ready&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;readyStates, normalStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;playing&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;playingStates, normalStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;paused&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;pausedStates, normalStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;buffering&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;bufferingStates, normalStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;playbackError&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;playbackErrorStates, normalStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;disabled&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;disabledStates, normalStates&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;uninitializedAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;uninitializedStates, fullScreenStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;loadingAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;loadingStates, fullScreenStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;readyAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;readyStates, fullScreenStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;playingAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;playingStates, fullScreenStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;pausedAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;pausedStates, fullScreenStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;bufferingAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;bufferingStates, fullScreenStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;playbackErrorAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;playbackErrorStates, fullScreenStates&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:State</span> name=<span style="color: #ff0000;">&quot;disabledAndFullScreen&quot;</span> stateGroups=<span style="color: #ff0000;">&quot;disabledStates, fullScreenStates&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:states</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- host component --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Metadata</span><span style="color: #7400FF;">&gt;</span></span>
        [HostComponent(&quot;spark.components.VideoPlayer&quot;)]
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Metadata</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;fx:Script</span> fb:purpose=<span style="color: #ff0000;">&quot;styling&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">            /* Define the skin elements that should not be colorized. */</span>
<span style="color: #000000;">            static private const exclusions:Array = <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;videoDisplay&quot;</span>, <span style="color: #ff0000;">&quot;playPauseButton&quot;</span>, <span style="color: #ff0000;">&quot;scrubBar&quot;</span>, </span>
<span style="color: #000000;">                                                     <span style="color: #ff0000;">&quot;currentTimeDisplay&quot;</span>, <span style="color: #ff0000;">&quot;timeDivider&quot;</span>, <span style="color: #ff0000;">&quot;durationDisplay&quot;</span>, </span>
<span style="color: #000000;">                                                     <span style="color: #ff0000;">&quot;volumeBar&quot;</span>, <span style="color: #ff0000;">&quot;fullScreenButton&quot;</span><span style="color: #66cc66;">&#93;</span>;</span>
&nbsp;
<span style="color: #000000;">            override protected function initializationComplete<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                useChromeColor = true;</span>
<span style="color: #000000;">                super.initializationComplete<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            override public function get colorizeExclusions<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:Array <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                return exclusions;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
&nbsp;
<span style="color: #000000;">            override protected function updateDisplayList<span style="color: #66cc66;">&#40;</span>unscaledWidth:Number, unscaledHeight:Number<span style="color: #66cc66;">&#41;</span>:void <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #000000;">                dropShadow.visible = getStyle<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;dropShadowVisible&quot;</span><span style="color: #66cc66;">&#41;</span>;</span>
&nbsp;
<span style="color: #000000;">                super.updateDisplayList<span style="color: #66cc66;">&#40;</span>unscaledWidth, unscaledHeight<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #000000;">            <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #000000;">        <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/fx:Script</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- drop shadow --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:RectangularDropShadow</span> id=<span style="color: #ff0000;">&quot;dropShadow&quot;</span> blurX=<span style="color: #ff0000;">&quot;17&quot;</span> blurY=<span style="color: #ff0000;">&quot;17&quot;</span> alpha=<span style="color: #ff0000;">&quot;0.32&quot;</span> distance=<span style="color: #ff0000;">&quot;4&quot;</span> </span>
<span style="color: #000000;">                angle=<span style="color: #ff0000;">&quot;90&quot;</span> color=<span style="color: #ff0000;">&quot;#131313&quot;</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> </span>
<span style="color: #000000;">                excludeFrom=<span style="color: #ff0000;">&quot;fullScreenStates&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!--- Video and player controls are clipped if they exceed the size of the </span>
<span style="color: #000000;">          component, but the drop shadow above is not clipped and sizes to the component.</span>
<span style="color: #000000;">          We also set verticalScrollPosition so that when we do clip, rather than clipping  </span>
<span style="color: #000000;">          off the bottom first, we clip off the top fist.  This is so the player controls </span>
<span style="color: #000000;">          are still visible when we start clipping. --&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> id=<span style="color: #ff0000;">&quot;clippedGroup&quot;</span> clipAndEnableScrolling=<span style="color: #ff0000;">&quot;true&quot;</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> </span>
<span style="color: #000000;">             verticalScrollPosition=<span style="color: #ff0000;">&quot;{Math.max(0, 184-clippedGroup.height)}&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- There's a minimum size for the video and controls.  If we go below that</span>
<span style="color: #000000;">             we are clipped. --&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> minWidth=<span style="color: #ff0000;">&quot;263&quot;</span> minHeight=<span style="color: #ff0000;">&quot;184&quot;</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- background when the videoDisplay doesn't fill its whole spot --&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> bottom=<span style="color: #ff0000;">&quot;1&quot;</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span></span>
<span style="color: #000000;">                    bottom.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> left.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> </span>
<span style="color: #000000;">                    right.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> top.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">                    includeIn=<span style="color: #ff0000;">&quot;fullScreenStates&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColor</span> color=<span style="color: #ff0000;">&quot;0x000000&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:VideoDisplay</span> id=<span style="color: #ff0000;">&quot;videoDisplay&quot;</span> bottom=<span style="color: #ff0000;">&quot;24&quot;</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span> </span>
<span style="color: #000000;">                            bottom.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> left.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> </span>
<span style="color: #000000;">                            right.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> top.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- video player controls --&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> height=<span style="color: #ff0000;">&quot;24&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> bottom.fullScreenStates=<span style="color: #ff0000;">&quot;150&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- actual controls with a maxWidth in non-fullScreen mode --&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> maxWidth.fullScreenStates=<span style="color: #ff0000;">&quot;755&quot;</span> id=<span style="color: #ff0000;">&quot;playerControls&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ToggleButton</span> id=<span style="color: #ff0000;">&quot;playPauseButton&quot;</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> </span>
<span style="color: #000000;">                            skinClass=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.normal.PlayPauseButtonSkin&quot;</span> </span>
<span style="color: #000000;">                            skinClass.fullScreenStates=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.fullScreen.PlayPauseButtonSkin&quot;</span></span>
<span style="color: #000000;">                            layoutDirection=<span style="color: #ff0000;">&quot;ltr&quot;</span></span>
<span style="color: #000000;">                            focusIn=<span style="color: #ff0000;">&quot;event.target.depth=1&quot;</span> focusOut=<span style="color: #ff0000;">&quot;event.target.depth=0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                    <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- scrubbar + the currentTime/duration labels --&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> left=<span style="color: #ff0000;">&quot;39&quot;</span> right=<span style="color: #ff0000;">&quot;75&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
                        <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- background for scrubbar + the currentTime/duration --&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
                                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:LinearGradient</span> rotation=<span style="color: #ff0000;">&quot;90&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0x585858&quot;</span> alpha.fullScreenStates=<span style="color: #ff0000;">&quot;0.55&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xDCDCDC&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0x1E1E1E&quot;</span> alpha.fullScreenStates=<span style="color: #ff0000;">&quot;0.55&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
                                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:LinearGradient</span><span style="color: #7400FF;">&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
                        <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- fill highlight  (exclude in fullScreen) --&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span> height=<span style="color: #ff0000;">&quot;11&quot;</span> excludeFrom=<span style="color: #ff0000;">&quot;fullScreenStates&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
                                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColor</span> color=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> alpha=<span style="color: #ff0000;">&quot;0.3&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
                        <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- one pixel border --&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span> bottom=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
                                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:LinearGradientStroke</span> weight=<span style="color: #ff0000;">&quot;1&quot;</span> rotation=<span style="color: #ff0000;">&quot;90&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xFEFEFE&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> alpha.fullScreenStates=<span style="color: #ff0000;">&quot;0.12&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;0xEAEAEA&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> alpha.fullScreenStates=<span style="color: #ff0000;">&quot;0.09&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:LinearGradientStroke</span><span style="color: #7400FF;">&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
                        <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- border for the scrubbar/time label controls --&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;-1&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
                                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColorStroke</span> color=<span style="color: #ff0000;">&quot;0x131313&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0x222222&quot;</span> alpha.fullScreenStates=<span style="color: #ff0000;">&quot;0.66&quot;</span>  <span style="color: #7400FF;">/&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
                        <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- scrub bar + currentTime/duration in a HorizontalLayout --&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Group</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> height=<span style="color: #ff0000;">&quot;23&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:layout</span><span style="color: #7400FF;">&gt;</span></span>
                                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:HorizontalLayout</span> verticalAlign=<span style="color: #ff0000;">&quot;middle&quot;</span> gap=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:layout</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
                            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- spacer --&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> width=<span style="color: #ff0000;">&quot;7&quot;</span> height=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:ScrubBar</span> id=<span style="color: #ff0000;">&quot;scrubBar&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> liveDragging=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                                    skinClass=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.normal.ScrubBarSkin&quot;</span></span>
<span style="color: #000000;">                                    skinClass.fullScreenStates=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.fullScreen.ScrubBarSkin&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- spacer --&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> width=<span style="color: #ff0000;">&quot;8&quot;</span> height=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;currentTimeDisplay&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;timeDivider&quot;</span> text=<span style="color: #ff0000;">&quot;/&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Label</span> id=<span style="color: #ff0000;">&quot;durationDisplay&quot;</span> color.fullScreenStates=<span style="color: #ff0000;">&quot;0xFFFFFF&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- spacer --&gt;</span></span>
                            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> width=<span style="color: #ff0000;">&quot;8&quot;</span> height=<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:VolumeBar</span> id=<span style="color: #ff0000;">&quot;volumeBar&quot;</span> snapInterval=<span style="color: #ff0000;">&quot;.01&quot;</span> stepSize=<span style="color: #ff0000;">&quot;.01&quot;</span> liveDragging=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">                            right=<span style="color: #ff0000;">&quot;37&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> </span>
<span style="color: #000000;">                            layoutDirection=<span style="color: #ff0000;">&quot;ltr&quot;</span></span>
<span style="color: #000000;">                            skinClass=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.normal.VolumeBarSkin&quot;</span></span>
<span style="color: #000000;">                            skinClass.fullScreenStates=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.fullScreen.VolumeBarSkin&quot;</span></span>
<span style="color: #000000;">                            focusIn=<span style="color: #ff0000;">&quot;event.target.depth=1&quot;</span> focusOut=<span style="color: #ff0000;">&quot;event.target.depth=0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Button</span> id=<span style="color: #ff0000;">&quot;fullScreenButton&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> label=<span style="color: #ff0000;">&quot;Fullscreen&quot;</span> </span>
<span style="color: #000000;">                            skinClass=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.normal.FullScreenButtonSkin&quot;</span></span>
<span style="color: #000000;">                            skinClass.fullScreenStates=<span style="color: #ff0000;">&quot;spark.skins.spark.mediaClasses.fullScreen.FullScreenButtonSkin&quot;</span></span>
<span style="color: #000000;">                            focusIn=<span style="color: #ff0000;">&quot;event.target.depth=1&quot;</span> focusOut=<span style="color: #ff0000;">&quot;event.target.depth=0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
            <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- border --&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> left=<span style="color: #ff0000;">&quot;0&quot;</span> right=<span style="color: #ff0000;">&quot;0&quot;</span> top=<span style="color: #ff0000;">&quot;0&quot;</span> bottom=<span style="color: #ff0000;">&quot;0&quot;</span> excludeFrom=<span style="color: #ff0000;">&quot;fullScreenStates&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColorStroke</span> color=<span style="color: #ff0000;">&quot;0x131313&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:stroke</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Group</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:SparkSkin</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Basically it is the same as the default Spark VideoPlayerSkin except I only include the background Rect in the full screen states:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;">           <span style="color: #000000;"><span style="color: #808080; font-style: italic;">&lt;!-- background when the videoDisplay doesn't fill its whole spot --&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> bottom=<span style="color: #ff0000;">&quot;1&quot;</span> left=<span style="color: #ff0000;">&quot;1&quot;</span> right=<span style="color: #ff0000;">&quot;1&quot;</span> top=<span style="color: #ff0000;">&quot;1&quot;</span></span>
<span style="color: #000000;">                    bottom.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> left.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> </span>
<span style="color: #000000;">                    right.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span> top.fullScreenStates=<span style="color: #ff0000;">&quot;0&quot;</span></span>
<span style="color: #000000;">                    includeIn=<span style="color: #ff0000;">&quot;fullScreenStates&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
                    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:SolidColor</span> color=<span style="color: #ff0000;">&quot;0x000000&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2010/01/21/displaying-a-semi-transparent-flv-file-in-an-mx-videodisplay-control-in-flex-4/comment-page-1/#comment-7574</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 23 Apr 2010 22:33:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/?p=2327#comment-7574</guid>
		<description>Sorry, I should have read my own post above...

This works for me using the Spark VideoDisplay control:
&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot;
        xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot;
        xmlns:mx=&quot;library://ns.adobe.com/flex/mx&quot;&gt;
    
    &lt;s:Rect width=&quot;100%&quot; height=&quot;100%&quot;&gt;
        &lt;s:fill&gt;
            &lt;s:LinearGradient rotation=&quot;90&quot;&gt;
                &lt;s:GradientEntry color=&quot;red&quot; /&gt;
                &lt;s:GradientEntry color=&quot;blue&quot; /&gt;
            &lt;/s:LinearGradient&gt;
        &lt;/s:fill&gt;
    &lt;/s:Rect&gt;
    
    &lt;s:VideoDisplay id=&quot;vidDisp&quot;
            source=&quot;walking.flv&quot;
            loop=&quot;true&quot;
            width=&quot;80%&quot; height=&quot;80%&quot;
            horizontalCenter=&quot;0&quot; verticalCenter=&quot;0&quot; /&gt;
    
&lt;/s:Application&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Sorry, I should have read my own post above&#8230;</p>
<p>This works for me using the Spark VideoDisplay control:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Application</span> xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span>
<span style="color: #000000;">        xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:Rect</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:fill</span><span style="color: #7400FF;">&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:LinearGradient</span> rotation=<span style="color: #ff0000;">&quot;90&quot;</span><span style="color: #7400FF;">&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;red&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
                <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:GradientEntry</span> color=<span style="color: #ff0000;">&quot;blue&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
            <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:LinearGradient</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:fill</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Rect</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;s:VideoDisplay</span> id=<span style="color: #ff0000;">&quot;vidDisp&quot;</span></span>
<span style="color: #000000;">            source=<span style="color: #ff0000;">&quot;walking.flv&quot;</span></span>
<span style="color: #000000;">            loop=<span style="color: #ff0000;">&quot;true&quot;</span></span>
<span style="color: #000000;">            width=<span style="color: #ff0000;">&quot;80%&quot;</span> height=<span style="color: #ff0000;">&quot;80%&quot;</span></span>
<span style="color: #000000;">            horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> verticalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #7400FF;">/&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/s:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>

