Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 18:35, 2 October 2007.

How to make a signal indicator

From Forum Nokia Wiki


Compatibility: Flash Lite: 1.1, 2.x

Creating the signal indicator

  • Create a new movie clip
  • In this movie clip create at least 2 layers:
    • ActionScript: In this layer create as many keyframes as levels you want to display plus one. (we will choose 8 levels in this example, so 9 frames to create)
    • Level:
      • In the first frame, create a level bar corresponding to the lowest level.
      • In the last but one frame create a keyframe and stretch your level bar to the highest level. Then add a motion tween.
      • In the last frame draw an indicator corresponding to the "no network" state.
    • Background: You can add a layer to put all your static components.
    • Your timeline will be like this: Image:Timeline_signal.jpg
  • In the first keyframe of the ActionScript layer add this code:
levelsNumber=8;
signalMax = fscommand2("GetMaxSignalLevel");
signalLevel = Math.ceil(fscommand2("GetSignalLevel")*levelsNumber/signalMax);
networkstatus = fscommand2("GetNetworkStatus"); 
 
if (networkstatus == 0) { //If there is no network
	signalLevel = levelsNumber + 1;
}
 
gotoAndPlay(signalLevel);
  • In all other keyframes add this code:
call(1);
  • Put this movie clip into your scene.

Flash Lite 2.x recommended improvements

  • call(1): This action was deprecated in favor of the function statement.


Download

You can download an example with source code here:
Signal Indicator 240*320 (swf + fla)
Image:Example_signal.jpg

Related Discussions
Thread Thread Starter Forum Replies Last Post
porting signal() ad FIONBIO zheludev Symbian Tools & SDKs 0 2003-06-15 07:28
getting signal strength Léo Symbian Networking & Messaging 1 2005-10-03 04:13
RSSI value on Symbian OS operated phone ckmeng General Symbian C++ 6 2006-12-13 18:09
using indicator structures in linux zephyia Multimodecards 1 1970-01-01 02:00
busy signal dips05 Symbian Networking & Messaging 0 2006-02-23 16:05
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZflashE5fliteQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX