PDA

View Full Version : Declaring variables w/ dot syntax


Bernie X
03-02-2002, 03:02 PM
Has anyone else notice that if you put

_root.my_variable;

or

_level0.my_variable;

on the main timeline that they don't show up in the debugger, but if you use

var my_variable;

it does show on the _level0 as a variable

Is there logical reasoning to this?

sfa
03-03-2002, 11:36 AM
the "var" is used to declare a variable. The other way of declaring a variable is to assign a value to one before declaring it. If you just mention the variable without declaring it or assigning a value to it, it doesnt exist. (i,m tired now)

SFA