# Access array from loaded clip?

**URL:** <https://forum.kirupa.com/t/access-array-from-loaded-clip/306022>\
**Category:** flash\
**Created:** [March 8, 2010, 1:32pm UTC](https://forum.kirupa.com/t/access-array-from-loaded-clip/306022 "2010-03-08T13:32:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashpipe](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@flashpipe](https://forum.kirupa.com/u/flashpipe)\
**Post date:** [March 8, 2010, 1:32pm UTC](https://forum.kirupa.com/t/access-array-from-loaded-clip/306022/1 "2010-03-08T13:32:18Z")

</div>

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:

```auto
trace("comp "+this.course.Components.toString());

```

I use the following code to load a swf into a placeholder clip:

```auto
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:

```auto
trace("Components "+MovieClip(this.parent).Components.toString());

```

and I get the following error:

```auto
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!!
