playSound = function(name, varSound) {
name.stop();
mSound = new Sound();
mSound.attachSound(varSound);
mSound.onSoundComplete = function() {
name.play();
};
mSound.start();
};
this is the code i am using in the MAIN movie and is placed on the root of the timeline…
On my MOVIE1 which is loaded on the MAIN movie, i placed this code to call that function on certain frames
_root.playSound(this,"myMusic.mp3");
myMusic.mp3 is the linkage identifier…
the problem is the sound doesnt play at all… but when i copy playSound function on the _root of the MOVIE1 and test it (just playing the MOVIE1 without loading it to the main movie), it works fine… what seems to be wrong here? what did i missed?
Thanks for any help…