[Flashcoders] Giving dynamic object a custom variable

2014-08-15 Thread Ted Lehr
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 a

RE: [Flashcoders] Giving dynamic object a custom variable

2014-08-15 Thread Ted Lehr
ugh never mind... sorry -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com on behalf of Ted Lehr Sent: Fri 8/15/2014 2:23 PM To: Flash Coders List Subject: [Flashcoders] Giving dynamic object a custom variable How can I create a variable in a dynamic object? For

Re: [Flashcoders] Giving dynamic object a custom variable

2014-08-15 Thread Kerry Thompson
It's not that difficult if you do it right. First, I'm not a fan of timeline code except for defining sections, such as stop on a keyframe, and minor control commands like gotoAndStop and gotoAndPlay. The rest I like to do in an external ActionScript file. I haven't used the Flash IDE in 3-4 yea