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
| <?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="666" height="40" backgroundColor="#F8F4F4" dataChange="initAppTests();initEstCheck()">
<mx:states>
<mx:State name="afficheTests">
<mx:SetProperty name="height" value="240"/>
<mx:AddChild position="lastChild">
<mx:List y="74" width="571" dataProvider="{dataArrTests}" itemRenderer="etatTest" height="156" id="listeTests" horizontalCenter="15"></mx:List>
</mx:AddChild>
<mx:SetEventHandler target="{button1}" name="click" handler="currentState=""; "/>
<mx:SetStyle target="{imgMachine}" name="verticalCenter" value="-91"/>
<mx:AddChild position="lastChild">
<mx:Label text="Nom du test" width="115" fontWeight="bold" y="48" textAlign="center" horizontalCenter="-202"/>
</mx:AddChild>
<mx:AddChild position="lastChild">
<mx:Label text="Etat/Est testé" width="115" fontWeight="bold" y="48" textAlign="center" horizontalCenter="-91"/>
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Script source="testScript.as"/>
<mx:Label y="12" text="{data.descriptionCol}" width="146" height="17" id="descMachine" fontWeight="bold" horizontalCenter="-239"/>
<mx:Button y="10" label="Ajouter un test" click="ajoutTest()" horizontalCenter="-76"/>
<mx:Label y="12" width="182" id="lbCheckMachine" horizontalCenter="102"/>
<mx:Button y="10" label="!" width="40" height="20" click="currentState="afficheTests"; " id="button1" horizontalCenter="303"/>
<mx:Image height="40" id="imgMachine" horizontalCenter="237" verticalCenter="0"/>
</mx:Canvas> |