The final line in the preceding script successfully sets
_global.batteryLevel. The problem is that the script is run only
once, when the application starts. What I need to be able to do is
to call Status.getBatteryLevel() from a battery monitoring
movieclip within my main movie. The movieclip runs constantly to
update a display of remaining battery charge.
Unfortunately, whenever I try to execute
Status.getBatteryLevel() from any frame other than the one where
the listener is set-up, the function does not work. Is there
something that I need to do to make the function call available
Using the _parent. prefix probably wouldn't work since I have
tried the function call right from another frame in the same level.
Fortunately, your suggestion to use the _global scope worked great!
Thanks very much!