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

FLVPlayback AS3, Help Please

New Here ,
Sep 30, 2008 Sep 30, 2008

Copy link to clipboard

Copied

Is there a way to get the FLVPlayback to work correctly in fullscreen if the stage is set to fullscreen?

some gen. info about the file, and what I would like to happen:
The project I'm working on is 1600 x 1200. On the left side is a navigation menu with dropdowns and so forth. All of the sublinks bring up an 800x600 movie on the right side. So when a sublink is clicked I just want the movie to be shown at 800x600 on the right side. Then, if the user wants, they can click the FLVPlayback fullscreen button to make the video fullscreen. The videos should only be full screen after the button has been clicked.

What seems to be my problem is that I need the stage to be fullscreen, no windows or border or anything. Currently I have
stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.displayState = StageDisplayState.FULL_SCREEN;

If I have the FLVPlayback property fullScreenTakeOver = true; the video loads fullscreen, bad. If I have fullScreenTakeOver = false, when the fullscreen btn is clicked the stage is taken out of fullscreen. The only way i can get close to getting what I'd like is by Not setting the stage to fullscreen and setting the takeOver property to true(Everything works fine, but the swf does not take up the whole screen, it is in window mode).

Thanks to all in advance!! If I need to explain it better, please let me know.

TOPICS
ActionScript

Views

764
Translate

Report

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

correct answers 1 Correct answer

Community Expert , Oct 01, 2008 Oct 01, 2008
I'm not sure you can do what you are describing via the FLVPlayback component fullscreen button. If you want your 1600x1200 stage with menu to be in fullscreen you would need to create a button which invokes the stage's fullScreen displayState like:

function onClick(event:MouseEvent):void {
stage.displayState="fullScreen";
}

Maybe you are already doing that, but once you set the stage to fullscreen, the FLVPlayback component button's going to conflict and toogle in and out of fullscreen. I thi...

Votes

Translate
LEGEND ,
Sep 30, 2008 Sep 30, 2008

Copy link to clipboard

Copied

Pretty sure that this:

stage.scaleMode = StageScaleMode.EXACT_FIT;

should be:

stage.scaleMode = StageScaleMode.NO_SCALE;

Votes

Translate

Report

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 ,
Oct 01, 2008 Oct 01, 2008

Copy link to clipboard

Copied

I need the swf to fit the screen without any empty edges around it, why i'm using Exact_Fit. But, setting the stage to No_Scale doesn't change how the FLVPlayback works.

Votes

Translate

Report

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
Community Expert ,
Oct 01, 2008 Oct 01, 2008

Copy link to clipboard

Copied

I'm not sure you can do what you are describing via the FLVPlayback component fullscreen button. If you want your 1600x1200 stage with menu to be in fullscreen you would need to create a button which invokes the stage's fullScreen displayState like:

function onClick(event:MouseEvent):void {
stage.displayState="fullScreen";
}

Maybe you are already doing that, but once you set the stage to fullscreen, the FLVPlayback component button's going to conflict and toogle in and out of fullscreen. I think you will need to make your own custom "fullscreen" button for the player which gets the stage size and scales the FLVPlayback instance to that dimension.

Votes

Translate

Report

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 ,
Oct 01, 2008 Oct 01, 2008

Copy link to clipboard

Copied

LATEST
Hey Rob, Thanks for the tip, will give it a try and let ya know how it works!

Votes

Translate

Report

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