[Laszlo-dev] swf9 ExternalInterface.addCallback

Sarah Allen sarah at ultrasaurus.com
Fri Jun 12 09:51:11 PDT 2009


I'm seeing a weird compiler error in trunk... might be recent  
regression (it is possible, but unlikely that I somehow left this code  
in a state that had a compiler error a couple of months ago when I  
last looked at this app)  I'll be looking at this more, but I wanted  
to send a note in case anyone else is seeing something similar or has  
any ideas.

org.openlaszlo.sc.CompilerError: main.lzx: 41: Error: Incorrect number  
of arguments. Expected no more than 2, in line:  
flash.external.ExternalInterface.addCallback("playMedia", null,  
playMedia)

The Flash docs indicate that there are three arguments:
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001653.html

Also, is there any LZX-native way that I should be making this call  
instead of devolving into calling Flash directly?

Thanks in advance,
Sarah




More information about the Laszlo-dev mailing list