on <keypress> without buttons
Hi, I'm working on a presentation that I wish to advance using a keyboard button. Now I'm using the presentation format Macromedia provided, which uses slides and that's ok, but I want more timeline control within the slides.
I'm a newbie to scripting, so I tried stop(); on frame 15, then put in:
on (keyPress "<Space>") { gotoAndPlay(16);
}
Except it returns the error that I need to use that with a button instance. I suppose I could use an invisible button, but is there another way to control the timeline movement within a slide without having visible controls? It's going to be on a projector, so seeing buttons or mouse cursors would look ugly.
|