Is this a client/server app, or a client-only app? If client only, you can't call ActiveX objects, in fact, you can't run Java code at all (except with the proxy, which makes things more complicated).
In the HTML file - you are loading it in IE, and using that to access ActiveX objects? That code won't work in AIR, because AIR uses its own in-built Webkit based browser, not IE. How about just distributing that SWF and the HTML file instead of using AIR? Not as neat, but will work, on Windows machines with Word installed at least. If you only need to tackle the new Office Open XML files, you can use AIR's E4X support to work with the XML file. Otherwise, except reverse engineering the Word format, you're pretty much out of luck with AIR - you can't even execute external EXEs with it. Sam 2009/1/5 lehaianh1986 <lehaianh1...@yahoo.com>: > Hi every body. I'm a newbie in Flex and AIR. I have new project that > create an AIR app. It open MS word document, edit and save as to plain > text. So my idea is use Actionscript in AIR app to call javascript in > mx:html, then java code call an ActiveXObject to launch MS Word app. I > use Flexbuilder 3 to create AIR app. In html file, I can call an > ActiveXObject run ok, but in AIR app I can't call it. The message is > "ReferenceError: Can't find variable: ActiveXObject" > > So why I'm wrong? How do I do to execute my idea? > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links > > > >