# Linking Sound

**URL:** <https://forum.kirupa.com/t/linking-sound/180683>\
**Category:** flash\
**Created:** [March 2, 2006, 5:12pm UTC](https://forum.kirupa.com/t/linking-sound/180683 "2006-03-02T17:12:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sr2000](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@sr2000](https://forum.kirupa.com/u/sr2000)\
**Post date:** [March 2, 2006, 5:12pm UTC](https://forum.kirupa.com/t/linking-sound/180683/1 "2006-03-02T17:12:22Z")

</div>

[FONT=Verdana][SIZE=2]Hi

I have linked a sound clip from the library to a button so when the button is pressed you can hear the sound; this was done using ActionScript and the linkage property. The problem I have is because the movie I have created has a pre-loader I don’t want the sound to be loaded into the first frame.

What I would like to know is how do I link to this sound so it can be heard without having to load it into the first frame?

This is the code that I currently have -

// Egg1 Btn sound effect//  
egg1\_btn.onPress = function() {  
song = new Sound();  
song.attachSound(“Egg\_Crack”);  
song.start(0, 0);  
};  
// End//[/SIZE][/FONT]
