onClipEvent (mouseDown) {
redwidth=getProperty ( _root.red, _width) ;
_root.displayvalue.text=width;
}
What Ive just told Flash is that the value of variable redwidth is equal to whatever number the getProperty function returns as the width of the Movie Clip instance. If the width is ten pixels, then redwidth=10; if the width is 300 pixels, then redwith=300.
Just like instance names, variable names can be pretty much anything that your wild little imagination can contrive--as long as the name doesnt perfectly match the text defining a script/function. Trying to name your instances or variables after ActionScripts will get you a right mess.


