检查了一下 上次给你发的是老版的 没有居中!
public function set index(value:int):void {
_index = value;
if (_bitmap && _sources) {
this.graphics.clear();
var splitArr:Array = value.toString().split('');
for (var i:int = 0; i < splitArr.length; i++) {
var te:Texture = _sources[splitArr[i]] as Texture;
if (_align == "left") {
this.graphics.drawTexture(te, i * te.width, 0, te.width, te.height);
} else if (_align == "right") {
this.graphics.drawTexture(te, this.width - ((splitArr.length - i) * te.width), 0, te.width, te.height);
} else if (_align == 'center') {
this.graphics.drawTexture(te, ((this.width - (te.width * splitArr.length)) / 2) + (i * te.width))
}
}
}
event(Event.CHANGE);
}