Page 1 of 1

flash.external.ExternalInterface with string instead of xml

Posted: Thu May 26, 2011 1:16 pm
by gigon
hi, I embedded f-in-box in our NPAPI browser plugin.
Now I need my actionScript to call javascript methods on the web page
where I embed my plugin, via f-in-box::ExternalInterface.
But the SFPCFlashCallInfoStruct contains the request serialized as XML (and expects a reply serialized as xml).

I would like to get SFPCFlashCallInfoStruct::request in plain string format,
so I can pass it directly to javascript:eval( request ),
and also return FPCSetReturnValue as string to actionScript.

Is there a way to do so (setting a different mime type on the call)?

Thanks

Posted: Thu May 26, 2011 8:03 pm
by Softanics
Hello,

This format is used by Flash to pass data, it can't be changed. So it seems that you have to decode it (for example, using MSXML COM library).

Thank you.