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
Play Button; HELP!!!! Im drowning in my own ignorance
Topic Started: Nov 7 2004, 09:38 AM (122 Views)
IntestineBoy
Brackenwood Newbie
I just got flash the other day and I made an animation. But there is one problem, HOW DO YOU ADD A PLAY BUTTON?!

I would like for someone to give me the script I have to enter so I can copy and paste it.


:gasp: :gasp: :gasp: :gasp:
Offline Profile Quote Post Goto Top
 
ASH 321
Member Avatar
Animator
Type in some text eg play then click on it and press F8 click on button and name it something. Then enter this code in its actions (F9)

Code:
 
on (release) {
gotoAndPlay(enterframehere);
}


And where it says 'enterframehere' type in the frame you want it to go to
Offline Profile Quote Post Goto Top
 
chluaid
Member Avatar
Bitey's Daddy
Admin
or you could just go:
Code:
 
on (release){
play();
}


And if you're wondering how to add code to a button, you need to select the button first, then press F9... otherwise you might accidentally add the code to the frame instead of the button.
Offline Profile Quote Post Goto Top
 
IntestineBoy
Brackenwood Newbie
thanks for the help. But I have one more question. How do I add that little loading thingy? The play button goes by too fast.

Sorry for the ignorance, this is like my 4th day with flash mx
Offline Profile Quote Post Goto Top
 
ASH 321
Member Avatar
Animator
Look at the actionscript part of the forums and look at 'Tutorial 1'
Offline Profile Quote Post Goto Top
 
alexsmolik
Member Avatar
The Prince of Troy
Well, I suggest you download NG's preloader, and start playing around with it in order to truly understand how it works and stuff, it's a simple one. Not too much details, simple actionscripting.
I reccomend you download it and learn from it.
Or you could just add a "stop" to your frame 1, and a "Play" button on it with the actionscript that you have seen above.
Offline Profile Quote Post Goto Top
 
ASH 321
Member Avatar
Animator
If it "plays" to fast then as alex said add

Code:
 
stop();


And then add a play button.

I say go to Vector's tutorial, that way you understand WHATs going on, and its easier to make it into however you want it to be ^_^
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Application Support · Next Topic »
Add Reply