I’m going batty.
I load an external mc using this:
(in transition mc)
parent.contentHolder_mc.loadNextClip();
(in contentHolder mc)
function loadNextClip():void {
var clipLoader:Loader = new Loader();
addChild(clipLoader);
clipLoader.unload();
clipLoader.x = 0;
clipLoader.y = 100;
var clipName:URLRequest = new URLRequest(parent.nextClip);
clipLoader.load(clipName);
parent.transition_mc.gotoAndPlay("clear");
}
works great
I try to unload using.
parent.contentHolder_mc.removeChild('clipLoader');
and get this msg:
[COLOR=“red”]“Type Coercion failed: cannot convert “clipLoader” to flash.display.DisplayObject.
at mainShell_fla::mc_transision_2/mainShell_fla::frame83()”[/COLOR]
I try this code:
parent.contentHolder_mc.clipLoader.unload();
and get this msg:
[COLOR=“Red”]A term is undefined and has no properties.
at mainShell_fla::mc_transision_2/mainShell_fla::frame83()[/COLOR]
I can’t find one real world example of a clip being unload anywhere on the net. Just a whole bunch of - just use loader.unload();
help