Why do you want to use JSON? You can pass in plain objects instead, e.g.

ExternalInterface.call("someJSMethod", { a: 1, b: { c: true, d: "hello"} } );

Ralf.

On Mon, Jan 12, 2009 at 7:55 PM, flexaustin <[email protected]> wrote:
> I can't really post the code. The issue is either I think is either
> one of two things, but I can't seem to resolve either of them.
>
> #1. I am passing data to a javascript function in json format, which
> contains escaped " & \.
>
> #2. This is the issue.
> http://joshblog.net/2008/01/03/flash-player-externalinterface-variable-name-bug/
> On this one I tried putting my function call in '' to as this blog
> post suggests, but it didn't help.
>
> The JSONENcoder is escaping the " and \ on the flex/actionscript side,
> but when it is getting passed to the javascript file I don't think the
> javascript file is understanding the escaped items. I am not a JS guy
> so I don't know if JS/Broswer knows about escaped characters?
>
> TIA, J
>
> --- In [email protected], "Anthony DeBonis" <anth...@...> wrote:
>>
>> -What browser are you using - or does it happen in all browsers
>>
>> - Can you get something simple to work like this
>> ExternalInterface.call("alert('TEST')");
>>
>> -Can you post the code?
>>
>
> 

Reply via email to