[flexcoders] get element type

2007-12-18 Thread Rafael Faria
There is anyway to get the type of an element? Like if i have mx:Button id=bt / how would i do to get that the element bt is a Button? I don't want to test if bt is Button i want to know that it is a button... something like you can do with variables. like typeof(variable) == string any

Re: [flexcoders] get element type

2007-12-18 Thread Jhonny Everson
You can use ObjectUtil.getClassInfo(obj) to get information about an object 'obj', it returns another object with information about 'obj'. You can debug to see this information. The full class name is among them. -- Jhonny Everson