1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| <?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="init()" xmlns:local="*">
<s:states>
<s:State name="State1"/>
<s:State name="editForm"/>
</s:states>
<fx:Declarations>
<!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->
</fx:Declarations>
<s:transitions>
<mx:Transition toState="editForm">
<s:Parallel id="p" target="{editForm}">
<mx:Dissolve id="d" duration="700"/>
<mx:Iris id="i" duration="700"/>
</s:Parallel>
</mx:Transition>
<mx:Transition toState="">
</mx:Transition>
</s:transitions>
<fx:Script>
<![CDATA[
public function init():void{
}
private function handleClick():void{
/* p.target=this;*/
d.play();
i.play();
}
]]>
</fx:Script>
<s:Button x="377" y="10" label="Button" click="handleClick()" id="button0"/>
<s:BorderContainer id="editForm" includeIn="editForm" x="41" y="39" width="592" height="365">
<s:Button id="btnCancel" x="35" y="31" label="Bouton"/>
<s:Button id="btnSave" x="138" y="31" label="Bouton"/>
<s:CheckBox x="75" y="166" label="CheckBox"/>
<mx:DateChooser x="205" y="109"/>
</s:BorderContainer>
</s:Application> |
Partager