0 Replies Latest reply on Mar 3, 2009 8:46 AM by brunotoide

    CubeRotate effect into transition state

    brunotoide

      hello guys, I ask a little help here, the example I keep working, that is wrong?

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" currentState="s1" xmlns:mxeffects="com.adobe.ac.mxeffects.*">

      <mx:states>
      <mx:State name="s1">
      <mx:AddChild position="lastChild">
      <mx:Canvas x="169" y="73" width="374" height="238" borderColor="#9B4748" backgroundColor="#9C3D3D" id="cs1" hideEffect="{adelante}">
      <mx:Button x="154" y="108" label="Avanzar" id="avanzar" click="this.currentState='s2'"/>
      </mx:Canvas>
      </mx:AddChild>
      </mx:State>
      <mx:State name="s2">
      <mx:AddChild position="lastChild">
      <mx:Canvas x="169" y="73" width="374" height="238" borderColor="#9B4748" backgroundColor="#3D429C" id="cs2" hideEffect="{atras}">
      <mx:Button x="154" y="108" label="Retroceder" id="retroceder" click="this.currentState='s1'"/>
      </mx:Canvas>
      </mx:AddChild>
      </mx:State>
      </mx:states>

      <mxeffects:CubeRotate target="{cs1}" siblings="{[cs2]}" direction="LEFT" id="adelante" duration="1000"/>
      <mxeffects:CubeRotate target="{cs2}" siblings="{[cs1]}" direction="RIGHT" id="atras" duration="1000"/>

      </mx:Application>

      The example is http://weblogs.macromedia.com/auhlmann/
      CubeRotate need to apply the effect of a change to another state, can do, he could give me a simple example? I need to make a presentation on my work, my boss ask me, any help is welcome .. thanks ...