prince-ali
12-14-2004, 02:43 PM
This is probably a stupid quesion but,
is is possible to retrieve the name of the constructor function/object class as a string?
example:
Object.registerClass("list_box", listBox);
scollPane.prototype = new MovieClip();
scollPane.prototype.addContent = function(){
this.attachMovie("list_box", "dummy_name", 1);
this["dummy_name"]._name = <<< /// HERE I WOULD LIKE THE NAME OF THE CONSTRUCTOR AS A STRING - in this case "listBox" // >>>
}
Come to think of it, can I get the name of any object but a movie_clip-object as a string?
is is possible to retrieve the name of the constructor function/object class as a string?
example:
Object.registerClass("list_box", listBox);
scollPane.prototype = new MovieClip();
scollPane.prototype.addContent = function(){
this.attachMovie("list_box", "dummy_name", 1);
this["dummy_name"]._name = <<< /// HERE I WOULD LIKE THE NAME OF THE CONSTRUCTOR AS A STRING - in this case "listBox" // >>>
}
Come to think of it, can I get the name of any object but a movie_clip-object as a string?