Well, I am worn out.. have been working on this for two days and don't know where to turn. I am new to as3, but was pretty good with as2.

I have a multidimensional array on the main timeline. Its name is myInst. I need to access this array from this class to build a scrolling list of swfs which the path to the swfs is in the myInst array. I have not included the entire code/class because the issue is somewhere in this part. The error is 1009, cannot access a property or method of a null object reference. This fla is not going to be the root fla, it is going to be external, so the use of root probably will not work, but I tried it anyway, to no avail..

This is not the complete class, but thought it would be enough for someone with more as3 experience could see my problem.. thanks for any help.

package {
import flash.display.MovieClip;
import flash.net.*;
import flash.events.Event;
import flash.xml.XMLDocument;
import flash.display.Loader;
import flash.errors.IOError;
import flash.events.IOErrorEvent;
import flash.geom.Point;
import flash.display.Sprite;
import flash.events.MouseEvent;
import flash.display.DisplayObject;

public class BuildThumbPics extends MovieClip {
private var loader:URLLoader = new URLLoader();
private var cItems:Array = new Array();
private var loaders:Array = new Array();
private var clip:Sprite = new Sprite;
//var currentItem:myNewItem;
private var c:int=0;
//var currentItem:CarouselItem;
private var myx:Number=21;
private var myy:Number=15;

public function BuildThumbPics(){
//trace("Trying to find the myInst array " + MovieClip(root).myInst[k][5]);
trace("build thumb pics function has been called " + myx);
this.addItemsToScreen();
//thumbpics.addEventListener(Event.ADDED_TO_STAGE, addItemsToScreen);
}

public function addItemsToScreen():void {
trace("add items got called ");
//for (var k:int = 0; k < MovieClip(parent).myInst.length; k++) {
for (var k:int = 0; k < 1; k++) {
loaders[k] = new Loader();
loaders[k].contentLoaderInfo.addEventListener(Event.COMPLETE , onItemImageLoaded);
trace("Trying to find the myInst array " + MovieClip(parent).myInst[k][5]);
var mfile:String=MovieClip(root).myInst[k][5];
loaders[k].load(new URLRequest(mfile));
trace("addingItemsToScreen function - loading " + MovieClip(parent).myInst[k][5]);
}
}