Skip to Content »

FlashApe » Undefined Numbers in AS 3

 Undefined Numbers in AS 3

  • August 6th, 2007
  • 5:10 pm

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().

More info here, here, and here.

Want your say?

* Required fields. Your e-mail address will not be published on this site


You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>