|Articles & Tutorials|
|AS3 - Setting the stage quality|
|Monday, 27 June 2011 16:08|
Stage quality specifies which rendering qualitiy is used, controlling graphics anti-aliasing and bitmap smoothing.
User can change it right-clicking on your movie, from the Quality option, but sometimes it's useful to modify it in your script
To do it, we need to set the quality property of the stage.
We have four possible options for our stage quality:
Text is affected only if it is set to "Anti-alias for animation".
Let's see a practical example. Here, you can see the effect of the various options:
The buttons are not affected because their text is set to "Anti-alias for readability".
I've simply put four buttons on the stage and wrote this as the document class:
Of course remember to set it as the Document class, and give to your buttons the correct instance names.