How to use ActiveXObject in AIR,or call js(with ActiveXObject) in AIR
how use activexobject in air,or call js(with activexobject) in air
i need call javascript functions(with activexobject call).
i 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 break
}
i got resault:
referenceerror: can't find variable: activexobject.
i think can't call js activexobject in air......
but realy need use activexobject usb key info . so, should do?
the html engine that's included in air based on webkit, doesn't run activex controls. in addition, air has restriction can't use plugins within html content except flash player (which bundled air). unfortunately don't think there's way use activex object html in air.
did (or know) create activex object? suggestion can think of create native extension (ane) performs functionality of activex object, , use ane air app. (in fact, if don't have access source of activex object create ane uses activex object -- @ least, long ago wrote c# code embedded flash player activex object i'm guessing write c# ane uses activex object.)
paul robertson
adobe developer relations
More discussions in Archived Spaces
adobe
Comments
Post a Comment