How to use ActiveXObject in AIR,or call js(with ActiveXObject) in AIR
I need call some JavaScript functions(with ActiveXObject call).
i do this:
html=new HTMLLoader();
html.runtimeApplicationDomain = ApplicationDomain.currentDomain;
html.addEventListener(Event.COMPLETE,aaa);
html.load(new URLRequest("js.html"));
public function aaa(evt:Event):void
{
html.window.getSomeDataFromActiveXObject(); //there will break
}
I got this resault:
ReferenceError: Can't find variable: ActiveXObject.
I think can't call JS with ActiveXObject in AIR......
but I realy need to use ActiveXObject to get USB Key info . so, What should I do?