hi, i’m having trouble with some as.
i want a mc to move onto frame 2 when an imported mp3 starts playing. i’ve found :
if (playing==true)
_root.soundbar.statusMC.gotoAndStop(2);
but it isn’t working.
cheers.
hi, i’m having trouble with some as.
i want a mc to move onto frame 2 when an imported mp3 starts playing. i’ve found :
if (playing==true)
_root.soundbar.statusMC.gotoAndStop(2);
but it isn’t working.
cheers.
Could you post the rest of your code?
on (release) {
stopAllSounds();
track2 = new Sound();
track2.loadSound("track2.mp3", false);
track2.start(0, 99);
if (playing==true)
_root.soundbar.statusMC.gotoAndStop(2);
}
this is the code i have tried on the button, but no luck.
i really want the detection on it’s own line so other tracks can be picked up.
cheers.
Well, you never set to true the variable playing.
I guess you could try using an onLoad handler instead.
[AS]track2.onLoad = function() {
_root.soundbar.statusMC.gotoAndStop(2);
};[/AS]
tried that before. just tried it again, no go. here’s the fla.
cheers.
Try this:
[AS]on (release) {
stopAllSounds();
track2 = new Sound();
track2.onLoad = function() {
this.start(0, 99);
statusMC.gotoAndStop(2);
};
track2.loadSound(“track2.mp3”, false);
}[/AS]
that works sweet mate. aren’t mp3s stored in the temp files when loaded this way?
cheers.
Yeah, I think so.
And you’re welcome.
:: Copyright KIRUPA 2024 //--