I have a moveclip called mc on the main stage. there is a variable(btnPos) inside the movieclip. If I want to control the variables on the main stage(root) rather than inside the movieclip, how can I do that?

In AS2, I use

mc.btnPos=4;

It seems not working in AS 3 now.

Any help is appreciated.