On 15 Dec 2005 at 7:40, Henry Minsky wrote:

> I haven't tried using that API yet, and I don't know of anyone else who has, but I'd
> be willing to help out if you have any questions. Remember to compile for swf8, of course...
>
>> On 12/15/05, DL <[EMAIL PROTECTED]> wrote:
>> Are there any discussions on how to apply
>> Flash 8 ExternalInterface in OpenLaszlo-3.1
>> for _javascript_ <--> lzx and lzx <--> _javascript_?
> >
>> i.e. including in lzx app  the actionscript as here ..
>>
>> http://blog.deconcept.com/2005/08/16/external-interface/
>

Experimenting, I found that an swf8 with externalinterface actionscript (compiled by an external Flash IDE) can be embedded as a resource inside a laszlo app, and then used to send/receive data via externalinterface API.

The problem to solve is then getting these exchanges to/from the host openlaszlo app containing the embedded swf8 resource.

My question is.. can there be a localconnection between the embedded swf8 and the host openlaszlo app ... to convey changes to/from the host  openlaszlo app? 

In other words, is it feasible to use the embedded swf8 as an "externalinterface gateway" between openlaszlo and HTML wrapper _javascript_? 

If feasible, how is a localconnection object coded in openlaszlo-3.1? 
Any docs / threads describing this?
___________________________________

Clues:

In a thread in openlaszlo forum (on embed.js) this reply from Max refers to a "localconnection object ".. 

"Next, h.swf is loaded by h.html (or the iframe with h.html's contentw rewritten) with query string arguments. h.swf starts up and uses a localconnection object to send an event into the other Flash instance - the LZX app. Both flash instances must have the same connuid to be able to communicate. This prevents multiple instances of history-enabled LZX applications in different windows from interfering with each other. Currently, this also prevents more than one app in the same window from working with history or lzsetcanvasattribute. " 

and found some more reference to use of "localconnection object" here ..

http://www.openlaszlo.org/jira/browse/LPP-1000

___________________________________

DL
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to