A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [RESOLVED] OnKeyDown, goToFrame [MX2004]

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Posts
    23

    [RESOLVED] OnKeyDown, goToFrame [MX2004]

    Hello. I want to make it that when you press down the enter/return key, the flash movie will advance to another frame. However, I'm not sure how to script this correctly. What script code do I use, and where do I put it?

    Thank you for your help!

  2. #2
    Junior Member
    Join Date
    Apr 2006
    Posts
    23
    Sorry to double post, but I've been waiting for a while and I need an answer as soon as possible. Thanks!

  3. #3
    Senior Member
    Join Date
    Dec 2005
    Posts
    142
    i would make a MC, and place the following script on it.
    Code:
    on (keyPress "<Enter>") {
    _root.next();
    }
    thats a very very basic way of doing it.

  4. #4
    Junior Member
    Join Date
    Apr 2006
    Posts
    23
    I tried that, but it didn't work.

  5. #5
    Junior Member
    Join Date
    Apr 2006
    Posts
    23
    Sorry to double post, but it's been 10 days, and I need a working answer as soon as possible. Thank you.

  6. #6

  7. #7
    Junior Member
    Join Date
    Apr 2006
    Posts
    23
    Thank you very much!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center