Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Action Script Help; Okay I need help with some AS...........
Topic Started: Apr 13 2005, 08:31 AM (105 Views)
mystical-mongoose
Member Avatar
Eggy Toast
Okay I have my movie. Made up of a couple scenes. And when it gets to a certain scene the first frame is a button. And I want that frame to stop, untill someone pushes the button. But it isn't working. Help please. :o
Offline Profile Quote Post Goto Top
 
Mr. Jiggmin
Member Avatar
made of tulips
on the frame with the button on it put:

stop();
_root.yourButtonName.onPress = function(){
play();
}

Then give your button an instance name and replace "yourButtonName" in the above code with whatever you named it.

If you don't know where the instance name box is, click on the button and it is in the lower left hand corner of the screen.
Offline Profile Quote Post Goto Top
 
ItsaMystery
Member Avatar
Brackenwood Lightweight
As an alternative way:

Put the code:
Code:
 
stop();


in the first frame, and the code:

Code:
 
on (release) {
play();
}


in the button itself.

Hope that helps. :)
Offline Profile Quote Post Goto Top
 
Xavo
Member Avatar
Xav ♂(im a boy :P)
in the frame u want to stop put:

Quote:
 
stop();


and in the button that it is in a frame in a layer above the layer that have the keyframe with the stop put this:

Quote:
 
on(release){
gotoAndPlay(2);
}



in the "gotoAndPlay(2)" replace 2 with the number of the frame where the movie starts, if it starts in a different scene put this:

Quote:
 
on(release){
gotoAndPlay("nameofthescene");
}


put instead of "nameofthescene" the name of the scene(haha), and with "";
ig:

Quote:
 
on(release){
gotoAndPlay("beggining");
}



NOTE: REMEMBER THE "" ^^
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply