# Load sound on key press

**URL:** https://forum.kirupa.com/t/load-sound-on-key-press/86228
**Category:** Uncategorized
**Created:** [April 11, 2005, 1:02pm UTC](https://forum.kirupa.com/t/load-sound-on-key-press/86228 "2005-04-11T13:02:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Joppe](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Joppe](https://forum.kirupa.com/u/Joppe)
#### Post date: [April 11, 2005, 1:02pm UTC](https://forum.kirupa.com/t/load-sound-on-key-press/86228/1 "2005-04-11T13:02:43Z")

</div>

Okay! I have sounds ( A-Z ) and when i press the A button i want the A sound to play , i have fixed everything . The button is pressed and everything works , except my sound! i tried just to have e sound in the frame and it worked … How should i do ?

Btw . heres the code

In the frame

Q = new Sound();  
Q.attachSound (“Q”);

In the movieclip Q movieclip

onClipEvent(enterFrame){  
if(Key.isDown(81)){  
this.play();  
trace (“Q”)  
}  
}

and in the libary i have an sound with the linkage of Q
