David is correct, LocalConnection does not write to a file--it uses
shared memory. I'm not an expert on LocalConnection, but it doesn't
surprise me that you can experience some latency if a dozen SWF files
are all sharing memory with a single gateway SWF file. The beleaguered
gateway SWF would have to manage a dozen different shared memory
allocations (and I believe there is polling involved).

As for the original question about communicating with a VB application,
if you can publish for Flash Player 8, ExternalInterface is the way to
go.

Francis

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Tom Lee
> Sent: Wednesday, April 26, 2006 4:12 PM
> To: 'Flashcoders mailing list'
> Subject: RE: [Flashcoders] LocalConnection from SWF <-> Visual Basic?
> 
> I can't say for sure whether LocalConnection writes to a file or not,
but
> I
> did want to point out that it can be pretty slow, depending on the
number
> of
> swfs talking to the gateway swf at once.  It certainly SEEMED like it
was
> doing some file IO.  In my experience, 10 or 12 swfs talking to the
> gateway
> swf through LocalConnection (at once) caused some pretty serious
latency.
> ExternalInterface, on the other hand, didn't have noticeable delays.
> 
> -tom
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of David
> Rorex
> Sent: Wednesday, April 26, 2006 6:59 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] LocalConnection from SWF <-> Visual Basic?
> 
> LocalConnection is asynchronous. I don't know how mProjector got
> synchronous
> code in flash 7, it had to be some very clever hack. However,
synchronous
> calls are supported natively in flash 8 (via ExternalInterface, which
> communicates with the host using a documented XML format I believe).
> 
> SharedObject writes to a file, but I don't know if the format is
> documented
> anywhere. I'm pretty sure LocalConnection does something in memory,
and
> doesn't go through files. But I don't know all the details on how
these
> are
> implemented internally.
> 
> -David R
> 
> On 4/26/06, JesterXL <[EMAIL PROTECTED]> wrote:
> >
> > Hrm... I think SharedObject & LocalConnection both write to a file
that
> > you
> > could check, but not really sure.  I think that's how mProjector
managed
> > to
> > get syncronous code, not sure.
> >
> > Darron might have something here:
> > http://www.darronschall.com/weblog/archives/000151.cfm
> >
> > I coulda swore someone else did something similiar, but the link
escapes
> > me....
> >
> > ----- Original Message -----
> > From: "Rifled Cloaca" <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
> > Sent: Wednesday, April 26, 2006 6:50 PM
> > Subject: Re: [Flashcoders] LocalConnection from SWF <-> Visual
Basic?
> >
> >
> > Yeah, that was plan B.  I was curious, though, if it were possible
> without
> > embedding a proxy SWF.  Thanks!
> >
> > On 4/26/06, JesterXL <[EMAIL PROTECTED]> wrote:
> > >
> > > Have one SWF embedded in the VB app that exposes the
LocalConnection.
> > > Hey
> > > can talk to VB via ExternalInterface.
> > >
> > > Every other SWF can talk to the VB app via that LocalConnection
proxy
> > SWF
> > > embedded in VB.
> > >
> > > ----- Original Message -----
> > > From: "Rifled Cloaca" <[EMAIL PROTECTED]>
> > > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
> > > Sent: Wednesday, April 26, 2006 6:21 PM
> > > Subject: [Flashcoders] LocalConnection from SWF <-> Visual Basic?
> > >
> > >
> > > All,
> > >
> > > Does anyone know if it's possible to create a LocalConnection
between
> a
> > > SWF
> > > file and a Visual Basic App?  If so, are there any open source
> examples
> > > out
> > > there?  Thanks!
> > >
> >
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 
> 
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to