Linking sound

  • 15 years ago

    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.start(0, 0);
    // End//

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debugging is anticipated with distaste, performed with reluctance, and bragged about forever.” - Dan Kaminsky