0 Replies Latest reply on May 12, 2009 6:45 AM by SushiSnacks

    Help with going to a state for the first time and the calling function

    SushiSnacks

      Hi guys, I'm loving flex so far (it's been a week) and I'm trying the following: have a small image that when it's clicked shows a bigger image that gets shown with some effect (like wipeLeft)

       

      I tried "effectStart" on the big image but doesn't do what I want which is apply that effect after the smaller image is clicked.

      Also the "mouseDownEffect" doesn't work on the small image when "click" is there; if I remove "click" then mouseDownEffect works.

       

      any input is highly appreciated.

      jd

       

      <mx:WipeLeft id="myWD" duration="1000"/>

      <mx:states>
              <mx:State name="1"/>
              <mx:State name="2">
                  <mx:AddChild position="lastChild">
                      <mx:Image x="10" y="0" width="736" height="569" source="nav_logo4.png" effectStart="{myWD};"/>
                  </mx:AddChild>
              </mx:State>
          </mx:states>

         <mx:Image x="768" y="0" width="200" height="120" source="nav_logo4.png" click="currentState='2';" mouseDownEffect="{myWD};"/>