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(describeType(uintVar)[EMAIL PROTECTED]());
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Gordon
> Smith" <[EMAIL PROTECTED]> wrote:
> >
> > 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
> > values for each of these types.
> >
> >
> >
> > But I would expect a var declared as
> >
> >
> >
> > var u:uint;
> >
> >
> >
> > to report itself via describeType() as a uint, just like int and Number
> > do. It seems like a bug that it doesn't.
> >
> >
> >
> > Gordon Smith
> >
> > Adobe Flex SDK Team
> >
> >
> >
>

Reply via email to