stop();
_root._quality = "BEST";
lowbtn.onRelease = function() {
this._parent._quality = "LOW";
}
mediumbtn.onRelease = function() {
this._parent._quality = "MEDIUM";
}
highbtn.onRelease = function() {
this._parent._quality = "HIGH";
}
bestbtn.onRelease = function() {
this._parent._quality = "BEST";
}
stop();
function kualitasrendah(evt:MouseEvent):void {
stage.quality = StageQuality.LOW;
}
function kualitasmenengah(evt:MouseEvent):void {
stage.quality = StageQuality.MEDIUM;
}
function kualitastinggi(evt:MouseEvent):void {
stage.quality = StageQuality.HIGH;
}
function kualitasbaik(evt:MouseEvent):void {
stage.quality = StageQuality.BEST;
}
lowbtn.addEventListener(MouseEvent.MOUSE_UP, kualitasrendah);
mediumbtn.addEventListener(MouseEvent.MOUSE_UP, kualitasmenengah);
highbtn.addEventListener(MouseEvent.MOUSE_UP, kualitastinggi);
bestbtn.addEventListener(MouseEvent.MOUSE_UP, kualitasbaik);
0 komentar:
Post a Comment