RE: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-17 Thread Alex Harui
ubject: RE: [flexcoders] Re: How to tell if variable is an int, uint, or a Number? A little off topic I know but I really hope that at some point the Flash Player extends it number handling to include byte, word, long etc. I hate using int or uint when I know I really just need a byte or whatever

RE: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-17 Thread Glenn Williams
oders] Re: How to tell if variable is an int, uint, or a Number? I would recommend you to use the getQualifiedClassName method, it is a bit less expensive than the describeType method. Greetz Erik On 5/16/08, Paul Whitelock <[EMAIL PROTECTED]> wrote: Alrighty then, I filed a bug repor

Re: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-17 Thread EECOLOR
I would recommend you to use the getQualifiedClassName method, it is a bit less expensive than the describeType method. Greetz Erik On 5/16/08, Paul Whitelock <[EMAIL PROTECTED]> wrote: > > Alrighty then, I filed a bug report since the following outputs "int": > > var uintVar:uint = 5; trace(de

RE: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Gordon Smith
I think there is a conceptual distinction between the runtime type of an AS3 value and the compile-time type of a var or parameter that holds such a value. The 'is' operator works on values. A value like 5 'is' both an int, a uint, and a Number because it is a legal value in the set of possible

Re: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread Sherif Abdou
try using a dictionary instead of object - Original Message From: Paul Whitelock <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, May 15, 2008 4:11:19 PM Subject: [flexcoders] Re: How to tell if variable is an int, uint, or a Number? Well, it turns out that doesn't wo

Re: [flexcoders] Re: How to tell if variable is an int, uint, or a Number?

2008-05-15 Thread EECOLOR
The best I could do is posted below. I could not make a distinction between uint and int if the int is positive. To me it is unclear if the value is represented as signed or unsigned integer within the player itself. It is clear however that a positive (int) value is automatically serialized to a u