I’m using AS 3 in Adobe Flash 9 Public Alpha.
I have a MovieClip named “RandImg” in my Library with an associated “RandImg.as” class file. I’m placing this MC on the stage during design time. This MC contains an instance of another MC with with the instance name of “mcDefault”. In the constructor of my RandImg.as class file, if I attempt to reference mcDefault, I get the following error when I try to compile:
ReferenceError: Error #1056: Cannot create property mcDefault on RandImg.
How do I reference this movie clip in AS 3?
Also, if I want to remove mcDefault from memory, but keep the RandImg MC in memory, in the “RandImg.as” class file would I just call: removeChild( mcDefault ); ?
Thanks!
~JC