Forum Topic: as help

(132 views • 10 replies)

This topic is 1 page long.

<< < > >>
Questioning

dex-exe1234

Reply To Post Reply & Quote

Posted at: 10/4/05 09:16 AM

dex-exe1234 NEUTRAL LEVEL 09

Sign-Up: 05/21/05

Posts: 17

i need a as to make press 1 to first movieclip press 2 to second movieclip!?! help please


None

liaaaam

Reply To Post Reply & Quote

Posted at: 10/4/05 09:36 AM

liaaaam NEUTRAL LEVEL 21

Sign-Up: 12/11/04

Posts: 12,766

I don't understand what the hell you're on about.. press 1 to movie clip?

How do I movieclip?

Be less vague please my good gentleman.


None

dex-exe1234

Reply To Post Reply & Quote

Posted at: 10/4/05 09:59 AM

dex-exe1234 NEUTRAL LEVEL 09

Sign-Up: 05/21/05

Posts: 17

i mean if you press 1 on the keyboard you go to the first movie clip in the movie clip it is in and 2 to go to the second :P


None

liaaaam

Reply To Post Reply & Quote

Posted at: 10/4/05 10:03 AM

liaaaam NEUTRAL LEVEL 21

Sign-Up: 12/11/04

Posts: 12,766

Do you mean the 1st and 2nd frames?

Oh, and please use better grammar.. I can't understand you. This is a forum, not a chat-room.


None

dex-exe1234

Reply To Post Reply & Quote

Posted at: 10/4/05 10:45 AM

dex-exe1234 NEUTRAL LEVEL 09

Sign-Up: 05/21/05

Posts: 17

sorry but i mean i have a movieclip and yes it is going to shift between the frames!


None

Arclite83

Reply To Post Reply & Quote

Posted at: 10/4/05 10:49 AM

Arclite83 LIGHT LEVEL 13

Sign-Up: 02/07/05

Posts: 20

At 10/4/05 10:45 AM, dex_exe1234 wrote: sorry but i mean i have a movieclip and yes it is going to shift between the frames!

I *think* you want to use gotoAndPlay(1) (or gotoAndStop(1), depending), but I'm not 100% sure on what you want to do. If the code's in the movie clip itself and you want to move the root frame, just add "_root." to the front of that. And you can always do movement based on your current frame with _currentframe command, like gotoAndPlay(_currentframe-1).

Hope that helps.


None

flash-man04

Reply To Post Reply & Quote

Posted at: 10/4/05 10:50 AM

flash-man04 NEUTRAL LEVEL 07

Sign-Up: 04/18/04

Posts: 177

Umm, something like:

onClipEvent(enterFrame) {
if(Key.isDown(49) {
this.gotoAndPlay(1);
}
if(Key.isDown(50) {
this.gotoAndPlay(2);
}
}

I'm not sure, i've not tested o_O


None

dex-exe1234

Reply To Post Reply & Quote

Posted at: 10/4/05 10:50 AM

dex-exe1234 NEUTRAL LEVEL 09

Sign-Up: 05/21/05

Posts: 17

i think i understand thx!


None

flash-man04

Reply To Post Reply & Quote

Posted at: 10/4/05 10:52 AM

flash-man04 NEUTRAL LEVEL 07

Sign-Up: 04/18/04

Posts: 177

Whoops, i meant:

onClipEvent(enterFrame) {
if(Key.isDown(49) {
this.gotoAndPlay(1);
}
if(Key.isDown(50) {
this.gotoAndPlay(2);
}
}

I think that works.

(Put it on the movie clip you wish to switch between frames)


None

flash-man04

Reply To Post Reply & Quote

Posted at: 10/4/05 10:54 AM

flash-man04 NEUTRAL LEVEL 07

Sign-Up: 04/18/04

Posts: 177

For god sake!

I mean:
onClipEvent(enterFrame) {
if(Key.isDown(49)) {
this.gotoAndPlay(1);
}
if(Key.isDown(50)) {
this.gotoAndPlay(2);
}
}


None

dex-exe1234

Reply To Post Reply & Quote

Posted at: 10/4/05 11:19 AM

dex-exe1234 NEUTRAL LEVEL 09

Sign-Up: 05/21/05

Posts: 17

um... those that command make it stay or is it only as long as the button is pressed? i need one that stays


All times are Eastern Standard Time (GMT -5) | Current Time: 11:35 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!