FLVPlayback went blank in fullscreen AS3

428 Views Asked by At

I'm making a fullscreen swf contains 2 scenes in Adobe Flash using AS3. In the first scene, there is one button named btn, which is it will go to Scene 2 when it be clicked. In scene 2, there is FLVPlayback name player. And that's scene went blank when I clicked button btn in the scene 1 :( I tried to use player.fullScreenTakeOver = false; in the button btn action in scene 1, bu it's not working, because scene 1 can't identify player which is in the scene 2. Please help, here is my code :

SCENE 1

stop();
stage.displayState = StageDisplayState.FULL_SCREEN;
import fl.video.FLVPlayback;

btn.addEventListener(MouseEvent.CLICK, ac);
function ac(event:MouseEvent):void
{
    player.fullScreenTakeOver = false;
    gotoAndStop(1, "Scene 2");
}

SCENE 2

stop();
import fl.video.FLVPlayback;
stage.displayState = StageDisplayState.FULL_SCREEN;
player.fullScreenTakeOver = false;
function startAnimation():void
{
    player.play();
}
function stopAnimation():void
{
    player.stop();
}
0

There are 0 best solutions below