put this actionscript on right arrow
on (release) {
yourMovie.gotoAndPlay(your
}
put this actionscript on left arrow
on (release) {
yourMovie.gotoAndPlay(your
}
Cheers
RootDir
Main Topics
Browse All Topicshi! i want to program my flash movie to when i press the right arrow key, it skips 16 frames, and when i press the left arrow key, it goes back 14 frames. someone please help me. thanks.
-therealamk
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
rexmor, I like the creativity of your solution best, but it only checks for the left arrow... All other keys are assumed to be the right arrow.
How about this?
onClipEvent (keyDown) {
kc=Key.getCode()-38;
if(Math.abs(kc)==1) gotoAndStop(_currentFrame+
}
This ignores all keys except left & right arrows... and has a decent "clever quotient" to boot! :) j/k
-Lee
http://www.leefastenau.com
therealamk,
//now it traps left and right key, sorry.
onClipEvent (keyDown) {
keypressed = Key.getCode();
frame = (keypressed == 39 ? 16 : (keypressed == 37) ? -14 : _root._currentframe);
_root.gotoAndStop(_root._c
// _root.gotoAndPlay(_root._c
}
thanks thelbane...
regards,
rexmor
Business Accounts
Answer for Membership
by: BakaMattSuPosted on 2003-05-28 at 07:35:43ID: 8598302
Put the following script on an invisible button on the frames you'd like that effect:
16);
14);
on (keyPress "<Right>") {
gotoAndPlay(_currentframe+
}
on (keyPress "<Left>") {
gotoAndPlay(_currentframe-
}