Greetings,
First I'd like to say thanks for this great forum.
I've got a simple rotating banner and would like to have an mp3 play if someone rolls over the banner and stop if they move their mouse away.
I grabbed some code from this forum and placed it on my button instance but it's not working.
Here are the working files:
http://www.4shared.com/file/I2STw9Eo/gh_online.html
I've "linked" the mp3 file and given it the ID of "makin" and posted the following actionscript on the button instance:
Actionscript Code:
// button actions
on (rollOver){
// creates a new object from Sound class
yourSound = new Sound();
// attach the 'idSound' named from library
yourSound.attachSound("makin");
// start the sound attached
yourSound.start(0,1);
}
on (rollOut){
yourSound.stop();
}
Any help would be greatly appreciated.
Thanks