An easy way is to define the variable on the root:
_root.foo = this.mouseY; // or _root.mouseY (getting the mouse coordinates is different depending on what's calling it)
Then just call the variable from anywhere by calling it from the root.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
|