views:

565

answers:

1

Hi,

I create a flash interface for CD that contains some buttons that open some word documents.I use fscommand for open files.

fscommand("exec", "documnet.doc");

But after document open the flash document resized from fullscreen.

the Question is: How I can make flash document (swf or exe) still fullscreen after focusing another program or open another program?

+1  A: 

You may add an event listener to the stage. So, when the stage is activated you will reenter full screen mode. Try this code:

stage.addEventListener(Event.ACTIVATE, 
  function(event:Event) { 
    trace("Enter full screen");  
  } 
);

You may choose another events that more suitable to your project from list of events dispatched by the 'stage' object. (Don't forget to show all inherited events.

AboBander
Thanks a lot abobander for this solution. It's work :)
ecleel