PDA

View Full Version : Varialbes... simple, right?


scottsabo
09-06-2002, 01:12 PM
If i have a mc called circle on the main timeline with a variable rad set to 5 ( var rad = 5;), why can I not trace (circle.rad) ; from the main timeline and get the result '5'?

I've included the .fla so someone can point out my stupidity...
thanks,

scott

Jesse
09-07-2002, 09:31 AM
The main timeline which contains the reference to your variable is instantiated and run an instant before the content within in. So your variable isn't created until after it's traced. Move the trace to the next frame and it works.

scottsabo
09-09-2002, 01:34 PM
Doh!

It all makes sense now... well, for the most part.

thanks for your help!