Skip to main content
Inspiring
January 15, 2015
Question

How do I set the stage quality in an AIR app?

  • January 15, 2015
  • 1 reply
  • 1017 views

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>

Flash Player 11.2 graphical gem | kaourantin.net

This topic has been closed for replies.

1 reply

gmarkowski
Participating Frequently
January 15, 2015

From Adobe docs:

"In the desktop profile of Adobe AIR, quality can be set to StageQuality.BEST or StageQuality.HIGH (and the default value is StageQuality.HIGH). Attempting to set it to another value has no effect (and the property remains unchanged). In the moble profile of AIR, all four quality settings are available. The default value on mobile devices is StageQuality.MEDIUM."

StageQuality - Adobe ActionScript® 3 (AS3 ) API Reference