Constructor not being accessed by linked movieclip
I have several movieclips on the stage. They are linked (via properties - as linkage) to a class I created (GeoPuzzle).
The constructor calls several methods and has several properties that I set in the main timeline.
These methods are never accessed. I'm missing something obvious, but I don't know how to make these methods run, since they are in the contructor.
Here is my code (simplified):
public class GeoPuzzle extends MovieClip {
public var abbrev:String;
public var fullName:String;
public var isLocked:Boolean;
public function GeoPuzzle (abbrev:String, fullName:String, isLocked:Boolean):void {
this.abbrev = abbrev;
this.fullName = fullName;
this.isLocked = isLocked;
if (this.isLocked == true) {
this.gotoAndStop ("Lock");
}
this.addEventListener(TouchEvent.TOUCH_BEGIN, geoTouchBeginHandler);
}
}
The event listener is never added to the movie clips. Why? What should I be doing in the main timeline? After linking the movie clip and naming the instance, I'm not sure what to do after that to call the constructor method.
Thanks!
Amber