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.

Wednesday, 23 May 2007

Displaying Volume Levels


Just a quick heads up, you are able to retrieve volume levels as well using FSCommand2. The algorithm for displaying volume levels is completely identical to that mentioned in the Battery Level/Signal Tutorial except for the fact that the FSCommand is different:

status = FSCommand2( "GetMaxVolumeLevel" );
status = FSCommand2( "GetVolumeLevel" );


Using these two values, we can once again calculate the fraction of total volume and convert this to a number in which corresponds to a frame number in a movieclip which contains several frames of increasing volume level. Please refer to the other tutorial for a more indepth look on this.

Tuesday, 22 May 2007

SE AnalogBlue (Various Resolutions, FL 1.1)


Here's the finished product of my second flash lite menu. This one is totally built from scratch, featuring a scrollable text menu, battery, signal levels and the analog clock. I hope everyone enjoys this. There are three different resolutions to fit your SE phone needs.







I've also included a basic thm file that matches the colour scheme, but it is no way intended to be perfect thm file for the swf. If you wish to make your own to match this, I'd like to see what you can come up with.

Enjoy. If you decide to modify my menu, please let me know.

Download:
128 x 160 (w300i): link
176 x 220 (w550i): link
240 x 320 (w850i): link