Stick Page Forums Archive

how do i create a play button in AS3?

Started by: doc | Replies: 13 | Views: 718

doc

Posts: 1,127
Joined: Jan 2009
Rep: 10

View Profile
Jan 21, 2009 10:39 PM #342617
ive been looking this up for ever but i just can't figure it out. plz help!
Socks
2

Posts: 752
Joined: May 2006
Rep: 10

View Profile
Jan 21, 2009 11:35 PM #342653
Quote from doc;1446373[b
]ive been looking this up for ever but i just can't figure it out[/b]. plz help!

You are lieing, if you actually looked you would notice there is a tutorial in the tutorial section on how to script and make a button.

Oh, and make it a symbol (f5) then select button..
doc

Posts: 1,127
Joined: Jan 2009
Rep: 10

View Profile
Jan 22, 2009 12:37 AM #342702
no the tutorial one is in AS2
im looking for the AS3 script to make it go to the next frame. i tried searching it online a bunch too and nothing came up. i guess i can just stick to the AS2 one for now
Nukem
2

Posts: 1,333
Joined: Apr 2008
Rep: 10

View Profile
Jan 22, 2009 12:57 AM #342712
theres this thing called...
Flood
2

Posts: 3,326
Joined: Dec 2008
Rep: 10

View Profile
Jan 22, 2009 2:31 AM #342743
1. Write "play" or whatever you want.
2. Highlight it all, then right click it>convert to symbol
3. Right click again>actions
4. Enter this code into "actions"
on (release) {
gotoAndPlay(2);

}


5. Go to the keyframe>right click>actions> insert:
stop();



Wait, nevermind, ignore this, thats AS2.
notmaggot
2

Posts: 967
Joined: Jan 2008
Rep: 10

View Profile
Jan 22, 2009 4:01 AM #342803
why dont you just use actionscript 2? nobody uses 3.
Kieran.
2

Posts: 3,358
Joined: Jan 2009
Rep: 10

View Profile
Jan 22, 2009 6:19 PM #343104
TBH unless your using I.K, you don't need AS3...

http://letmegooglethatforyou.com/?q=how+to+create+a+button+in+AS3
doc

Posts: 1,127
Joined: Jan 2009
Rep: 10

View Profile
Jan 22, 2009 8:37 PM #343188
Nukem ive tried that and it actually failed me.
and mayb ill try in AS2
but how do i switch it from AS2 to AS3?
lol sry im a noob
flip

Posts: 0
Joined: Aug 2025
Jan 22, 2009 8:43 PM #343195
hey guys, how do you edit ur picture
Kieran.
2

Posts: 3,358
Joined: Jan 2009
Rep: 10

View Profile
Jan 22, 2009 9:57 PM #343239
Quote from flip
hey guys, how do you edit ur picture


1: compltely off topic
2: what picture are you talking about
3: If its the picture I think you are talking about you are being noobish.. just go to: http://www.stickpageportal.com/forums/showthread.php?t=44562

Quote from doc
Nukem ive tried that and it actually failed me.
and mayb ill try in AS2
but how do i switch it from AS2 to AS3?
lol sry im a noob


You cant change from 2 to 3 in a flash document... when you open flash

Flash 8 : if you open a new document its in AS2
Cs3: Open a document either saying AS2 or AS3
Cs4: the same as CS3

AS2 button guide : http://www.newgrounds.com/portal/view/329381 or http://www.newgrounds.com/portal/view/329381
AS3 button guide : http://www.actionscript.org/forums/showthread.php3?t=143541
darkcampainger
2

Posts: 159
Joined: Aug 2006
Rep: 10

View Profile
Jan 23, 2009 2:56 AM #343423
Quote from extremekd
You cant change from 2 to 3 in a flash document...


Actually, you can. Under Publish Settings, go to the Flash tab, and change the ActionScript Version from "ActionScript 3.0" to "ActionScript 2.0".

Much easier than starting from scratch or trying to copy it over
doc

Posts: 1,127
Joined: Jan 2009
Rep: 10

View Profile
Jan 23, 2009 11:19 PM #343858
ah awesome!
tx everyone!
Flood
2

Posts: 3,326
Joined: Dec 2008
Rep: 10

View Profile
Jan 24, 2009 4:46 AM #344071
Really easy to understand:

http://www.newgrounds.com/portal/view/334627
doc

Posts: 1,127
Joined: Jan 2009
Rep: 10

View Profile
Jan 24, 2009 1:27 PM #344278
GSP thats in AS2, i got that already, but tx nyway. i think ill just stick to AS2
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.