A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Controling a movie clip with the 'SPACE BAR' (start/stop)??

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    20

    Post

    I have a flash presentation to do and I should be able to start and stop the animation (movie clip) at any moment with the "SPACE BAR".
    (exemple: on keypress[spacebar]...whatever). How can I do it? It shouldn't be hard but, you know...I need to know it soon.
    Thanks a lot.

  2. #2
    Junior Member
    Join Date
    Jul 2001
    Posts
    13
    simple. Make an invisible button. On its actions do something like:

    on mouse event-on keypress-<space>-Stop

    I'm not so sure how to make it play when u press it again. You could make it use another key to do that but im sure theres a better way.

  3. #3
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282

  4. #4
    Junior Member
    Join Date
    Dec 2000
    Posts
    20

    Thank you

    Thanks a lot guys, it works. Some questions DO get answered!

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