PDA

View Full Version : About variables and functions


Normunds
01-01-2002, 07:57 PM
Hi

I made a function in the main timeline with variable definitions in it, but when i called the function in other MC the number in textfield didnt appear, please suggest smth.

Billy T
01-02-2002, 12:07 AM
the number appeared for me

Normunds
01-02-2002, 06:05 AM
I know i cant see very well with my left eye, but i have that field empty, i hope you're using version. :confused:

Ricod
01-02-2002, 08:16 AM
Thats because the function inBeijing is in the _root, not in the timeline of the mc. To use the function :

_root.inBeijing();

would do it. But...
not what ur trying to do.
A better way would be to use the value stored in the first au0p and display that. On the first frame of the mc u could have something like (relative paths) :

au0p = _parent.au0p;


Or in absolute paths (label ur mc) :

_root.mcLabel.au0p = _root.au0p;

To find more about paths u could check out the tutorials section.