SOLAクラス
SOLA(SOLARef) [Singleton]
Flashオブジェクトを、SOLAのルートオブジェクトに変換します。SOLAのオブジェクトへは、Actionscript2.0(Flash Player8対応)でアクセスします。オブジェクトのプロパティへは直接アクセスできません。getVal/setValメソッドを使用してください。addListenerメソッドでリスナーを登録すると、イベントを受け取れます。
例
SOLAオブジェクトを作成するためには、ルート階層で、SOLA()メソッドを呼び出します。
var mySola = new Object(); // Flashオブジェクト
_root.SOLA(mySola); // SOLAオブジェクトを活性化
var solaVersion = mySola.getVal("version");
trace(solaVersion) ; // "5.1.8.3"
子オブジェクト
World MIAW Renderer ImageRender Dialog DeviceController Cursor FileIO Menu Progress System Inspector DefaultWorld DefaultMIAW DefaultView DefaultUI
メソッド
reset quit open save newObject Worlds newWorld deleteWorld MIAWs newMIAW deleteMIAW fullScreen importProps exportProps importInternalProps export3DProps import3DProps
_Object クラスから継承されるメソッド
activate addEvent dispatchSolaEvent getVal isActivated removeEvent setVal test
プロパティ
version modifiedDateSt modifiedTimeSt modifiedDate modifiedTime modifiedBy licenseType licenseID runMode tempPath scnPath scnFolderPath
_Object クラスから継承されるプロパティ
class
メソッドの詳細
reset
SOLA.reset( ) : Boolean
シーンを新規作成します。
quit
SOLA.quit( ) : Void
SOLAのアプリケーションを終了します。
open
SOLA.open( filePath:String ) : Boolean
名前を指定して、SOLAファイル(*.sla)を開きます。
パラメータ
filePath:String ― 未指定の場合は、ファイル選択ダイアログが開きます。
save
SOLA.save( filePath:String ) : Boolean
名前を指定して、SOLAファイル(*.sla)を保存します。
パラメータ
filePath:String ― 未指定の場合は、ファイル選択ダイアログが開きます。
newObject
SOLA.newObject( dataType:String ) : Object
プロパティを持つ汎用オブジェクトを返します。"transform"型は、Arrayオブジェクトです。
パラメータ
dataType:String ― "color","point","rect","vector","transform"のいずれかです。
Worlds
SOLA.Worlds() : Array
ワールド名の配列を返します。
newWorld
SOLA.newWorld( Name:String ) : Boolean
新規3Dワールドを作成します。
パラメータ
Name:String ― 作成する3Dワールドの名称です。
関連項目
deleteWorld
deleteWorld
SOLA.deleteWorld( Name:String ) : Boolean
名前を指定した 3Dワールドを削除します。
パラメータ
Name:String ― 削除する 3Dワールドの名称です。
関連項目
newWorld
MIAWs
SOLA.MIAWs() : Array
すべてのMIAW名の配列を返します。
newMIAW
SOLA.newMIAW( Name:String ) : Boolean
MIAWを作成します。
パラメータ
Name:String ― 作成する MIAW の名称です。
関連項目
deleteMIAW
deleteMIAW
SOLA.deleteMIAW( Name:String ) : Boolean
名前を指定した MIAWを削除します。
パラメータ
Name:String ― 削除する MIAW の名称です。
関連項目
newMIAW
fullScreen
SOLA.fullScreen( TrueOrFalse, alert ) : Boolean
フルスクリーンにします。
importProps
ObjectRef.importProps( filePath:String ) :Boolean
オブジェクトのプロパティを、指定したファイルから読み込みます。読み込み可能なファイル形式は、INIフォーマットのテキストファイルです。
パラメータ
filePath:String ― ファイルへのパスです。
関連項目
exportProps
exportProps
ObjectRef.exportProps( filePath:String ) : Boolean
オブジェクトのプロパティを、指定したファイルへ書き出します。書き出されるファイルは、INIフォーマットのテキストファイルです。
パラメータ
filePath:String ― ファイルへのパスです。
関連項目
importProps
importInternalProps
SOLA.importInternalProps() : Boolean
オブジェクトのプロパティを、現在開いているファイルの保存情報から読み出します。
export3DProps
SOLA.export3DProps(filePath:String) : Boolean
3Dオブジェクトのプロパティを、書き出します。
パラメータ
filePath:String ― 未指定の場合は、ファイル選択ダイアログが開きます。
import3DProps
SOLA.import3DProps( filePath:String ) : Boolean
3Dオブジェクトのプロパティを、読み込みます。
パラメータ
filePath:String ― 未指定の場合は、ファイル選択ダイアログが開きます。
プロパティの詳細
ドットシンタックスによるプロパティへの直接アクセスはできません。getVal/setValメソッドでプロパティの取得、設定をおこないます。
version
version: String
SOLAのバージョン情報です。読み取り専用。
関連項目
modifiedTime modifiedDate modifiedBy
modifiedDateSt
modifiedDateSt: String
SOLAのコアが作成された日付ステリングです。読み取り専用。
関連項目
version modifiedTime modifiedBy
modifiedTimeSt
modifiedTimeSt: String
SOLAのコアが作成された時間ストリングです。読み取り専用。
関連項目
version modifiedDate modifiedBy
modifiedDate
modifiedDate: Object
SOLAのコアが作成された日付オブジェクトです。日付オブジェクトは、"year","month","day"のプロパティを持ちます。読み取り専用。
関連項目
version modifiedTime modifiedBy
modifiedTime
modifiedTime: Object
SOLAのコアが作成された時間オブジェクトです。時間オブジェクトは、"hour","minute","second"のプロパティを持ちます。読み取り専用。
関連項目
version modifiedDate modifiedBy
modifiedBy
modifiedBy: String
SOLAのコアをビルドした管理者です。読み取り専用。
関連項目
version modifiedTime modifiedDate
licenseType
licenseType: String
SOLAのライセンスタイプです。"trial","limited","subscription","perpetual,"volume"のいずれかです。読み取り専用。
licenseID
licenseID: Number
SOLAのライセンスの識別値です。
runMode
runMode: String
現在の再生モードです。"shockwave","contents","author"のいずれかです。SOLAがShockwaveプレーヤーで再生されているかどうか、条件分岐に使用します。読み取り専用。
tempPath
tempPath: String
テンポラリーフォルダへのパスです。読み取り専用。
scnPath
scnPath: String
現在のシーンが保存されているファイルのパス名を返すプロパティです。読み取り専用。
関連項目
scnFolderPath
scnFolderPath
scnFolderPath: String
現在のシーンが保存されているフォルダのパス名を返すプロパティです。読み取り専用。
関連項目
scnPath