Basically what im doing is making a whole bunch of movieclips using a loop and loading an image into them..The movieclip is a success, but no object is there or seen on stage...


PHP Code:
private function createProjects():void
        
{
            for (var 
i:int 0numberOfProjectsi++)
            {
                var 
movieclip:MovieClip = new MovieClip(); //Creates the movieclip
                
movieclip.name "card" i//Gives a name card + the current project number
                
movieclip.addEventListener(MouseEvent.CLICKdisplayDataF); //Adds an event listener
                
movieclip.addEventListener(Event.ADDED_TO_STAGEaddedToStageF);
                
container.addChild(movieclip); //Adds the movieclip to a movieclip already on stage
            
}
            
        }
        
        private function 
addedToStageF(e:Event):void 
        
{
            
removeEventListener(Event.ADDED_TO_STAGEaddedToStageF);
            
            
e.target.randomF(01200); //randomF is a function used to create a random number givin a low and high val.
            
e.target.randomF(0800);
            
            var 
l:Loader = new Loader(); //Creates loader
            
var urlreq:URLRequest = new URLRequest("beach.jpg"); //Uses defult image for now
            
l.load(urlreq); //Loads
            
e.target.addChild(l);
            
            
trace("x = " e.target." y = " e.target.y);
        }