actionscript 3 - Error calling method on NPObject -


It seems that is not working:

  object classid = "clsid : D27cdb6e-A6D-11CF-96B8-444553540000 "Codebase =" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0 "Width =" 600 "height =" 300 "id =" external interface "align =" middle "& gt; & Lt; Param name = "allowScriptAccess" value = "wahid" /> & Lt; Param name = "allowFullScreen" value = "wrong" /> & Lt; Param name = "movie" value = "sgame.swf" /> & Lt; Param name = "quality" value = "high" /> & Lt; Param name = "bgcolor" value = "#ffffff" /> & Lt; Allow src = "sgame.swf" quality = "high" bgcolor = "#ffffff" width = "600" height = "300" name = "external interface" align = "middle" allowScriptAccess = "always" FullScreen = " False "type =" app / x-shockwave-flash "plugins page =" http://www.macromedia.com/go/getflashplayer "/> & Lt; / Object & gt;  

and in the AS3 code:

  import flash.external.ExternalInterface; ExternalInterface.addClallback ("retrieve", function (the data) {// stuff});  

Here is javascript:

  document ['external interface']. Field ('test');  

I can not see anything wrong with it.

It seems that you are absent. ExternalInterface.addClallback ("retrieveChar", function (theData)) & lt; - ??

I have said similar things and found it very useful.


Comments