Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

How to use ActiveXObject in AIR,or call js(with ActiveXObject) in AIR

$
0
0

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?


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>