A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] disable keyboard arrow keys

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    1

    [F8] disable keyboard arrow keys

    Hi all, being new to Flash, I'm not sure if this is the right place to post this question. I've just completed my first Flash project - an instructional presentation with an audio voice over. I have created buttons to move between the various screens, this also stops the current audio track - This all works fine. The problem is the keyboard arrows will also move to the next or previous screen but the audio keeps playing and then overlapses with the next audio track. Is there some way of disabling the keyboard arrows or to add a "stop audio" action script somehow while the presentation is playing.

    Hope all this make sense, any feedback most welcome.

    Thanks, Ticks.

  2. #2
    Senior Member corky§urprise's Avatar
    Join Date
    Jun 2005
    Posts
    346
    You can stop all sounds by using
    stopAllSounds();

    but that will, as it says, stop ALL sounds. if you want to stop the music and the music only, you should code it..e.g.


    m=new Sound(put a movie clip here..dont just paste this code actually change it..e.g. new Sound(_root.lol))

    m.attachSound("linkageIdentifier")
    // find that in the library

    m.play()

    will make it play

    and..

    m.stop()

    will make it stop

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