Packagejp.nium.external
Classpublic final class JSFLInterface
InheritanceJSFLInterface Inheritance Object

JSFLInterface クラスは、SWF ファイルを再生中の Flash IDE と、JSFL を使用して通信を行うクラスです。 JSFLInterface クラスを直接インスタンス化することはできません。 new JSFLInterface() コンストラクタを呼び出すと、ArgumentError 例外がスローされます。 The JSFLInterface class communicates with the Flash IDE which are playing the SWF file, using JSFL. JSFLInterface class can not instanciate directly. When call the new JSFLInterface() constructor, the ArgumentError exception will be thrown.

View the examples



Public Properties
 PropertyDefined By
  buildVersion : int
[static] [read-only]
JSFLInterface
  configURI : String
[static] [read-only] ローカルユーザーの "Configuration" ディレクトリを file:/// URI として表す完全パスを指定するストリングを取得します。 a string that specifies the full path for the local user's Configuration directory as a file:/// URI.
JSFLInterface
  enabled : Boolean
[static] [read-only] Flash IDE との JSFL 通信が可能かどうかを取得します。 Returns if it is able to communicate with Flash IDE via JSFL.
JSFLInterface
  language : String
[static] [read-only]
JSFLInterface
  majorVersion : int
[static] [read-only]
JSFLInterface
  minorVersion : int
[static] [read-only]
JSFLInterface
  platform : String
[static] [read-only]
JSFLInterface
  revisionVersion : int
[static] [read-only]
JSFLInterface
Public Methods
 MethodDefined By
  
alert(... messages):void
[static] モーダル警告ダイアログボックスに、ストリングおよび [OK] ボタンを表示します。 displays a string in a modal Alert dialog box, along with an OK button.
JSFLInterface
  
call(funcName:String, ... args):*
[static] Flash JavaScript アプリケーションプログラミングインターフェイスを経由して、関数を実行します。 Execute function via Flash JavaScript Application Programming Interface.
JSFLInterface
  
confirm(... messages):Boolean
[static] モーダル警告ダイアログボックスに、ストリングおよび [OK] ボタンと [キャンセル] ボタンを表示します。 displays a string in a modal Alert dialog box, along with OK and Cancel buttons.
JSFLInterface
  
fltrace(... messages):void
[static] テキストストリングを [出力] パネルに送ります。 Sends a text string to the Output panel.
JSFLInterface
  
prompt(title:String, ... messages):String
[static] モーダル警告ダイアログボックスに、プロンプトとオプションのテキストおよび [OK] ボタンと [キャンセル] ボタンを表示します。 displays a prompt and optional text in a modal Alert dialog box, along with OK and Cancel buttons.
JSFLInterface
  
runScript(fileURL:String, funcName:String = null, ... args):*
[static] JavaScript ファイルを実行します。関数をパラメータの 1 つとして指定している場合は、その関数が実行されます。また関数内にないスクリプトのコードも実行されます。スクリプト内の他のコードは、関数の実行前に実行されます。 executes a JavaScript file.
JSFLInterface
Property Detail
buildVersionproperty
buildVersion:int  [read-only]


Implementation
    public static function get buildVersion():int
configURIproperty 
configURI:String  [read-only]

ローカルユーザーの "Configuration" ディレクトリを file:/// URI として表す完全パスを指定するストリングを取得します。 a string that specifies the full path for the local user's Configuration directory as a file:/// URI.


Implementation
    public static function get configURI():String
enabledproperty 
enabled:Boolean  [read-only]

Flash IDE との JSFL 通信が可能かどうかを取得します。 Returns if it is able to communicate with Flash IDE via JSFL.


Implementation
    public static function get enabled():Boolean
languageproperty 
language:String  [read-only]


Implementation
    public static function get language():String
majorVersionproperty 
majorVersion:int  [read-only]


Implementation
    public static function get majorVersion():int
