So I did a few more tests...
it looks like:

var a:Boolean = true;
var b:Boolean = false;
a as Number //  0
b as Number //  0
Number(a)   //  1
Number(b)   //  0

>From this, I think ObjectUtil class just needs to be updated in the
internalCompare function:

   switch(typeOfA)
   {
       case "boolean":
       // Looks like this should be added to the "boolean" case
       // rather than falling down into the "number" case
       {
           result = numericCompare(Number(a), Number(b));
           break;
       }
       case "number":
       {
           result = numericCompare(a as Number, b as Number);
           break;
       }
       ....
    }







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to