[haXe] Calling with escaped < and > string with
SWHX.Connection.call
Nicolas Cannasse
ncannasse at motion-twin.com
Thu Aug 17 12:47:05 CEST 2006
> Hi,
>
> I'm trying to send a string from Flash to SWHX using SWHX.Connection,
> but it does not work if the string contains "<" or ">". It throws an
> exception "Invalid string length".
>
> cnx = swhx.Connection.desktopConnect();
>
> ...
>
> cnx.Application.myFunction.call([ StringTools.htmlEscape("<") ] );
>
> Any ideas?
Fixed on CVS.
Flash ExternalInterface was transforming < back to < , so escaping &
to & was needed. You need to update both haxe and swhx CVS to have
it work correctly.
Nicolas
More information about the Haxe
mailing list