Emin Hasanov
Emin Hasanov

Reputation: 1362

Flash fullscreen when loads

Im using adobe flash / AS3 This animation will be used as a autorun splash screen
how to do swf to be fullscren on load?
where to write this on_load event

Upvotes: 0

Views: 2665

Answers (2)

Fenrir
Fenrir

Reputation: 36

It works in a projector with a simple delay on the fullscreen initiation.

I used that method:

function whatever(constructorOrOther:One)
{
    setTimeout(setToFullScreen, 1);
}

function setToFullScreen()
{
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    stage.scaleMode = StageScaleMode.SHOW_ALL;
}

Upvotes: 2

Jonatan Hedborg
Jonatan Hedborg

Reputation: 4432

Is this for flash player (in browser)? Like the documentation says, you can only go into fullscreen as a result of a mouse click or keyboard input ( http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#displayState ).

Full-screen mode is initiated in response to a mouse click or key press by the user; the movie cannot change Stage.displayState without user input. Flash runtimes restrict keyboard input in full-screen mode. Acceptable keys include keyboard shortcuts that terminate full-screen mode and non-printing keys such as arrows, Space, Shift, and Tab keys. (Use full-screen interactive mode to support input from additional keys.) Keyboard shortcuts that terminate full-screen mode are: Escape (Windows, Linux, and Mac), Control+W (Windows), Command+W (Mac), and Alt+F4.

Upvotes: 0

Related Questions