How can I create a variable in a dynamic object?

For example, if I had a movie clip in the library, I could open it up and on 
the first frame I could give it:

var velocityX:Number = Math.random()*10-10;

I could then refer to mc.velocityX;

How can I create that variable on an object create in actionscript?
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to