"In files published for Flash Player 6 or earlier, the value of
String(undefined) is "" (an empty string). In files published for Flash
Player 7 or later, the value of String(undefined) is "undefined"
(undefinedis converted to a string)."

Why convert 'undefined' to a string?  When is that useful?

When is it *not* useful? When you're being too lazy to check your values to ensure they are set before using them? If a variable is undefined and you trace it, nothing gets traced. The implicit toString needs to be "undefined" in order to be useful, and you should be testing for ==undefined before you use it instead of relying on the boolean comparison to allow it to fall through the cracks. What happens if the comparison changes in future players?

ryanm
_______________________________________________
[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