Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Keypress Control for Timeline

Explorer ,
Mar 29, 2008 Mar 29, 2008
I am creating a very simple presentation in CS3, which will be projected on-screen and will have a live speaker. I would like to be able to pause the SWF at various locations along the timeline so that the speaker my discuss issues on the screen, and then presume playing it. Since don't want this control visible (such as with a button) to the audience, I would like the control either with the press of a key, such as the arrow right key, or with a remote controller. How would I encode this both with the press of a key or with a remote controller? Need it be in Actionscript 3 or could it be with 2?
TOPICS
ActionScript
727
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Apr 01, 2008 Apr 01, 2008
Thanks so much!
Translate
Community Expert ,
Mar 30, 2008 Mar 30, 2008
use a key listener to use keyboard control in your project. i don't know how you intend to have flash communicate with your remote.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 30, 2008 Mar 30, 2008
Sorry, I'm a novice at AS. Can I use a listener and still use the same arrow right key throughout? Would I add the listener at frame 1 and then add a goto at each stop point to go to the next label with a right arrow key press? With respect to the remote, I presumed it would be in lieu of using a keyboard in that it would function as a remote way of a key press of a right arrow. But, I really don't know. Can't a remote be used?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 31, 2008 Mar 31, 2008
flash has no native methods to detect alternative (to a kb/mouse) input. that's not to say it can't be done, but if it works just a well for you to use the arrow key, stay with that.

you could place stop() functions on each keyframe where you want the playhead to stop. your key listener could listen for the right arrow key andif detected execute a play().
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 31, 2008 Mar 31, 2008
That's exactly what I would like to do but, being a newbie, I don't know how to encode it. I am using CS3 but publishing to AS2. Would the codes be the same/similar?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 31, 2008 Mar 31, 2008
you'll use as2 code, not as3. (but for what you want, it's the same. you just don't need to be as meticulous about data typing.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 01, 2008 Apr 01, 2008
Thanks so much!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 01, 2008 Apr 01, 2008
LATEST
you're welcome.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines