Crook
Crook

Reputation: 319

How to change graphic quality using AS3 , giving users an option button?

If I want to change the graphic quality display of the swf file by right click and click quality.

Is there a type of code to apply this in-game when a button is pressed?

If there is, please help! Thanks!

Upvotes: 0

Views: 779

Answers (1)

Mana
Mana

Reputation: 382

To change quality of stage, for low:

stage.quality = StageQuality.LOW;

for medium, change LOW to MEDIUM

for high, change LOW to HIGH

for best, change LOW to BEST

Function to do it:

function best(event: MouseEvent): void {
  stage.quality = StageQuality.BEST;
}

best_qual_btn.addEventListener(MouseEvent.CLICK, best);

Upvotes: 1

Related Questions