Question
Help me understand instance variable scope of classes linked to MovieClips onstage.
If I create a Symbol called MyMovieClip and add a TextField
to it called my_txt,and link it using by checking "Export for
Actionscript" to my class called MyMovieClip.
When I try to access the my_txt object from inside the class with say trace(this.my_txt) in the constructor, I keep getting the error "There is no property with the name my_txt". But in the constructor I can reference the same element using _level0.myMovieClipInstance.my_txt.
How useful is this linking if you can't access stuff inside the MovieClip? Hope you can help me understand what I'm missing.
When I try to access the my_txt object from inside the class with say trace(this.my_txt) in the constructor, I keep getting the error "There is no property with the name my_txt". But in the constructor I can reference the same element using _level0.myMovieClipInstance.my_txt.
How useful is this linking if you can't access stuff inside the MovieClip? Hope you can help me understand what I'm missing.