5 Replies Latest reply on Apr 4, 2007 7:28 AM by kglad

    if statement help (beginner)

    MoonPilot
      Hey folks, need a little help with an if statement.

      I have a MC that has a two second tween, but a "stop ()" placed in the first frame to prevent the tween from playing when the MC in activated. I'm trying to use an if statement to trigger a gotoAndPlay event in the second frame, hence starting the tween. The MC is activated what a button is pressed an enters from off stage until in reaches an x position of 50. It's at this point that I want the gotoAndPlay event to occur.

      Here's what I tried:

      onClipEvent (enterframe) {
      if (MC._y == 50) {
      MC.gotoAndPlay (2);

      }
      }