Pour executer une animation Flash en pleine écran, il faut tout d'abord importer la class 'StageDisplayState' :
//Imports Flash
import flash.display.StageDisplayState;
|
Ensuite, pour mettre en mode pleine écran on fait :
stage.displayState = StageDisplayState.FULL_SCREEN; //Execute l'animation en pleine écran
|
Pour repasser en mode normal on fait :
stage.displayState = StageDisplayState.NORMAL; //Execute l'animation à taille normale
|
Il faut également autoriser le pleine écran dans le code d'insertion HTML :
<object type="application/x-shockwave-flash" data="fichier.swf" width="550" height="400">
<param name="allowFullScreen" value="true" /> //Autorise l'execution en pleine écran.
</object>
|
Aucun.