// *********************************************************// アプリケーションの初期化// *********************************************************
public function initData():void {
// メッセージ
firebug("initData() が実行されました" );
// デバッグ用のウインドウを開く
ExternalInterface.call( "console.open" );
}
log.as
拡張子:
// *********************************************************// ログ表示// *********************************************************
public function firebug(data:Object):void {
// 日付編集用
var fmt:DateFormatter = new DateFormatter();
fmt.formatString = "YYYY/MM/DD HH:NN:SS";
var logdt:String = fmt.format( new Date );
// JavaScript の呼び出し
ExternalInterface.call(
"console.log", logdt,
data+""
);
}