This blog has been moved. This redirect you our new blog with all old posts..

Find dynamic instance of an Object using flex

How to find component list in a Canvas/Panel

var uDC:UserDefineComponent;
for each(var ob:Object in application.getChildren()){
if(ob.toString().indexOf("uDC")>0){ // object name
var o:UserDefineComponent = Object(ob.valueOf())
as UserDefineComponent;
/*
Here You can use properties of
UserDefineComponent.
trace(o.xPos);
*/
}
}

No comments: