• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

Engaged ,
Jan 15, 2015 Jan 15, 2015

Copy link to clipboard

Copied

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

TOPICS
Air beta

Views

884

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 15, 2015 Jan 15, 2015

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines