我更改了我的 html 模板以包含 flashvars,如下所示:
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:无法访问空对象引用的属性或方法。
我不知道为什么?有任何想法吗?这只是因为我在 flex 调试器中而发生吗?
谢谢!!