次のようなflashvarsを含めるようにhtmlテンプレートを変更しました。
if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "${swf}",
"FlashVars", "product_id=4958",
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${application}",
"quality", "high",
"bgcolor", "${bgcolor}",
"name", "${application}",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
}
そして、私は次のように私のアプリでそれらにアクセスしようとしています:
private static var _PID:uint = Application.application.parameters.product_id;
しかし、私はこのエラーを受け取ります:
エラー#1009:nullオブジェクト参照のプロパティまたはメソッドにアクセスできません。
何故かはわからない?何か案は?これは、フレックスデバッガーを使用しているために発生しているだけですか?
ありがとう!!