var mainSiteListner:Object = new Object();
var mainSite:MovieClipLoader = new MovieClipLoader();
mainSiteListner.onLoadError = function() {
throwError("Problem locating plug-in. Check location or path. "+loc, "Plug-In Error");
};
mainSiteListner.onLoadInit = function() {
statusText.text = "The main site has initialized.";
};
mainSiteListner.onLoadStart = function() {
trace("Loading");
};
mainSiteListner.onLoadProgress = function(target, loaded, total) {
trace("Loaded "+loaded+" of "+total);
};
mainSiteListner.onLoadComplete = function() {
gotoAndStop(3);
trace("Completed.");
};
mainSite.addListener(mainSiteListner);
mainSite.loadClip(loc, 10);
This is how I am loading a clip into my movie…no problem there got it working…
Now when I unload the clip I want to make sure the main movie returns to frame 2…how could I achieve this?