I’ve created a SittingDuck.as class that extends the MovieClip class. When I instantiate SittingDuck in my .fla file, I try and access both the properties I created in the SittingDuck.as file, as well as its inherited properties. I’m able to refer to and change x and y properties, but when I attempt to access the instanceName property, I get the message,
“Access of possibly undefined property instanceName through a reference with static type com.examples.SittingDuck.
Problem is, prior to writing the SittingDuck.as file, I was able to get the instanceName property with no problem. Any ideas why my instance of SittingDuck hasn’t inherited this property from MovieClip?
Do you mean the
nameproperty? as in like MovieClip.name? I don’t believe there is an instance variable calledinstanceName