Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

FLVPlayback AS3, FullScreen problems

New Here ,
Sep 26, 2008 Sep 26, 2008
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";
TOPICS
ActionScript
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 30, 2013 Dec 30, 2013
LATEST

Try

flvPlayer.align = VideAlign.CENTER;

flvPlayer.scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIO;

flvPlayer.fullScreenTakeOver = true;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines