Rollover buttons to play sound using "loadSound"
Hi, there
I am seeking help with the following AS2 code. The target effect: Rolling over each of the two buttons on the main stage plays different sound. The code below works. However, I need to embed it in another application (Articulate) which doesnot allow the use of "_root" and "attachSound". I was recommended to use "loadSound" instead. However, not a coding person, I am at a loss.
Can anyone help me to change the script below to remove "_root" and "attachSound" and use "loadSound" instead? Thanks so much!
var mySound:Sound = new Sound();
mcButton5.onRollOver = function() {
_root.mySound.attachSound("sound1");
_root.mySound.start();
var mySound:Sound = new Sound();
mcButton6.onRollOver = function() {
_root.mySound.attachSound("sound2");
_root.mySound.start();
