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
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;