I am using a function to fade out a movieclip then go to a frame. For some reaon the going to a frame part isnt working. I know the line of code executes because i put a trace() in and it executed.
I’m calling
function fadeOut(clip, destination) {
if(this[clip]._alpha > 0) {
this[clip]._alpha--;
} else {
gotoAndStop(destination);
}
}
with
function preload() {
loaded = getBytesLoaded();
if (loaded == total) {
fadeOut(loader, 2);
} else {
stop();
}
}
I’m sure that the problem is in the line
gotoAndStop(destination);
and I think it’s probably something obvious that I’m missing. Any help would be greatly appreciated.