1 Reply Latest reply on Apr 15, 2009 1:35 PM by kglad

    triggering a btn from within an mc timeline

    mentlity Level 1

      Essential Flash situation I come across every once in a while. I thought I knew this, looked for some sites that I used this AS 2.0 code in and can't find.

       

      What I'm trying to do is, I have a movie clip which has two buttons on the timeline on separate layers. I need to drop the movie clip into a frame in the main timeline of my movie. So when you hit the button the MAIN timeline goes to a frame on the MAIN timeline

      So, give the btn an instance name (studio,btn) On the timeline INSIDE the mc select the first frame in an AS layer add

       

      studio_btn.onRelease = function()
      {
      this._parent.gotoAndPlay(30);
      }

       

      Now do I put this code in the first frame Actionscript layer MAIN timeline . Or the _mc timeline?

       

      any help?