<?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>NewSourceMedia Blog &#187; flv</title>
	<atom:link href="http://newsourcemedia.com/blog/tag/flv/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Fri, 30 Dec 2011 04:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Flash AS3 using FLVPlayback and Full Screen Mode</title>
		<link>http://newsourcemedia.com/blog/flash-as3-using-flvplayback-and-full-screen-mode/</link>
		<comments>http://newsourcemedia.com/blog/flash-as3-using-flvplayback-and-full-screen-mode/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fullscreen Window]]></category>
		<category><![CDATA[flash as3]]></category>
		<category><![CDATA[flash cs3]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[flvplayback]]></category>
		<category><![CDATA[fullscreen]]></category>
		<category><![CDATA[FULL_SCREEN]]></category>
		<category><![CDATA[scale]]></category>
		<category><![CDATA[skin]]></category>
		<category><![CDATA[stage]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2008/02/23/flash-as3-using-flvplayback-and-full-screen-mode/</guid>
		<description><![CDATA[How to use the flash Full Screen Mode and video FLVPlayback Component for scaling your stage and movieclips. Today I have come to learn that you can create your own full screen button like the built-in button function from the &#8230; <a href="http://newsourcemedia.com/blog/flash-as3-using-flvplayback-and-full-screen-mode/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[How to use the flash Full Screen Mode and video FLVPlayback Component for scaling your stage and movieclips.
<span id="more-155"></span>

Today I have come to learn that you can create your own full screen button like the built-in button function from the FLV player skin in Flash CS3.

Here is the code:
<p class="code">// things you may import in the future to customize this code
import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.display.StageDisplayState;

<p class="code">myButton.addEventListener(MouseEvent.MOUSE_UP,function(evt:MouseEvent):void
{
stage.displayState = StageDisplayState.FULL_SCREEN
//or set it to normal like: stage.displayState = StageDisplayState.NORMAL;
}
);
<h3>Problem: Video is taking over the screen. Where did my text, graphics and buttons go?</h3>
When displaying  video in your flash file by using <strong>FLVPlayback</strong> and you enter Full Screen Mode, the video will take over the screen. To prevent this from happening, you will have to add the code below:
<em>
NOTE: When the stage enters full-screen mode, the FLVPlayback component is on top of all content and takes over the entire screen. When the stage exits full-screen mode, the screen returns to how it was before.</em>
<p class="code">// say your FLVPlayback component is named "myPlayer":
myPlayer.fullScreenTakeOver = false;

This can also be used to fix the playback in  flash Projector files as well.
<h3>Edit your html file in three places to allow full screen mode</h3>
One more thing to note is that you will have to edit your html page to allow for Full Screen Mode viewing. Publish your flash with the html option and open your html page. and look for <strong>"allowFullScreen"</strong> in three places:

1) Javascript AC_FL_RunContent code

2) Flash Object tag

3) Flash Embed tag

and set them all to "true".]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/flash-as3-using-flvplayback-and-full-screen-mode/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
