Stick Page Forums Archive

i need help on making a play button

Started by: somotong | Replies: 43 | Views: 2,532

somotong
2

Posts: 49
Joined: Dec 2007
Rep: 10

View Profile
Apr 3, 2008 10:08 PM #108805
i've been trying to make a play button,but here's the thing,i make it,the action script is right,and i test my movie,and it doesn't play my animation !!!! codes i'm using :

on(release){
{_root.gotoAndPlay(2);}

and

stop();

and nothing happens !,my cursor changes into a hand with a finger thingy and i click and nothing !,anybody know why ?
NTG
2

Posts: 1,052
Joined: Feb 2006
Rep: 10

View Profile
Apr 3, 2008 10:52 PM #108831
on(release){
play()
}

button tutorial
somotong
2

Posts: 49
Joined: Dec 2007
Rep: 10

View Profile
Apr 3, 2008 11:37 PM #108858
it didn't make any sense :\ nothing happens,it says put stop(); then put on(release){play()} buuuuuuuuuut it makes no sense !!!! and it play my animation automatically WTF !?!?!?!
Dudeman
2

Posts: 2,206
Joined: Aug 2005
Rep: 10

View Profile
Apr 3, 2008 11:41 PM #108859
THERE'S TWO STEPS:

1. Select the first frame of the animation. Make sure it's a keyframe. Be sure that the frame on the timeline is selected and open the action script window. Type the stop(); command.

2. Deselect the frame; click off stage. Click on your button so that it is the only thing selected. Type in the command that NTG posted.

Done.
Rather Cheesy
2

Posts: 2,137
Joined: Apr 2007
Rep: 10

View Profile
Apr 3, 2008 11:53 PM #108861
FULL AND COMPLETE WAY TO DO IT COMPLETE WITH "CLICK THE RED X" ACTION

First open flash.

Make a new document.

On the first frame int the timeline there should be a blank keyframe, select it.

Press F9 to open the actions tab. type
stop()
into it. This stops the animation when it comes in.

Now press insert, New symbol. Select button and press ok. go to windows and open the library window. Now double click the new button you just made, its default name it symbol 1

No on the first frame draw how youwant your button to look when its not being messed with. On the second frame create a keyframe and drwa how you want it to look when the mouse goes over it. Now on the 3rd frame create a keyframe. Draw how you want your button to look when it is clicked. NO create a new keyframe oin the fourth frame. Draw the area you need to click in order fo the button to work. This frame will not be seen. Make it a filled in version of the first frame.

Now go back to the main stage [the <- button on the timeline]

Click and drag your button out of the library and put it on the first frame.

Now select your button NOT THE FRAME. and press F9 to open the actions tab if its not already open.

Type this code into it.

on(release){
play()
}


Now create a blank keyframe after the first frame with the stop () code and the button on it. start your animation there.

You're done, test your movie.
somotong
2

Posts: 49
Joined: Dec 2007
Rep: 10

View Profile
Apr 4, 2008 12:20 AM #108892
dudeman,yours didn't work :\ and rather cheesy,you made no sense,can you explain with out the whole part were the mouse moves over the button and when it gets clicked and the other shiz so i can just find out how to ;make a ****in button work ?
somotong
2

Posts: 49
Joined: Dec 2007
Rep: 10

View Profile
Apr 4, 2008 12:21 AM #108893
sry for double post buuuut,it also plays it automatically,the only time it didn't play my animation automatically is when i put the stop(); code after the other code
Gavel
2

Posts: 6,675
Joined: Oct 2006
Rep: 10

View Profile
Apr 4, 2008 1:13 AM #108933
Quote from somotong
i've been trying to make a play button,but here's the thing,i make it,the action script is right,and i test my movie,and it doesn't play my animation !!!! codes i'm using :

on(release){
{_root.gotoAndPlay(2);}


Why did you put two brackets?

And you're supposed to put the code on the button, not the frame.
somotong
2

Posts: 49
Joined: Dec 2007
Rep: 10

View Profile
Apr 4, 2008 1:23 AM #108943
can one of you guys post a video or something ???????????? cause when i do it the way you guys tell me it goes right to the animation ! and i'm doing everything you guys tell me !,video ????
Gavel
2

Posts: 6,675
Joined: Oct 2006
Rep: 10

View Profile
Apr 4, 2008 1:29 AM #108949
I said put it on the BUTTON not the frame. Click the button you made, go to the actionscript panel and put the code in. What are you not understanding? Did you even remember to make the button a button symbol?
Dudeman
2

Posts: 2,206
Joined: Aug 2005
Rep: 10

View Profile
Apr 4, 2008 1:35 AM #108953
He's not putting the stop code in correctly. My god, he's clueless.

http://www.youtube.com/watch?v=qj9vXURtGi0
somotong
2

Posts: 49
Joined: Dec 2007
Rep: 10

View Profile
Apr 4, 2008 1:36 AM #108955
yes,i am making it a symbol !,buuuuut my problem is , when i click the button it won't play my animation !!!! and half the stuff you guys are saying i can't understand !,am i supposed to click the symbol put in the code : stop(); then put the code : on(release)play() ?????? or is it the other way around ?
Rather Cheesy
2

Posts: 2,137
Joined: Apr 2007
Rep: 10

View Profile
Apr 4, 2008 1:51 AM #108962
Jesus Chirst you're thick somotong. I wrote a whole ****ing tutorial for you with exact explanations for everything down to the detail. If you can't understand it then your animation does not need even a play button... You put a stop () action on the frame, make a button and put

on(release){
play()
}

On the button. ITS THE SIMPLEST CODE THERE IS!
Komaru
2

Posts: 263
Joined: Jan 2008
Rep: 10

View Profile
Apr 4, 2008 1:56 AM #108965
click on the frame one. Hit F9. Then copy pasta

stop();

into that window. F9 again. Then, deselect everything by clicking on blank space. Click on your button. F9. Copy pasta

on(release) {
play;
}

CTRL + ENTER - test it.

It is not ****ing hard to do.

Here, if you are still lost:
http://www.baycongroup.com/flash/09_flash_site.htm
Scroll down to where it says "stop the action" in bold letters.
somotong
2

Posts: 49
Joined: Dec 2007
Rep: 10

View Profile
Apr 4, 2008 2:13 AM #108971
first of all,i'm NOT THICK !!! I'M DOING EVERYTHING THE WAY YOU SAY TO AND IT JUST WON'T ****ING WORK ! it shows my button then plays my animation automatically ! btw,do i need a play button for newgrounds ?
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.