0 Replies Latest reply on Jan 27, 2010 4:13 AM by JOliver77

    Full Screen Issue

    JOliver77 Level 1

      Hello,

       

      I'm an actionscript beginner and am trying to create a flash file with a button that allows to user to swith from viewing my movie in their browser, to viewing it full screen.

       

      I've managed to source some code from the net, and although when I click my 'toggle button' the full screen works perfectly... when I click it again the flash file returns to the original browser window but I dont see my movie - just my back ground fill colour. The code I have is as follows (and is placed on frame 01 of my actions layer), any help would be greatly appreciated...

       

      fullScreenButton.onPress=function()
      {
      if (Stage.displayState=="fullScreen")
      Stage.displayState="normal";
      else
      Stage.displayState="fullScreen";     
      }

       

      Stage.addListener(this);
      this.onFullScreen=function(bFullScreen:Boolean)
      {
      // do something
      this.textBox=bFullScreen;
      }

       

       

       

      Im using Flash CS3 on a Mac.