Packagejp.nium.external
Classpublic final class JSFL

JSFL クラスは、SWF ファイルを再生中の Flash オーサリングツールと、JSFL を使用して通信を行うクラスです。 The JSFL class communicates with the Flash authoring tool which are playing the SWF file, using JSFL.


Example
  



Public Properties
 PropertyDefined by
  buildVersion : int
[static][read-only] Flash オーサリングツールのビルドバージョンを取得します。
JSFL
  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.
JSFL
  enabled : Boolean
[static][read-only] Flash オーサリングツールとの JSFL 通信が可能かどうかを取得します。 Returns if it is able to communicate with Flash authoring tool via JSFL.
JSFL
  language : String
[static][read-only] Flash オーサリングツールが実行されている環境の言語情報を取得します。
JSFL
  majorVersion : int
[static][read-only] Flash オーサリングツールのメジャーバージョンを取得します。
JSFL
  minorVersion : int
[static][read-only] Flash オーサリングツールのマイナーバージョンを取得します。
JSFL
  platform : String
[static][read-only] Flash オーサリングツールが実行されている OS 情報を取得します。
JSFL
  revisionVersion : int
[static][read-only] Flash オーサリングツールのリビジョンバージョンを取得します。
JSFL
Public Methods
 MethodDefined by
  
alert(... messages):void
[static] モーダル警告ダイアログボックスに、ストリングおよび [OK] ボタンを表示します。 displays a string in a modal Alert dialog box, along with an OK button.
JSFL
  
browseForFileURL(browseType:String, title:String = null):String
[static] ファイルを開く、またはファイルを保存システムダイアログボックスを開き、ユーザーは開いたり保存したりするファイルを指定できます。 Opens a File Open or File Save system dialog box and lets the user specify a file to be opened or saved.
JSFL
  
browseForFolderURL(description:String = null):String
[static] フォルダを参照ダイアログボックスを表示し、ユーザーがフォルダを選択できるようにします。 Displays a Browse for Folder dialog box and lets the user select a folder.
JSFL
  
call(funcName:String, ... args):*
[static] Flash JavaScript アプリケーションプログラミングインターフェイスを経由して、関数を実行します。 Execute function via Flash JavaScript Application Programming Interface.
JSFL
  
confirm(... messages):Boolean
[static] モーダル警告ダイアログボックスに、ストリングおよび [OK] ボタンと [キャンセル] ボタンを表示します。 displays a string in a modal Alert dialog box, along with OK and Cancel buttons.
JSFL
  
fltrace(... messages):void
[static] テキストストリングを [出力] パネルに送ります。 Sends a text string to the Output panel.
JSFL
  
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.
JSFL
  
runScript(fileURL:String, funcName:String = null, ... args):*
[static] JavaScript ファイルを実行します。関数をパラメータの 1 つとして指定している場合は、その関数が実行されます。また関数内にないスクリプトのコードも実行されます。スクリプト内の他のコードは、関数の実行前に実行されます。 executes a JavaScript file.
JSFL
Property detail
buildVersionproperty
buildVersion:int  [read-only]

Flash オーサリングツールのビルドバージョンを取得します。

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 オーサリングツールとの JSFL 通信が可能かどうかを取得します。 Returns if it is able to communicate with Flash authoring tool via JSFL.

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

Flash オーサリングツールが実行されている環境の言語情報を取得します。

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

Flash オーサリングツールのメジャーバージョンを取得します。

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

Flash オーサリングツールのマイナーバージョンを取得します。

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

Flash オーサリングツールが実行されている OS 情報を取得します。

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

Flash オーサリングツールのリビジョンバージョンを取得します。

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.

Example
   

browseForFileURL()method 
public static function browseForFileURL(browseType:String, title:String = null):String

ファイルを開く、またはファイルを保存システムダイアログボックスを開き、ユーザーは開いたり保存したりするファイルを指定できます。 Opens a File Open or File Save system dialog box and lets the user specify a file to be opened or saved.

Parameters
browseType:Stringファイルの参照操作の種類を指定するストリングです。 A string that specifies the type of file browse operation.
 
title:String (default = null)ファイルを開くダイアログボックスまたはファイルを保存ダイアログボックスのタイトルを指定するストリングです。 A string that specifies the title for the File Open or File Save dialog box.

Returns
Stringfile:/// URI で表したファイルの URL です。 The URL of the file, expressed as a file:/// URI.

Example
   

browseForFolderURL()method 
public static function browseForFolderURL(description:String = null):String

フォルダを参照ダイアログボックスを表示し、ユーザーがフォルダを選択できるようにします。 Displays a Browse for Folder dialog box and lets the user select a folder.

Parameters
description:String (default = null)フォルダを参照ダイアログボックスの説明を指定する省略可能なストリングです。 An optional string that specifies the description of the Browse For Folder dialog box.

Returns
Stringfile:/// URI で表したフォルダの URL です。 The URL of the folder, expressed as a file:/// URI.

Example
   

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.

Example
   

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.

Example
   

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.

Example
   

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.

Example
   

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.

Example