Why doesn’t this work?
staticGraphic_mc._visible = false;
contents_mc.loadMovie("main.swf");
main_btn.onRelease = function() {
contents_mc.play();
contents_mc.onEnterFrame = function() {
if (contents_mc._currentframe == contents_mc._totalframes) {
contents_mc.unloadMovie();
contents_mc.onUnload = function() {
trace("asdf");
staticGraphic_mc._visible = true;
this.loadMovie("main.swf");
};
}
contents_mc.onLoad = function() {
trace("fdsa");
staticGraphic_mc._visible = false;
};
};
};
Where it traces “asdf” it works fine but where it doesn’t trace “fdsa”. I don’t know whats wron’g