How to target class on frame 1?

Class on frame one:


var class1:Class1 = new Class1(prop1);

After I hae initiated that class, I add some movieclips from the library:


   var ClassReference = getClass(MC);
   var clip = new ClassReference();
   clip.name = String(MC);
   clip.x = XPos;
   clip.y = YPos;
   clip.alpha = 1;
   //main timeline clip
   var main = this;
 
   main.addChild(clip);
 

Attached to ‘clip’ is a class file:


package classes.com{
 import flash.display.MovieClip;
 import flash.events.Event;
 
 public class Clip extends MovieClip {
  
  public function Clip(){
   trace(parent.class1);
   this.addEventListener("addedToStage", initClip);
  }
  
  private function initClip(evt:Event){
   
  }
 }
}

But when I trace “trace(parent.class1);” … I get this error:


1119: Access of possibly undefined property class1 through a reference with static type flash.display:DisplayObjectContainer.

Any ideas? I’m slowly moving through the new AS3, and I run through a few snags here and there. I appreciate any help!

Thanks!