I’ve got a shell that loads a class, “course.as”, which parses an array, “Components”, from an xml document.
I can trace the results of that array just fine from the shell using:
trace("comp "+this.course.Components.toString());
I use the following code to load a swf into a placeholder clip:
var request:URLRequest = new URLRequest("media/conf.swf");
var loader:Loader = new Loader()
loader.load(request);
imagePH_mc.addChild(loader);
Then, from the conf.swf file, I need to load elements of the Components array, but I can figure out how to reference it. I’ve tried:
trace("Components "+MovieClip(this.parent).Components.toString());
and I get the following error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Loader@26f59581 to flash.display.MovieClip.
at conf_fla::MainTimeline/frame1()
Any idea how I can access those elements??
TIA!!