On 2006-04-29, at 09:57 EDT, DL wrote:
> How do we access ExternalInterface class in Flash 8 compiled  
> openlaszlo movies?
>
> Using this example .. http://blog.deconcept.com/2005/08/16/external- 
> interface/
>
> What script goes into the lzx code?

You should be able to use the script exactly as shown in the example.

You can call any Flash built-in directly, just as you would in  
Actionscript.  This is not officially supported, since it will make  
your program non-portable.  Here's the output from a debugger session  
exploring flash.external.ExternalInterface.addCallback:

lzx> flash
«Object#130| {external: [object Object], net: [object Object], geom:  
[object Object], filters: [object Object], display: [object Object],  
text: [object Object]}»
lzx> Debug.inspect(«Object#130| {external: [object Object], ...»)
{external: [object Object], net: [object Object], geom: [object  
Object], filters: [object Object], display: [object Object], text:  
[object Object]} {
__proto__: «¿object?| Object.prototype»
constructor: Object
display: {}
external: {}
filters: {}
geom: {}
net: {}
text: {}
}«Object#130| {external: [object Object], net: [object Object], geom:  
[object Object], filters: [object Object], display: [object Object],  
text: [object Object]}»
lzx> Debug.inspect({})
{} {
__proto__: «¿object?| Object.prototype»
constructor: Object
ExternalInterface: «Function#138»
}«Object#133| {}»
lzx> Debug.inspect(«Function#138»)
«Function#138» {
__proto__: «Object#139| Function.prototype»
_addCallback: «Function#140»
_argumentsToAS: «Function#141»
_argumentsToXML: «Function#142»
_arrayToAS: «Function#143»
_arrayToJS: «Function#144»
_arrayToXML: «Function#145»
_callIn: «Function#146»
_callOut: «Function#147»
_escapeXML: «Function#148»
_evalJS: «Function#149»
_initJS: «Function#150»
_jsQuoteString: «Function#151»
_objectID: «Function#152»
_objectToAS: «Function#153»
_objectToJS: «Function#154»
_objectToXML: «Function#155»
_toAS: «Function#156»
_toJS: «Function#157»
_toXML: «Function#158»
_unescapeXML: «Function#159»
addCallback: «Function#160»
available: true
call: «Function#161»
constructor: Function
prototype: «Object#163| {}»
}«Function#138»
lzx>


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

Reply via email to