minorVersionproperty 
minorVersion:int  [read-only]


Implementation
    public static function get minorVersion():int
platformproperty 
platform:String  [read-only]


Implementation
    public static function get platform():String
revisionVersionproperty 
revisionVersion:int  [read-only]


Implementation
    public static function get revisionVersion():int
Method Detail
alert()method
public static function alert(... messages):void

モーダル警告ダイアログボックスに、ストリングおよび [OK] ボタンを表示します。 displays a string in a modal Alert dialog box, along with an OK button.

Parameters

... messages警告ダイアログボックスに表示するメッセージを指定するストリングです。 A string that specifies the message you want to display in the Alert dialog box.

call()method 
public static function call(funcName:String, ... args):*

Flash JavaScript アプリケーションプログラミングインターフェイスを経由して、関数を実行します。 Execute function via Flash JavaScript Application Programming Interface.

Parameters

funcName:String実行したい関数名です。 The name of the function to execute.
 
... argsfuncName に渡すパラメータです。 The parameter to pass to funcName.

Returns
*funcName を指定した場合に、関数の結果をストリングで返します。 Return the result of the function as string if funcName specified.
confirm()method 
public static function confirm(... messages):Boolean

モーダル警告ダイアログボックスに、ストリングおよび [OK] ボタンと [キャンセル] ボタンを表示します。 displays a string in a modal Alert dialog box, along with OK and Cancel buttons.

Parameters

... messages警告ダイアログボックスに表示するメッセージを指定するストリングです。 A string that specifies the message you want to display in the Alert dialog box.

Returns
Booleanユーザーが [OK] をクリックしたときは true、[キャンセル] をクリックしたときは false を返します。 true if the user clicks OK; false if the user clicks Cancel.
fltrace()method 
public static function fltrace(... messages):void

テキストストリングを [出力] パネルに送ります。 Sends a text string to the Output panel.

Parameters

... messages[出力] パネルに表示するストリングです。 string that appears in the Output panel.

prompt()method 
public static function prompt(title:String, ... messages):String

モーダル警告ダイアログボックスに、プロンプトとオプションのテキストおよび [OK] ボタンと [キャンセル] ボタンを表示します。 displays a prompt and optional text in a modal Alert dialog box, along with OK and Cancel buttons.

Parameters

title:Stringプロンプトダイアログボックスに表示するストリングです。 A string to display in the Prompt dialog box.
 
... messagesプロンプトダイアログボックスに表示するストリングです。 An optional string to display as a default value for the text field.

Returns
Stringユーザーが [OK] をクリックした場合はユーザーが入力したストリング、[キャンセル] をクリックした場合は null を返します。 The string the user typed if the user clicks OK; null if the user clicks Cancel.
runScript()method 
public static function runScript(fileURL:String, funcName:String = null, ... args):*

JavaScript ファイルを実行します。関数をパラメータの 1 つとして指定している場合は、その関数が実行されます。また関数内にないスクリプトのコードも実行されます。スクリプト内の他のコードは、関数の実行前に実行されます。 executes a JavaScript file. If a function is specified as one of the arguments, it runs the function and also any code in the script that is not within the function. The rest of the code in the script runs before the function is run.

Parameters

fileURL:String実行するスクリプトファイルの名前を指定した file:/// URI で表されるストリングです。 string, expressed as a file:/// URI, that specifies the name of the script file to execute.
 
funcName:String (default = null)fileURI で指定した JSFL ファイルで実行する関数を識別するストリングです。 A string that identifies a function to execute in the JSFL file that is specified in fileURI. This parameter is optional.
 
... argsfuncName に渡す省略可能なパラメータです。 optional parameter that specifies one or more arguments to be passed to funcname.

Returns
*funcName を指定すると、関数の結果をストリングで返します。指定しない場合は、何も返されません。 The function's result as a string, if funcName is specified; otherwise, nothing.
Examples