A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Movieclip Button - New Glitch?

  1. #1
    An FKer
    Join Date
    Sep 2005
    Location
    Ontario
    Posts
    1,167

    Movieclip Button - New Glitch?

    Hey everyone!

    Okay, well I'm not new to Flash, and recently recieved a copy of the new CS3design package (for school). Anyways, I have a Flash Animation that's due on Tuesday, but I've run into a bit of a problem.

    I have a movieclip that acts as a button (but it animates and whatnot), however, when I place the code:

    code:

    on (release){
    _root.gotoAndPlay("Animation",1);
    }



    It doesn't go, just a quick flicker on the SWF window, that's it. If I do the same code, in the same file on an oridnary button, it works fine. This never happened to me before in Flash 8.

    Can anyone help me out, times running out.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    You should stop putting code ON objects (like we used to do when flash was at version 5).
    give the movieClip an instance name, for example myButtonClip. On the Animation Scene frame 1, enter the label "animation" And write, as frame action:

    PHP Code:
    myButtonClip.onRelease = function() {
    _root.gotoAndPlay("animation");
    }; 
    gparis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center