View Full Version : flash help
asherwood
26-10-2004, 11:59 AM
ok ive upgraded to flash 7 mx 2004 or somet, and havnt used this thing since flash 4.
How do I get an a keyboard key to trigger an action and go to a certain frame and start playing.
Martin
26-10-2004, 01:07 PM
I'm not much cop at Flash, spose i'd be called a "cut & paste" flash coder! lol
But this site has helped me no end of times..
http://www.flashkit.com
Proberly the best forums to ask on.
Martin
..DN..
26-10-2004, 01:16 PM
someListener = new Object();
someListener.onKeyDown = function() {
if (Key.isDown(Key.RIGHT)) {
nextFrame();
}
if (Key.isDown(Key.LEFT)) {
prevFrame();
}
};
Key.addListener(someListener);
stop();
asherwood
27-10-2004, 01:02 PM
thanks for ur help, all works now.
vBulletin® v3.8.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.