I am using a framework that has a function that requires class name, see below 
(_ops.hasOwnProperty(name) ):

The function expects an array of names (name of object types), such as Button 
or lineChart. 

Is there a way to get the class name? So if I am passed a Button object is 
there a way to get the object type as a string...so "Button".


public function doUpdate(t:*=null, ...operators):Transitioner
                {
                        if (operators) {
                                if (operators.length == 0) {
                                        operators = null;
                                } else if (operators[0] is Array) {
                                        operators = operators[0].length > 0 ? 
operators[0] : null;
                                }
                        }
                        var trans:Transitioner = Transitioner.instance(t);
                        if (_axes != null) _axes.update(trans);
                        if (operators) {
                                for each (var name:String in operators) {
                                        if (_ops.hasOwnProperty(name)){
                                                trace('ops[name] is ' + 
_ops[name] );
                                                _ops[name].operate(trans);
                                        }else{
                                                throw new Error("Unknown 
operator: " + name);
                                        }
                                }
                        } else {

Reply via email to