Creating a variable inside an object...How?

Hi,
In AS2, if I had an object named MC,
I could have created a variable inside the object
this way:

MC.direction=1;

in AS3 it doesn’t work.

How can I create inner variables?

Thanks.

u can do this on MovieClip class which is dynamic, but you can’t declare such variable’s type