Bonjour,
J'ai un exemple d'application avec 2 states:
celui par défaut et un autre, toto, qui ajoute un composant.
Lorsque je passe de la vue toto à la vue par défaut j'aimerai mettre un effet de fade sur la disparition du composant, mais cela ne fonctionne pas.
Quelqu'un connait la manière de procéder?
Je suis débutant en flex et je ne connais pas ce cas de figure assez classique
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 <mx:states> <mx:State name="toto"> <mx:AddChild> <mx:ModuleLoader id="modularToto" url="toto.swf"/> </mx:AddChild> </mx:State> </mx:states> <mx:transitions> <mx:Transition id="totoGo" toState="toto" fromState="*"> <mx:Fade alphaFrom="0" alphaTo="1" duration="1000" target="{modularToto}"/> </mx:Transition> <mx:Transition id="totoBack" fromState="toto" toState="*"> <mx:Fade alphaFrom="1" alphaTo="0" duration="1000" target="{modularToto}"/> </mx:Transition> </mx:transitions> <mx:Button label="toto" click="currentState='toto'"/> <mx:Button label="default" click="currentState=''"/>
Merci pour vos réponses
Partager