How do I set the stage quality in an AIR app?
In this article you can set the stage quality to 16X16LINEAR. I'm not able to do this in my AIR app:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="600" height="625"
preinitialize="preinitializeHandler(event)"
>
<fx:Script>
<![CDATA[
import mx.core.FlexGlobals;
import mx.events.FlexEvent;
import mx.managers.SystemManager;
protected function preinitializeHandler(event:FlexEvent):void {
systemManager.topLevelSystemManager.stage.quality = StageQuality.HIGH_16X16_LINEAR;
trace("quality=" + systemManager.topLevelSystemManager.stage.quality); // HIGH
}
]]>
</fx:Script>
</s:WindowedApplication>
