Below is my code.
The “pageTwo.swf” loads fine.
The .onLoadcomplete is supposed to send a trace and run a function, but it doesn’t.
I don’t know whats missing. This is the last problem i have before my website, which i’ve been working on for like 6months, will be finished. Any advice?
var pageLoader:MovieClipLoader = new MovieClipLoader();
pageLoader.addListener(pagePreloader);
function pagePreload () {
trace (“PagePreload”);
pageLoader.loadClip(“pageTwo.swf”,_root.targetII);
pagePreloader.onLoadComplete = function(){
trace (“Page is Loaded”);
completedFunction();
}
}
pagePreload();