JavaScript からフラッシュ ファイルに文字列を送信しようとしています。
の中に.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);
}
これを修正するにはどうすればよいですか?