
Код AS3:
private function addSubBtns(index:uint, x:Number, y:Number):void {
var c:Class = getDefinitionByName("SubBtn" + index) as Class;
if (!c) {
throw new IllegalOperationError('No class');
return;
}
var button:DisplayObject = new c() as DisplayObject;
button.x = x;
button.y = y;
this.subBtn[index] = button;
super.addChild(button);
}
А Galary это по кавовски? =)