Sunday 27 May 2007

Updating the Battery and Reception Levels


A good question from someone who contacted me:

"I added this script [which inputs signal and battery levels] to one standby and it works like a charm but it doesn't update it at all. So is there any command that updates after some time in flash lite 1.1 ?"

Unfortunately, there is no function to update. However, an easy solution to this problem is to place this actionscript into a movieclip which contains x number of frames. Since a property of a movieclip is to play, it will continue looping through the movie when it's placed on the stage. So, if you place your actionscript in frame 1, it will 'update' every time it loops through the movie:



Hope this helps.

No comments: