Guys,
If you want to check a type of a variable, that means you want to know the variable is a string or an array or an object etc.... use this code
Code:
var A:Array = new Array();
var B:String = new String();
var C:Object = new Object();
trace (getQualifiedClassName(A));
trace (getQualifiedClassName(B));
trace (getQualifiedClassName(C));
Result:
Array
object
String
Happy coding..
Ramesh Palleri
Thursday, October 18, 2012
Subscribe to:
Posts (Atom)