5 Replies Latest reply on Apr 8, 2009 7:43 AM by kev1983

    Apply action to button

    costa_sandra

      Hello,

       

      I would like to know how can I apply an action to a button. I am using the Flash CS3 and I know that I can only apply actions to instances but I still can't make it work.

      It's a very simple file, I have 2 frames and I want a button on the first frame (with the instance name "hdg") that on release goes to frame 2 and stop.

       

      Flash Help gave me this result but I can't make it work:

      my_btn.onRelease = function () {
          trace ("onRelease called");
      };
      

      I also want the movie to stop on the first frame, so that it does go straight to frame 2 but with the action of the instance there's an error.

       

      Thanks in advance,

      Sandra