Archived:シグナルインジケータを作成する方法
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
We do not recommend Flash Lite development on current Nokia devices, and all Flash Lite articles on this wiki have been archived. Flash Lite has been removed from all Nokia Asha and recent Series 40 devices and has limited support on Symbian. Specific information for Nokia Belle is available in Flash Lite on Nokia Browser for Symbian. Specific information for OLD Series 40 and Symbian devices is available in the Flash Lite Developers Library.
We do not recommend Flash Lite development on current Nokia devices, and all Flash Lite articles on this wiki have been archived. Flash Lite has been removed from all Nokia Asha and recent Series 40 devices and has limited support on Symbian. Specific information for Nokia Belle is available in Flash Lite on Nokia Browser for Symbian. Specific information for OLD Series 40 and Symbian devices is available in the Flash Lite Developers Library.
Article Metadata
Compatibility
Platform(s): Flash Lite: 1.1, 2.x
Article
Translated:
By morisawafnj
Last edited: hamishwillee
(14 May 2013)
シグナルインジケータの作成
- 新しいムービークリップを作成します。
- ムービークリップ中で、2つ以上のレイヤーを作成します。
- ActionScriptレイヤーの最初のキーフレームで、以下のコードを追加します。
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);
- その他の全てのキーフレームで、以下のコードを追加します。
call(1);
- このムービークリップを、シーン上に配置します。
Flash Lite 2.xで推奨するコードの改善
- call(1): このアクションは、function ステートメントのために廃止されました。



(no comments yet)