Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
Undefined Numbers in AS 3
Just ran into this one, trying to set parameters that were typed to number to undefined or null. There are a few datatypes you can’t do that with anymore, and Number is ‘special’ because they cannot be undefined or null, only NaN. Instead of using Number you can use the special * (untyped) designation, and to test for an undefined Number you can use isNaN().
| Print article | This entry was posted by rich on August 6, 2007 at 5:10 pm, and is filed under Flex, flash. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |