3 Replies Latest reply on Mar 6, 2007 7:52 AM by dudeodude

    Need help on very simple script for button

      I am really new with flash and i am having big difficulty understanding actionscript.

      I would like to create a button that when pressed on, open's an animation, for example a square fades in into the scene and then when pressed again, it activates the reverse so fade out of the square. i can only seem to make in fade in or fade out, never both.

      I only understand the simple scripting. I have tried this but it only works when pressed

      on (press) {
      on (press) {

      but the section of s2, so the reverse animation does not work. I have tried many variants but nothing seems to work. I really would like to keep it simple as i am very new. Any advice???

      Thank you for your patients.