A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Toggle fllscreen mode

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    8

    Toggle fllscreen mode

    Hi!
    I tried to create a toggle button for fullscreen mode but it doesnt show anything.


    mc_full.addEventListener(MouseEvent.CLICK,toggleFu llScreen);

    function toggleFullScreen():void {
    if(viewingFullScreen == false){
    stage.displayState = StageDisplayState.FULL_SCREEN;
    trace("fullscreen");
    viewingFullScreen = true;
    }else{
    stage.displayState == StageDisplayState.NORMAL;
    trace("normal");
    viewingFullScreen = false;
    }
    }


    I get the traces but it doesnt show the fullscreen. Where's the mistake?
    Thank you!

  2. #2

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