Mega Code Archive
Change style properties for Button control using a compound String to get a reference to the object
public function changeLabel(s:String):void {
s = "myButton" + s;
this[s].setStyle("fontStyle","italic");
this[s].setStyle("fontSize","18");
}