我正在尝试将字符串从 javascript 发送到我的 flash 文件。
在里面.mxml
我有这个:
xmlLocation = (root.loaderInfo.parameters.location) ? root.loaderInfo.parameters.location : "";
它在这条线上崩溃并给了我一个
TypeError: Error #1009: Cannot access a property or method of a null object reference.
我发送的要么什么都没有,要么是这样的:
function callRecorder(x){
$("#vidRecorderHolder").html("<span id='vidRecorderDIV'></span>");
currentVid = x;
var flashvars = {};
flashvars.fileName=x;
flashvars.location = "[location]";
var parameters = {};
var attributes = {};
attributes.name="vidRecorder";
attributes.id="vidRecorder";
swfobject.embedSWF("commercialtribe.swf?ID="+Math.random()*100,"vidRecorderDIV","400","400","11.2", "expressInstall.swf", flashvars, parameters, attributes);
}
我该如何解决?