Accessing Main Timeline Variables from within a MovieClip
Hello,
Let us say we have a movieclip "mc1" on the stage.
We also have another movieclip "mc2" inside mc1.
We have declared a variable, say, var number1:Number=5 on the first frame of the main timeline.
Now we go inside mc1 and then inside mc2 and write some code on its first frame.
Is there any way to use the variable number1 over here?
Can properties of mc1 be altered using the code written here?
In AS2, it could be done using the "_parent" command, but it doesn't seem to work in AS3. (when we use parent and try accessing a property, it says that it is possibly undefined)
Thanking You,
Chinmaya