<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-23105477.post2746280789661213423..comments</id><updated>2011-04-27T12:56:33.989-04:00</updated><category term='Personal'/><category term='Adobe'/><category term='Flash'/><category term='Browsers'/><category term='Luminis'/><category term='CSS'/><category term='Accessibility'/><category term='HTML'/><category term='ActionScript'/><category term='Flex'/><category term='ComCenter'/><category term='XML'/><category term='Hofstra'/><category term='JavaScript'/><category term='Fun'/><category term='Java'/><category term='ColdFusion'/><category term='Blog'/><category term='Web'/><category term='Apollo'/><title type='text'>Comments on Web Development Central: ActionScript 3 NaN: Not a No-brainer</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.webdevelopmentcentral.net/feeds/2746280789661213423/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html'/><author><name>HUWebDev</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-23105477.post-6319230392567521000</id><published>2011-04-27T12:56:33.989-04:00</published><updated>2011-04-27T12:56:33.989-04:00</updated><title type='text'>In case anyone else comes here looking for the sam...</title><summary type='text'>In case anyone else comes here looking for the same knowledge I did...I&amp;#39;ve found you can use this to compare numbers easily:&lt;br /&gt;&lt;br /&gt;var num1:Number = NaN;&lt;br /&gt;var num2:Number = NaN;&lt;br /&gt;&lt;br /&gt;if(ObjectUtil.compare(num1, num2) == 0)&lt;br /&gt;{&lt;br /&gt;    trace(&amp;quot;Worked!&amp;quot;);&lt;br /&gt;}</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/6319230392567521000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/6319230392567521000'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1303923393989#c6319230392567521000' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1273836793'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-8247233426372994419</id><published>2011-02-09T21:35:47.125-05:00</published><updated>2011-02-09T21:35:47.125-05:00</updated><title type='text'>One of the simplest ways to check if the number is...</title><summary type='text'>One of the simplest ways to check if the number is NaN is checking it against itslf:&lt;br /&gt;&lt;br /&gt;function isNan(number : Number) : Boolean {&lt;br /&gt;   return !(number == number);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function isNumerical(number : Number) : Boolean {&lt;br /&gt;   return (number == number);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The trick is to take advantage of the comparison Nan == NaN that always return false</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/8247233426372994419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/8247233426372994419'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1297305347125#c8247233426372994419' title=''/><author><name>Bruno Tachinardi</name><uri>http://www.blogger.com/profile/02115825687706135148</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1139178119'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-4000883085939928706</id><published>2010-09-09T06:26:23.802-04:00</published><updated>2010-09-09T06:26:23.802-04:00</updated><title type='text'>Another NaN non brainer...never use a uint paramat...</title><summary type='text'>Another NaN non brainer...never use a uint paramater with a defualt of NaN (as shown below)...because the paramater,x, in this case will ealuate to &amp;#39;0&amp;#39; and your if(isNaN(x)) will always fail since zero is a number...&lt;br /&gt;&lt;br /&gt;AVOID this&lt;br /&gt;function someFunc(x:uint=NaN){&lt;br /&gt;if(isNan(x))&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;instead make x a &amp;quot;Number&amp;quot;...as below&lt;br /&gt;function </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/4000883085939928706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/4000883085939928706'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1284027983802#c4000883085939928706' title=''/><author><name>wwwebber</name><uri>http://wwwebber.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1553380933'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-8881710353950147655</id><published>2010-09-09T06:26:05.730-04:00</published><updated>2010-09-09T06:26:05.730-04:00</updated><title type='text'>Another NaN non brainer...never use a uint paramat...</title><summary type='text'>Another NaN non brainer...never use a uint paramater with a defualt of NaN (as shown below)...because the paramater,x, in this case will ealuate to &amp;#39;0&amp;#39; and your if(isNaN(x)) will always fail since zero is a number...&lt;br /&gt;&lt;br /&gt;AVOID this&lt;br /&gt;function someFunc(x:uint=NaN){&lt;br /&gt;if(isNan(x))&lt;br /&gt;...&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;instead make x a &amp;quot;Number&amp;quot;...as below&lt;br /&gt;function </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/8881710353950147655'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/8881710353950147655'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1284027965730#c8881710353950147655' title=''/><author><name>wwwebber</name><uri>http://wwwebber.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1553380933'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-2164247283104763796</id><published>2010-02-18T09:47:33.219-05:00</published><updated>2010-02-18T09:47:33.219-05:00</updated><title type='text'>Just what I was looking for. Thanks</title><summary type='text'>Just what I was looking for. Thanks</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2164247283104763796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2164247283104763796'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1266504453219#c2164247283104763796' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1133134818'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-7308855540728537223</id><published>2009-04-07T08:47:00.000-04:00</published><updated>2009-04-07T08:47:00.000-04:00</updated><title type='text'>Hi, I was just looking for a predicate that could ...</title><summary type='text'>Hi, I was just looking for a predicate that could check if (and if only) a value was NaN, and I found a solution while reading this post : isNaN(myValue as Number).&lt;BR/&gt;&lt;BR/&gt;Unless I'm mistaken, this evaluates to true only with NaN, (and false with null, undefined or an object).&lt;BR/&gt;&lt;BR/&gt;Have a nice day...</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/7308855540728537223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/7308855540728537223'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1239108420000#c7308855540728537223' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1668908417'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-4889151577938444939</id><published>2008-12-16T16:26:00.000-05:00</published><updated>2008-12-16T16:26:00.000-05:00</updated><title type='text'>yeah NaN == Nan returning false makes perfect sens...</title><summary type='text'>yeah NaN == Nan returning false makes perfect sense, which is why I was so surprised when false == false didn't return false.  Coming from the .NET world, I have been continually disappointed by ActionScript.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/4889151577938444939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/4889151577938444939'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1229462760000#c4889151577938444939' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1615565404'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-3816040943093533038</id><published>2008-07-16T11:48:00.000-04:00</published><updated>2008-07-16T11:48:00.000-04:00</updated><title type='text'>I'm usually the last one to defend Adobe or Action...</title><summary type='text'>I'm usually the last one to defend Adobe or ActionScript, I really think its a pretty broken language, but that being said -- NaN is pretty standard, and NaN != NaN is defined in the ISO floating point math standards.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/3816040943093533038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/3816040943093533038'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1216223280000#c3816040943093533038' title=''/><author><name>Andre</name><uri>http://decav.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1111674251'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-2050629943646923946</id><published>2008-03-13T04:38:00.000-04:00</published><updated>2008-03-13T04:38:00.000-04:00</updated><title type='text'>What the fuck is NaN.. You can't do any bull shit ...</title><summary type='text'>What the fuck is NaN.. You can't do any bull shit with it!!! Fuck!!!! Can't Adobe think before adding functions??? Fuck off idiots!!</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2050629943646923946'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2050629943646923946'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1205397480000#c2050629943646923946' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-315190264'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-260993128573834427</id><published>2008-03-13T04:36:00.000-04:00</published><updated>2008-03-13T04:36:00.000-04:00</updated><title type='text'></title><summary type='text'>This comment has been removed by the author.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/260993128573834427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/260993128573834427'/><author><name>Subhash</name><uri>http://www.blogger.com/profile/16000665542853068850</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.contentRemoved' value='true'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-492619248'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-9054050711325811072</id><published>2008-02-19T12:21:00.000-05:00</published><updated>2008-02-19T12:21:00.000-05:00</updated><title type='text'>in order to make this function available in flex y...</title><summary type='text'>in order to make this function available in flex you have to:&lt;BR/&gt;&lt;BR/&gt;import flash.display.Sprite;&lt;BR/&gt;&lt;BR/&gt;:)</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/9054050711325811072'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/9054050711325811072'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1203441660000#c9054050711325811072' title=''/><author><name>FreeFormCoder</name><uri>http://www.blogger.com/profile/16981147956285174592</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-195763432'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-4646498814092368119</id><published>2007-10-30T13:34:00.000-04:00</published><updated>2007-10-30T13:34:00.000-04:00</updated><title type='text'>Number.NaN != Number.NaN &lt;br&gt;&lt;br&gt;you can't compare...</title><summary type='text'>Number.NaN != Number.NaN &lt;BR/&gt;&lt;BR/&gt;you can't compare NaN against NaN it's an illogical comparison. NaN == NaN will always evaluate to false;&lt;BR/&gt;&lt;BR/&gt;John Berzy</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/4646498814092368119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/4646498814092368119'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1193765640000#c4646498814092368119' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1520073429'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-2658507519576189224</id><published>2007-07-05T21:10:00.000-04:00</published><updated>2007-07-05T21:10:00.000-04:00</updated><title type='text'>Just for the record, there is an isNaN function in...</title><summary type='text'>Just for the record, there is an isNaN function in Flex 2(AS3). Please see the following URL:&lt;BR/&gt;&lt;BR/&gt;http://www.adobe.com/livedocs/flex/2/langref/package.html</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2658507519576189224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2658507519576189224'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1183684200000#c2658507519576189224' title=''/><author><name>WebDev Central</name><uri>http://www.webdevelopmentcentral.net</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-339162570'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-8603231326298050200</id><published>2007-04-19T10:01:00.000-04:00</published><updated>2007-04-19T10:01:00.000-04:00</updated><title type='text'>Neither of these solutions worked for me in Flex 2...</title><summary type='text'>Neither of these solutions worked for me in Flex 2. There seems to be no function "isNaN" defined, and the other test didn't work either. So I wrote the following isNaN function - shown here with the isNumeric function that I was really after:&lt;BR/&gt;&lt;BR/&gt;public function isNaN(number:Number):Boolean&lt;BR/&gt;{&lt;BR/&gt; return !(number &lt;= 0 || number &gt; 0);&lt;BR/&gt;}&lt;BR/&gt;public function isNumeric(string:String):</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/8603231326298050200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/8603231326298050200'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1176991260000#c8603231326298050200' title=''/><author><name>Daniel</name><uri>http://www.blogger.com/profile/11944821047474312941</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1740801683'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-2558283464925498808</id><published>2007-03-08T04:31:00.000-05:00</published><updated>2007-03-08T04:31:00.000-05:00</updated><title type='text'>The isNaN() method didn't work for me. I found the...</title><summary type='text'>The isNaN() method didn't work for me. I found the code below a good work around for the Number NaN problem.&lt;BR/&gt;&lt;BR/&gt;var MyNumber:Number;&lt;BR/&gt;&lt;BR/&gt;MyNumber = getNumber();&lt;BR/&gt;if (MyNumber != new Number(undefined))&lt;BR/&gt;{&lt;BR/&gt;// do something&lt;BR/&gt;}</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2558283464925498808'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2558283464925498808'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1173346260000#c2558283464925498808' title=''/><author><name>Warren</name><uri>http://www.blogger.com/profile/07065787511026972757</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-369042819'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-6163584193375159154</id><published>2006-11-08T09:31:00.000-05:00</published><updated>2006-11-08T09:31:00.000-05:00</updated><title type='text'>Thanks, Keith. I guess that in AS2 I had used null...</title><summary type='text'>Thanks, Keith. I guess that in AS2 I had used null as the return type, so had never encountered this issue. Instead of returning null or NaN from such a method, perhaps a better design would be to throw an exception upon the discovery of the inability to return a valid number.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/6163584193375159154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/6163584193375159154'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1162996260000#c6163584193375159154' title=''/><author><name>HUWebDev</name><uri>http://www.blogger.com/profile/04222422833791224335</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1674769744'/></entry><entry><id>tag:blogger.com,1999:blog-23105477.post-2262704938976612137</id><published>2006-11-08T06:55:00.000-05:00</published><updated>2006-11-08T06:55:00.000-05:00</updated><title type='text'>For the record, NaN has the same behavior in AS2. ...</title><summary type='text'>For the record, NaN has the same behavior in AS2. You're right about not being able to return null where a function expects a number return type though. That's new.</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2262704938976612137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/23105477/2746280789661213423/comments/default/2262704938976612137'/><link rel='alternate' type='text/html' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html?showComment=1162986900000#c2262704938976612137' title=''/><author><name>Keith Peters</name><uri>www.bit-101.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.webdevelopmentcentral.net/2006/11/actionscript-3-nan-not-no-brainer.html' ref='tag:blogger.com,1999:blog-23105477.post-2746280789661213423' source='http://www.blogger.com/feeds/23105477/posts/default/2746280789661213423' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1286104676'/></entry></feed>
