Skip to main content
Participant
July 25, 2007
Question

listener on _global.

  • July 25, 2007
  • 7 replies
  • 416 views
who can help me to write the listener for _global.temp so that listener do some function when _glabal.temp changed
This topic has been closed for replies.

7 replies

kglad
Community Expert
Community Expert
July 25, 2007
if you don't want that to happen, use an if-statement in watchF comparing ov and nv.
4terasAuthor
Participant
July 25, 2007
NO! if we write temp=1; and soon again temp=1;
the function watchF executes 2 times
kglad
Community Expert
Community Expert
July 25, 2007
i just wrote the code for you. you only need to change comment to actually call your function.
4terasAuthor
Participant
July 25, 2007
but I see a problem with _global.temp
how I need to write? this.watch("_global.temp",watchF); ???

kglad
Community Expert
Community Expert
July 25, 2007
that must be as2. you can use:

4terasAuthor
Participant
July 25, 2007
as2
kglad
Community Expert
Community Expert
July 25, 2007
as2 or as3?