Hi,
can’t get it to work.
I am loading a clip like so from an attached clip on the main imeline:
var swfLoader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
var preloder:Object = new Object();
swfLoader.addListener(preloder);
swfLoader.loadClip("scrollPaneLoader.swf", container_mc);
preloder.onLoadComplete = function():Void {
container_mc._x = 0;
container_mc._y = 0;
}
I’ve attached a button which I’m trying to control from the same timeline, but I keep getting errors like: there’s no such method as unLoadClip…
I was trying this:
var swfLoader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("container_mc", this.getNextHighestDepth());
var preloder:Object = new Object();
swfLoader.addListener(preloder);
swfLoader.loadClip("scrollPaneLoader.swf", container_mc);
preloder.onLoadComplete = function():Void {
returnButton_mc.onRelease = function():Void {
swfLoader.unLoadClip(container_mc);
//_root.gotoAndStop(1); I want to unload the swf to have the main swf's timeline tart over
}
}
I can’t find any examples to apply to my file. I guess I am not undestanding the use of the unLoadClip method nor whether I need a listener…
thanks in advance to anyone who can enlighten me on how to solve this