Log inSkip to content

Archive for May 3, 2008

Are there real int and uint types?

Saturday, May 3, 2008 at 16:19:29

In Actionscript 3 all types, even the primitive types are considered as classes, so String, Number, Boolean, int are such ones, too. By invoking getQualifiedClassName() we can get the fully qualified class name of an object:

1
2
3
4
5
var n_num: Number;
trace(getQualifiedClassName(n_num)); // Number
 
var n_int: int;
trace(getQualifiedClassName(n_int)); // int

This outputs the result as expected: Number and int. The uint however seems to be somewhat different. If a value of uint type passed to getClassByName(), one would except that the result will be “uint”, but actually this is not true.
(more…)

Categories

Monthly Archives