I need to make it so when I click my button, it plays my movie clip.
I want it to be able to have text float upward in a tween…I just dont kno the code to put it in, is it a stop action? Tell target? go to? someone help me please
I need to make it so when I click my button, it plays my movie clip.
I want it to be able to have text float upward in a tween…I just dont kno the code to put it in, is it a stop action? Tell target? go to? someone help me please
seems as though you already have the code figured out. Just a matter of putting it together.
Create a movie clip with your tween. Add stop in the first frame of the movie clip. Name the movieclip “movie”. Create a button, and add the commands.
on (release) {
tellTarget ("_root.movie") {
gotoAndPlay(2);
}
}
Should be tutorials on this site also.
:)… sorry man… I gotta add my 2 cents.
with Flash 5.0 you can shorten up your code
this works the same as your tell target code
on (release) {
_root.movie.gotoAndPlay(2);
}
if, you had the button and the movie clip on the same timeline you could also leave off the _root like so
on (release) {
movie.gotoAndPlay(2);
}
hope it helps you both.
:: Copyright KIRUPA 2024 //--