Detecting type of control on stage
Posted on 2009-07-08
I am trying to build an AS2 logic that first detects the type of control and then checks it according to it's type
if I test an input text control :
trace (tyepof (aa_txt));
I get "Input" which is great
if I do the same for a checkbox or combobox I get "movieclip" which is not unique and does not help me identify the type of control I am dealing with..
how can I tell which type is it in runtime ?