-
[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.
-
Senior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|