If you've typed _myColor as uint, it can't store either null or NaN. If
it needs to store null, make it Object. If it needs to store NaN, make
it Number.

 

Gordon Smith

Adobe Flex SDK Team

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Schmalle
Sent: Wednesday, June 25, 2008 10:56 AM
To: [email protected]
Subject: Re: [flexcoders] uint unset value

 

Hi,

try using isNaN()

if (isNaN(_myColor)){
//do something when NaN
}else{
//do another thing when is a color
}

PS ...Post trimmed. ;-)

Mike

-- 
Teoti Graphix, LLC
http://www.teotigraphix.com <http://www.teotigraphix.com> 

Teoti Graphix Blog
http://www.blog.teotigraphix.com <http://www.blog.teotigraphix.com> 

You can find more by solving the problem then by 'asking the question'. 

 

Reply via email to