Attaching an object that extends MovieClip

In my code, I dynamically attach objects that extend MovieClip similar to the following code:
myMovieClipObject.attachMovie(“ObjectA”, “ObjectB”+ i,200+i);
ObjectA is an object in the library. Its linkage is to an AS 2.0 Class, we’ll call it myClass defined as follows:

class myClass extends MovieClip {
var myProperty:String = “Some Value”;
};

Later in my code, I can do all sorts of things to, say, ObjectB10, but the following is undefined:
ObjectB10.myProperty;
can anyone tell me why?

does it work with ObjectA ???

dont you need a constructor with classes?

Flash will add in a constructor function for you if you don’t so there is no need to define one - unless of course you want some code to execute, pass parameters to the super and/or make it a private member to prevent instantiation through the use of the new statement.

As for your problem, there is nothing wrong with what you have there - you should post your FLA :slight_smile: