StageXL class

The default configurations for various StageXL features.

The system environment in which the application is running:

StageXL.environment.devicePixelRatio
StageXL.environment.isMobileDevice
StageXL.environment.isLittleEndianSystem
StageXL.environment.isTouchEventSupported

The default StageOptions used by the Stage constructor:

StageXL.stageOptions.renderEngine = RenderEngine.WebGL;
StageXL.stageOptions.inputEventMode = InputEventMode.MouseOnly;
StageXL.stageOptions.stageRenderMode = StageRenderMode.AUTO;
StageXL.stageOptions.stageScaleMode = StageScaleMode.SHOW_ALL;
StageXL.stageOptions.stageAlign = StageAlign.NONE;
StageXL.stageOptions.backgroundColor = Color.White;
StageXL.stageOptions.transparent = false;
StageXL.stageOptions.antialias = false;
StageXL.stageOptions.maxPixelRatio = 5.0;
StageXL.stageOptions.preventDefaultOnTouch = true;
StageXL.stageOptions.preventDefaultOnMouse = true;
StageXL.stageOptions.preventDefaultOnWheel = false;
StageXL.stageOptions.preventDefaultOnKeyboard = false;

The default BitmapDataLoadOptions used by BitmapData.load:

StageXL.bitmapDataLoadOptions.jpg = true;
StageXL.bitmapDataLoadOptions.png = true;
StageXL.bitmapDataLoadOptions.webp = false;
StageXL.bitmapDataLoadOptions.maxPixelRatio = 2;
StageXL.bitmapDataLoadOptions.corsEnabled = false;

The default SoundLoadOptions used by Sound.load:

StageXL.soundLoadOptions.mp3 = true;
StageXL.soundLoadOptions.mp4 = true;
StageXL.soundLoadOptions.ogg = true;
StageXL.soundLoadOptions.ac3 = true;
StageXL.soundLoadOptions.wav = true;
StageXL.soundLoadOptions.opus = false;
StageXL.soundLoadOptions.alternativeUrls = null;
StageXL.soundLoadOptions.ignoreErrors = true;
StageXL.soundLoadOptions.corsEnabled = false;
StageXL.soundLoadOptions.engine = null;

The default VideoLoadOptions used by Video.load:

StageXL.videoLoadOptions.mp4 = true;
StageXL.videoLoadOptions.webm = true;
StageXL.videoLoadOptions.ogg = true;
StageXL.videoLoadOptions.alternativeUrls = null;
StageXL.videoLoadOptions.loadData = false;
StageXL.videoLoadOptions.corsEnabled = false;

Constructors

StageXL()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

bitmapDataLoadOptions BitmapDataLoadOptions
The default BitmapDataLoadOptions used by BitmapData.load.
getter/setter pair
environment Environment
The system environment in which the application is running.
final
soundLoadOptions SoundLoadOptions
The default SoundLoadOptions used by Sound.load.
getter/setter pair
stageOptions StageOptions
The default StageOptions used by the Stage constructor.
getter/setter pair
videoLoadOptions VideoLoadOptions
The default VideoLoadOptions used by Video.load.
getter/setter pair