Hey folks,

Working on a problem I'm betting there's no solution for.

I've got an .swf embedded in a page which exposes several methods using
ExternalInterface.addCallback(...), all of which return values. The problem
comes in when I return an empty string "". Empty strings are converted to
the string "null" (not even the JavaScript value null, an actual string).  I
could easily solve this in JavaScript by evaluating against "null", but
unfortunately I'm writing the .swf to a spec which says that the .swf must
return an empty string as a part of an error condition.

In googling around, I've found a couple mentions of this problem, both on
Adobe's site. The Flash Player 9 Release notes lists "Empty strings passed
through External Interface API via JavaScript are converted to null.
(184474)" as a known issue, and a user on LiveDocs lists this as a problem
with the "internal serializer".

What I'm wondering is if there's a work around that can be accomplished
within flash. The only other solution I can come up with is to wrap my .swf
in a JS object that'll evaluate against "null" and return "", but that seems
a serious waste.

Anyone have a clue?
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to