Je suis nouveau à flex. J'ai développé une page d'exemple avec le code suivant:Flex en mode plein écran?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application height="100%" xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientColors="[#5b4ffb, #5594fb]" themeColor="#808080" cornerRadius="3" width="100%">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.CloseEvent;
private function clickHandler(event:Event):void {
if (UserID.text=="")
{
Alert.show("Please Enter your user name","Message");
return;
}
if (Pwd.text=="")
{
Alert.show("Please Enter your Password","Message");
return;
}
Alert.show("Login Success","Message");
return;
}
private function fReset(event:Event):void
{
UserID.text="";
Pwd.text="";
}
]]>
</mx:Script>
<mx:Image x="246.5" y="10" width="781" height="155" scaleContent="false">
<mx:source>file:///C|/Documents and Settings/user/Desktop/Top.gif</mx:source>
</mx:Image>
<mx:Label x="531" y="262" text="User Name" color="#FFFFFF" fontSize="12" width="84"/>
<mx:Label x="531" y="288" text="Pass Word" color="#FFFFFF" fontSize="12" width="84" height="27"/>
<mx:Label x="531" y="200" text="Login Information" width="297" color="#FFFFFF" fontFamily="Verdana" fontWeight="bold" fontSize="20"/>
<mx:Button x="590" y="323" label="Login" cornerRadius="7" click="clickHandler(event);"/>
<mx:TextInput x="623" y="262" width="160" height="20" id="UserID"/>
<mx:TextInput x="623" y="293" width="160" height="20" id="Pwd"/>
<mx:Button x="688" y="323" label="Reset" cornerRadius="7" click="fReset(event);"/>
</mx:Application>
Quand je lance le swf fichier, il fonctionne dans une petite fenêtre, mais lorsque l'utilisateur clique sur le fichier SWF que je veux ouvrir en mode plein écran, comme ctrl + f.
Comment faire?