-
[F8] crazy music button
I have a MC "button" that loads an external mp3
the external mp3 is called "block_party.mp3"
the button instance is "song1".
can any one tell me why this doesn't work. My code is as follows:
__root.song1.onRelease = function() {
this.createEmptyMovieClip ("song1", this.getNextHighestDepth());
var song1:Sound = new Sound (mcSong1);
song1.loadSound("block_party.mp3", flase);
song1.onLoad = function (bSuccess:Boolean):Void {
if(bSuccess) {
this.start();
};
};
var nInterval:Number = setInterval (checkProgress, 500);
function checkProgress():void {
}
}
Thanks.
RSB
-
not sure might it be cause you'r creating a movie clip type called song1 and at the same time and level creating a sound type of song1?
what kind of an error are you getting?
-
Thanks for pointing that out. I'm not sure if that's the problem or not, but I'll try that. I also found a typo.
Thanks for the input!!!
RSB