USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 7/11/06 04:15 PM
Sign-Up: 09/23/05
Posts: 17
Anyone know how to skip dialogue in Flash using the Enter key or the Space bar? I know how to do it with buttons. (stop on the frame and program the button to move to next frame or resume playing the animation) But people don't like clicking the button with the mouse pointer. I use Flash MX 2004.
Posted at: 7/11/06 04:18 PM
Sign-Up: 08/17/03
Posts: 16,550
AS: KeyCode
Keycode Getter
If the light is green, the trap is clean. PSN ID: KirkNG
Posted at: 7/11/06 04:19 PM
Sign-Up: 12/08/02
Posts: 3,511
It's simple
if(Key.isDown(Key.SPACE) {gotoandPlay(#);}
Where "#" is the number of the frame that you want to go to.
Inventor of the "GOLF CLAP" meme. My stuff
Posted at: 7/13/06 08:52 AM
Okay. Thanks very much.
Posted at: 7/13/06 09:04 AM
Sign-Up: 11/05/05
Posts: 2,272
Of couse, this will only work on an onEnterFrame function.
So, basically, on a frame of your movie in which the dialogue is displayed, have this code:
createEmptyMovieClip("Skipper", 5); Skipper.onEnterFrame = function() { if (Key.isDown(Key.SPACE)) { gotoAndStop(#); } }
AlCIAeda.com - The World's Most Profitable Terrorist Organisation
Posted at: 7/13/06 09:18 AM
Sign-Up: 11/10/05
Posts: 4,027
At 7/13/06 09:04 AM, Mealy wrote: createEmptyMovieClip("Skipper", 5); Skipper.onEnterFrame = function() { if (Key.isDown(Key.SPACE)) { gotoAndStop(#); } }
Or: this.onEnterFrame = function():Void { if (Key.isDown(Key.SPACE)) { gotoAndStop(#); } };
Posted at: 7/13/06 03:24 PM
Thanks for the help, however is it possible to program it to skip to the next frame when the Space bar is released, It skips past the other dialogue if the button is held down.
All times are Eastern Standard Time (GMT -5) | Current Time: 08:30 AM
<< Back