0
FLVPlayback AS3, FullScreen problems
New Here
,
/t5/animate-discussions/flvplayback-as3-fullscreen-problems/td-p/848184
Sep 26, 2008
Sep 26, 2008
Copy link to clipboard
Copied
Hello
I'm using the FLVPlayback (loading it with AS 3, named flvPlayer) component with a skin that has the FullScreen button. I'm using the following code to make the stage fit the screen:
stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.displayState = StageDisplayState.FULL_SCREEN;
What I need is the movie to load at 800 x 600 at specified x and y coords, and only go to fullscreen after the user clicks the button on the skin. If I set flvPlayer.fullScreenTakeOver = false; everything looks as it should but obviously the video does not go to fullscreen. If I set fullScreenTakeOver = true; The video loads at the size of the screen, but is loaded at the x and y coords. Thank you in advance for your help, I appreciate it!
//Code on the Main Timeline
var flvPlayer:FLVPlayback = new FLVPlayback();
flvPlayer.skinAutoHide = true;
flvPlayer.fullScreenTakeOver = false;
flvPlayer.width = 800;
flvPlayer.height = 600;
//Code within a movieClip MouseEvent
addChild(flvPlayer);
flvPlayer.x = 730;
flvPlayer.y = 370;
flvPlayer.skin = "C:/Program Files/Adobe/Adobe Flash CS3/en/Configuration/FLVPlayback Skins/ActionScript 3.0/SkinOverAllNoCaption.swf";
flvPlayer.source = "Asia_Pac_History.flv";
I'm using the FLVPlayback (loading it with AS 3, named flvPlayer) component with a skin that has the FullScreen button. I'm using the following code to make the stage fit the screen:
stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.displayState = StageDisplayState.FULL_SCREEN;
What I need is the movie to load at 800 x 600 at specified x and y coords, and only go to fullscreen after the user clicks the button on the skin. If I set flvPlayer.fullScreenTakeOver = false; everything looks as it should but obviously the video does not go to fullscreen. If I set fullScreenTakeOver = true; The video loads at the size of the screen, but is loaded at the x and y coords. Thank you in advance for your help, I appreciate it!
//Code on the Main Timeline
var flvPlayer:FLVPlayback = new FLVPlayback();
flvPlayer.skinAutoHide = true;
flvPlayer.fullScreenTakeOver = false;
flvPlayer.width = 800;
flvPlayer.height = 600;
//Code within a movieClip MouseEvent
addChild(flvPlayer);
flvPlayer.x = 730;
flvPlayer.y = 370;
flvPlayer.skin = "C:/Program Files/Adobe/Adobe Flash CS3/en/Configuration/FLVPlayback Skins/ActionScript 3.0/SkinOverAllNoCaption.swf";
flvPlayer.source = "Asia_Pac_History.flv";
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
LATEST
/t5/animate-discussions/flvplayback-as3-fullscreen-problems/m-p/848185#M19634
Dec 30, 2013
Dec 30, 2013
Copy link to clipboard
Copied
Try
flvPlayer.align = VideAlign.CENTER;
flvPlayer.scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIO;
flvPlayer.fullScreenTakeOver = true;
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

