fscommand2 関数

fscommand2(command: String, parameter1: String,...parameterN: String) : Void

SWF ファイルが Flash Lite プレーヤーまたはモバイルデバイス上のホストアプリケーションと通信できるようにします。

fscommand2() 関数は fscommand() 関数と似ていますが、次のような違いがあります。

fscommand2() を使用して Flash Lite プレーヤーにメッセージを送るには、定義済みのコマンドとパラメータを使用します。fscommand() 関数のコマンドおよびパラメータに指定できる値については、「ActionScript 言語エレメント」にある「fscommand2 コマンド」の項を参照してください。これらの値は、Flash Lite プレーヤーで再生する SWF ファイルを制御します。

メモ : Web プレーヤーでは、fscommand2() コマンドを使用できません。

使用されなくなった fscommand2() コマンド

Flash Lite 1.1 の fscommand2() の中には、Flash Lite 2.0 で使用できなくなったものがあります。次の表に使用できなくなった fscommand2() コマンドを示します。

コマンド

代わりに使用するコマンド

Escape

escape グローバル関数

GetDateDay

Date オブジェクトの getDate() メソッド

GetDateMonth

Date オブジェクトの getMonth() メソッド

GetDateWeekday

Date オブジェクトの getDay() メソッド

GetDateYear

Date オブジェクトの getYear() メソッド

GetLanguage

System.capabilities.language プロパティ

GetLocaleLongDate

Date オブジェクトの getLocaleLongDate() メソッド

GetLocaleShortDate

Date オブジェクトの getLocaleShortDate() メソッド

GetLocaleTime

Date オブジェクトの getLocaleTime() メソッド

GetTimeHours

Date オブジェクトの getHours() メソッド

GetTimeMinutes

Date オブジェクトの getMinutes() メソッド

GetTimeSeconds

Date オブジェクトの getSeconds() メソッド

GetTimeZoneOffset

Date オブジェクトの getTimeZoneOffset() メソッド

SetQuality

MovieClip._quality

Unescape

unescape() グローバル関数


使用できるバージョン : ActionScript 1.0、Flash Lite 1.1

パラメータ

command: String - ホストアプリケーションに任意の用途で渡されるストリング、または Flash Lite プレーヤーに渡されるコマンド。

parameters: String - ホストアプリケーションに任意の用途で渡されるストリング、または Flash Lite プレーヤーに渡される値。