Hello,
can anybody pls tell me how I can assign a GotoandPlay action to a movieclip item in Flash MX. I want to use a movieclip as a button and when clicked on it, i want it gotoandplay another frame.
pls help me :(
Printable View
Hello,
can anybody pls tell me how I can assign a GotoandPlay action to a movieclip item in Flash MX. I want to use a movieclip as a button and when clicked on it, i want it gotoandplay another frame.
pls help me :(
This is not the right forum for this type of questions.
You should ask this sort of things in the "Actionscript" forum.
The "Backend scripting" is dedicated to server-side programming.
Anyway, you can use a MovieClip as a Button, by adding button-like handlers to it, like this:
The previous code should be placed in the FRAME ACTIONS (if you don't know what this means, please go through the beginner tutorials from the Help menu in the Flash authoring environment), sometime when a movieclip with the INSTANCE NAME "myMovieClip" is present.PHP Code:myMovieClip.onRelease = function() {
this.gotoAndPlay('myFrameLabel');
};
This will automatically give *some* of the button behaviours, still remaining basically a movieclip.
There are other ways to achieve the same effect, this is the cool thing about Flash.
Hope this helps
Thanks keyone.
THANK YOU VERY MUCH!