header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
osama
Points:0
Posts:0

6/3/2010 3:41:30 PM

Title: how to add the code to swich between stageScaleMode= normal & fullscreen using FLV Component


how can i add the code for swiching between normal and fullscreen stage using the fullScreenButton in FLVplayback component in flash CS4

which make my application still in fullscreen while i display FLV in fullscreen or normal

can any one help me and explain this issue PLZ



1
Dave
Points: 970
Posts:1
6/3/2010 10:13:01 PM



check this actionscript 3.0 code sample to switch the screen to fullscreen mode and also the fix to avoid fullscreen of FLVPlayBack component on stage.


import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.display.StageDisplayState;
//set fullscreen mode of stage
myFullScreenButton.addEventListener(MouseEvent.MOUSE_UP,function(evt:MouseEvent):void
{
stage.displayState = StageDisplayState.FULL_SCREEN
}
);
//set screen to normal
myNormalScreenButton.addEventListener(MouseEvent.MOUSE_UP,function(evt:MouseEvent):void
{
stage.displayState = StageDisplayState.NORMAL;
}
);

//"yourFlvPlayBack" is your instance name of FlvPlayBack component
//set it to false so that it does not take control of full screen
yourFlvPlayBack.fullScreenTakeOver = false;



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 5+7 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions