ecleel
ecleel

Reputation: 11858

fullscreen in flash document resized after open another program?

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?

Upvotes: 0

Views: 1382

Answers (1)

AboBander
AboBander

Reputation: 114

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.

Upvotes: 1

Related Questions