If you're in an AIR application I'm pretty sure your javascript would in the
webkit browser so there's no way you can access a COM object from there.

If you want to access COM I'd suggest invoking an executable from AIR's
native execution API.  So build a simple EXE that works with your com object
then simply invoke that EXE from AIR.  If you need to send and receive data
to/from that COM object you can either use command line args, input file,
STD IN/STD OUT, or a combination of them.  You could use sockets, but
sockets come with a certain amount of complexity that might not be needed.

That's what I'd do.

Charlie

On Wed, Mar 23, 2011 at 2:00 PM, Frank G. Torres <[email protected]>wrote:

> Hi Eric,
>
>
>
> The application is a standalone AIR app running on the desktop.  The app is
> not being served up by a web server.  The COM objects are part of an SDK
> exposing a proprietary data store that is on the local machine.
>
>
>
> I appreciate the help but I think we might be talking about two different
> things.
>
>
>
> Thanks
>
> Frank
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On Behalf Of *
> [email protected]
> *Sent:* Wednesday, March 23, 2011 11:22 AM
> *To:* [email protected]
> *Subject:* Re: Re: RE: RE: [AFFUG Discuss] Calling COM objects from Flex
> Air
>
>
>
> Frank,
>
> What .COM are you gonna be working with?
>
>
> On Mar 23, 2011 11:18am, [email protected] wrote:
> > Frank,
> >
> >
> >
> >
> >
> > You ask about limitation on passing data...
> >
> >
> >
> >
> >
> >
> >
> >
> > The only limits I can forsee is those imposed on you by your COM, those
> inherit to PHP, and those inherit to AIR/ACTIONSCRIPT
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Mar 23, 2011 9:14am, "Frank G. Torres" [email protected]> wrote:
>
> >
> >
> > > I am not sure I follow you.  Are we referring to the same COM? J  By
> COM, I meant the Component Object Model interface defined by Microsoft.  The
> COM objects I am using provide data access to a custom data
> source. Frank  From: [email protected] [mailto:[email protected]] On Behalf Of
> [email protected]
> >
> >
> > > Sent: Wednesday, March 23, 2011 9:02 AM
> >
> >
> > > To: [email protected]
> >
> >
> > > Subject: Re: RE: [AFFUG Discuss] Calling COM objects from Flex
> Air Frank,
> >
> >
> > >
> >
> >
> > > The only limitation I can see is those imposed by your data providor,
> php and the com(s) you are working with
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > Might help to know what com you ar working with?
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > On Mar 23, 2011 8:55am, "Frank G. Torres" [email protected]>
> wrote:
> >
> >
> > > > Thanks for the info, Eric. Do you know if there are any
> considerations when passing data…both in terms of data type and
> size? Frank From: [email protected] [mailto:[email protected]] On Behalf Of
> Eric DeCoff
> >
> >
> > > > Sent: Tuesday, March 22, 2011 10:21 PM
> >
> >
> > > > To: [email protected]
> >
> >
> > > > Subject: Re: [AFFUG Discuss] Calling COM objects from Flex Air Frank,
>
> >
> >
> > > >
> >
> >
> > > > Sounds harder then it is...
> >
> >
> > > >
> >
> >
> > > > Attached is an example of using the External Interface I help
> Laurence with...
> >
> >
> > > >
> >
> >
> > > > Basicly the External interface is a simple wrapper that Flex needs to
> interact with a component
> >
> >
> > > >
> >
> >
> > > > public interface IExternalPrintModule
> >
> >
> > > > {function Print():void; function About():String;
> >
> >
> > > > }
> >
> >
> > > > I hope this helps...
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > On Tue, Mar 22, 2011 at 10:01 PM, Frank G. Torres
> [email protected]> wrote:I need to be able to instantiate and call
> methods on a COM object from within the ActionScript code of an AIR
> app. Based on what I have read, I would need to write a JavaScript wrapper
> around the COM calls then access the JavaScript using ExternalInterface. Is
> this really the only/best way?  Any help or guidance is much
> appreciated. Thanks,Frank
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > -------------------------------------------------------------
> >
> >
> > > > To unsubscribe from this list, simply email the list with unsubscribe
> in the subject line
> >
> >
> > > >
> >
> >
> > > > For more info, see http://www.affug.com
> >
> >
> > > > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> >
> >
> > > > List hosted by FusionLink
> >
> >
> > > > -------------------------------------------------------------
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > --
> >
> >
> > > > Eric R. DeCoff
> >
> >
> > > > Changing the world,
> >
> >
> > > > 1 line of code at a time
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > -------------------------------------------------------------
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > To unsubscribe from this list, simply email the list with unsubscribe
> in the subject line
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > For more info, see http://www.affug.com
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > List hosted by FusionLink
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > > -------------------------------------------------------------
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > -------------------------------------------------------------
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > To unsubscribe from this list, simply email the list with unsubscribe
> in the subject line
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > For more info, see http://www.affug.com
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > Archive @ http://www.mail-archive.com/discussion%40affug.com/
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > List hosted by FusionLink
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > > -------------------------------------------------------------
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
> >
> >
> > >
>
> -------------------------------------------------------------
> To unsubscribe from this list, simply email the list with unsubscribe in
> the subject line
>
> For more info, see http://www.affug.com
> Archive @ http://www.mail-archive.com/discussion%40affug.com/
> List hosted by FusionLink <http://www.fusionlink.com>
> -------------------------------------------------------------
>

Reply via email to