A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: FLVPlayback went blank in fullscreen AS3

  1. #1
    Registered User
    Join Date
    Apr 2016
    Posts
    1

    FLVPlayback went blank in fullscreen AS3

    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();
    }

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Attach your files as I have no errors with copying your code.
    Alas we do not have all the code etc etc and files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center