HOME | DD

Invader-Zero — Button Tutorial

Published: 2006-06-12 22:21:20 +0000 UTC; Views: 1463; Favourites: 27; Downloads: 68
Redirect to original
Description A Button Tutorial for buttons and stuff
Related content
Comments: 14

Crazyhack300 [2008-08-15 23:35:53 +0000 UTC]

hey how do you make a button disappear in a frame?

šŸ‘: 0 ā©: 0

S2En-JayS2 [2008-08-05 06:09:36 +0000 UTC]

Hey thanks a lot this really helps XD

šŸ‘: 0 ā©: 0

broken-pencil-lead [2008-04-24 16:20:01 +0000 UTC]

how can i make a button thats goes BACK a frame? thanks, i use these a lot!

šŸ‘: 0 ā©: 0

theanim8or [2008-04-01 01:07:09 +0000 UTC]

NVM! I got it working. This is amazing. Since I can already create the actual 'Button" I just needed some action code thingies

šŸ‘: 0 ā©: 0

theanim8or [2008-03-31 22:59:46 +0000 UTC]

Where do I copy the code to?

šŸ‘: 0 ā©: 0

theanim8or [2008-03-31 22:59:21 +0000 UTC]

When I hit f9 it brings up firefox

šŸ‘: 0 ā©: 0

NichlasT [2008-03-08 10:01:44 +0000 UTC]

Its something wrong with these two:

-on (release) {
gotoAndPlay(Frame Number);
}

on (release) {
gotoAndStop(Frame Number);
}

You forgot _root. in front pƄ gotoAndStop/Play .

šŸ‘: 0 ā©: 0

Lunarowl [2007-08-10 22:20:24 +0000 UTC]

I'm having some trouble. D:
I'm trying to make a dress up game where the clothes shown change when a button is clicked.
And it isn't working. XX;

I get a big long scary error message that looks like this:
-

**Error** Symbol=butt, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler
On (Release)

**Error** Symbol=butt, layer=Layer 1, frame=1:Line 2: Syntax error.
Go to and Stop (2)

**Error** Symbol=butt, layer=Layer 1, frame=1:Line 3: Syntax error.
End On

**Error** Scene=Scene 1, layer=Head, frame=2:Line 1: Statement must appear within on handler
On (Release)

**Error** Scene=Scene 1, layer=Head, frame=2:Line 2: Syntax error.
Go to and Stop (2)

**Error** Scene=Scene 1, layer=Head, frame=2:Line 3: Syntax error.
End On

**Error** Scene=Scene 1, layeraisy Bod, frame=11484:Line 1: Statement must appear within on handler
On (Release)

**Error** Scene=Scene 1, layeraisy Bod, frame=11484:Line 2: Syntax error.
Go to and Stop (2)

**Error** Scene=Scene 1, layeraisy Bod, frame=11484:Line 3: Syntax error.
End On

Total ActionScript Errors: 9 Reported Errors: 9

-

Owlly will love you forever if you can help. <3

šŸ‘: 0 ā©: 1

Invader-Zero In reply to Lunarowl [2007-08-10 23:10:02 +0000 UTC]

Start the script from scratch.

Distribute everything you got to layers and break them apart. (If their not in one scene, if so, go into that scene and distribute.)

Make the clothing into a button, then make it into a movieclip.

Click it once, and in the Actionscript panel copy and paste:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

Double click, then click it once and type in the Actionscript panel:

on (keyPress "") {
gotoAndStop(Whatever frame you want the colour clothing to be etc.);
}

Click into an empty space, and in the Actionscript panel copy and paste:

stop();


Its the only way round that i can think of.

šŸ‘: 0 ā©: 1

Lunarowl In reply to Invader-Zero [2007-08-11 00:41:30 +0000 UTC]

<3333333333
Thank you so much! 8D *Glomp*
I love you forever and always. :3

šŸ‘: 0 ā©: 0

SuperRex [2006-06-14 05:00:30 +0000 UTC]

Very Cool. I find this tutorial very useful.

šŸ‘: 0 ā©: 0

xTOXICxEMPIREx [2006-06-13 07:27:38 +0000 UTC]

thnk u soooooo much. u hav no idea how much this has helped me

šŸ‘: 0 ā©: 0

ShadowVengance [2006-06-12 23:18:34 +0000 UTC]

Terrific, thanks a lot.

When I put stuff in the code, do I keep the brackets or loose em.

šŸ‘: 0 ā©: 1

Invader-Zero In reply to ShadowVengance [2006-06-13 10:00:21 +0000 UTC]

anything thats there, keep it.

šŸ‘: 0 ā©: 0