ActionScript black color value is NaN

Posted by TheDarkIn1978 on Stack Overflow See other posts from Stack Overflow or by TheDarkIn1978
Published on 2010-04-05T04:23:20Z Indexed on 2010/04/05 4:33 UTC
Read the original article Hit count: 442

Filed under:
|
|

i'm trying to determine if a color has been supplied as an optional argument to a function. in order to determine this, i'm simply writing if(color){...} and supplying NaN if i don't want there to be a color.

however, it seems that the color black (0x000000) also equates to NaN. how can i determine if a supplied color number argument is present and black if 0x000000 is passed as the argument?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about nan