
|
If you were logged in you would be able to see more operations.
|
|
|
Parsley Core
Created: 17/Nov/08 10:18 AM
Updated: 04/Apr/11 05:31 PM
|
|
| Component/s: |
None
|
| Affects Version/s: |
Spicelib 1.1.0
|
| Fix Version/s: |
Spicelib 1.1.1
|
|
|
var i : int = 5;
var cI1 : ClassInfo = ClassInfo.forInstance(i);
var cI2 : ClassInfo = ClassInfo.forName( getQualifiedClassName(i) );
trace(cI1.name); // → Number
trace(cI2.name); // → int
|
|
Description
|
var i : int = 5;
var cI1 : ClassInfo = ClassInfo.forInstance(i);
var cI2 : ClassInfo = ClassInfo.forName( getQualifiedClassName(i) );
trace(cI1.name); // → Number
trace(cI2.name); // → int |
Show » |
|
See this forum thread: http://www.spicefactory.org/forum/viewtopic.php?t=89
I'll see if there is a way to hack an Exception especially for Number types into the forInstance method.