stagexl_gaf 0.2.1

  • Readme
  • Changelog
  • Installing
  • 63

StageXL_GAF #

The GAF runtime for the StageXL library.

Use the GAF converter to convert Adobe Flash animations to the GAF-format,
learn more about it here:

NOTE: as of version 0.3.0-dev, StageXL_GAF requires a Dart 2 SDK.

Best solution to improve your workflow

  • GAF greatly reduces the number of steps in game development workflow.
  • Play any Flash 2D animation (explosions, cutscenes, characters, etc).
  • No special pre-preparation needed to convert your Flash 2D animations.

High performance even on low-end hardware

  • High FPS by pre-rendering vector assets to texture atlases.
  • Minimized draw-calls by using StageXLs rendering API.
  • Built in support for HiDPI displays and textures.


Skeleton (
Slot Machine (
Ufo Monster (
Named Parts (
Sequences (
Gun Swap (
Fireman (
Rocket (
Sound (


The GAF runtime for StageXL is based on the official AS3 runtime.
The source code was greatly refactored for best performance and simplicity.

Change Log #

This file contains highlights of what changes on each version of the StageXL_GAF package. This file is normally updated whenever we push a new version to pub.

Pub version 0.2.1

  • Raised dependency to StageXL 1.4.1
  • Ready for Dart 2.4

Pub version 0.2.0

  • Raised dependency to StageXL 1.4.0
  • Ready for Dart 2.0

Pub version 0.1.4

  • Added support for strong mode
  • Raised dependency to Dart SDK 1.22.0 (reason: covariant keyword)

Pub version 0.1.3

  • Raised dependency to StageXL 1.0.0

Pub version 0.1.2

  • Added support for GAF bundles in ZIP files

Pub version 0.1.1

  • Fixed multi texture assets

Pub version 0.1.0

  • Port of the official AS3/Starling runtime
  • Major refactoring and changes

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  stagexl_gaf: ^0.2.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:stagexl_gaf/stagexl_gaf.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 31, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Format lib/src/config/canimation_frame.dart.

Run dartfmt to format lib/src/config/canimation_frame.dart.

Format lib/src/config/canimation_frame_instance.dart.

Run dartfmt to format lib/src/config/canimation_frame_instance.dart.

Format lib/src/config/canimation_object.dart.

Run dartfmt to format lib/src/config/canimation_object.dart.

Fix additional 28 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/config/canimation_sequence.dart (Run dartfmt to format lib/src/config/canimation_sequence.dart.)
  • lib/src/config/cfilter.dart (Run dartfmt to format lib/src/config/cfilter.dart.)
  • lib/src/config/cfilter_data.dart (Run dartfmt to format lib/src/config/cfilter_data.dart.)
  • lib/src/config/cframe_action.dart (Run dartfmt to format lib/src/config/cframe_action.dart.)
  • lib/src/config/cframe_sound.dart (Run dartfmt to format lib/src/config/cframe_sound.dart.)
  • lib/src/config/csound.dart (Run dartfmt to format lib/src/config/csound.dart.)
  • lib/src/config/ctext_field.dart (Run dartfmt to format lib/src/config/ctext_field.dart.)
  • lib/src/config/ctexture_atlas.dart (Run dartfmt to format lib/src/config/ctexture_atlas.dart.)
  • lib/src/config/ctexture_atlas_content.dart (Run dartfmt to format lib/src/config/ctexture_atlas_content.dart.)
  • lib/src/config/ctexture_atlas_element.dart (Run dartfmt to format lib/src/config/ctexture_atlas_element.dart.)
  • lib/src/config/ctexture_atlas_source.dart (Run dartfmt to format lib/src/config/ctexture_atlas_source.dart.)
  • lib/src/data/gaf_asset.dart (Run dartfmt to format lib/src/data/gaf_asset.dart.)
  • lib/src/data/gaf_asset_config.dart (Run dartfmt to format lib/src/data/gaf_asset_config.dart.)
  • lib/src/data/gaf_asset_config_converter.dart (Run dartfmt to format lib/src/data/gaf_asset_config_converter.dart.)
  • lib/src/data/gaf_bundle.dart (Run dartfmt to format lib/src/data/gaf_bundle.dart.)
  • lib/src/data/gaf_bundle_loader.dart (Run dartfmt to format lib/src/data/gaf_bundle_loader.dart.)
  • lib/src/data/gaf_constants.dart (Run dartfmt to format lib/src/data/gaf_constants.dart.)
  • lib/src/data/gaf_sound.dart (Run dartfmt to format lib/src/data/gaf_sound.dart.)
  • lib/src/data/gaf_texture_atlas.dart (Run dartfmt to format lib/src/data/gaf_texture_atlas.dart.)
  • lib/src/data/gaf_timeline.dart (Run dartfmt to format lib/src/data/gaf_timeline.dart.)
  • lib/src/data/gaf_timeline_config.dart (Run dartfmt to format lib/src/data/gaf_timeline_config.dart.)
  • lib/src/display/gaf_bitmap.dart (Run dartfmt to format lib/src/display/gaf_bitmap.dart.)
  • lib/src/display/gaf_bitmap_data.dart (Run dartfmt to format lib/src/display/gaf_bitmap_data.dart.)
  • lib/src/display/gaf_display_object.dart (Run dartfmt to format lib/src/display/gaf_display_object.dart.)
  • lib/src/display/gaf_movie_clip.dart (Run dartfmt to format lib/src/display/gaf_movie_clip.dart.)
  • lib/src/display/gaf_movie_clip_event.dart (Run dartfmt to format lib/src/display/gaf_movie_clip_event.dart.)
  • lib/src/display/gaf_text_field.dart (Run dartfmt to format lib/src/display/gaf_text_field.dart.)
  • lib/stagexl_gaf.dart (Run dartfmt to format lib/stagexl_gaf.dart.)

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and stagexl_gaf.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
archive >=2.0.0 <3.0.0 2.0.13
stagexl >=1.4.1 <2.0.0 1.4.4
Transitive dependencies
args 1.6.0
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.4
meta 1.1.8
path 1.6.4
petitparser 3.0.2
typed_data 1.1.6
xml 4.1.0
Dev dependencies
build_runner any
build_test any
build_web_compilers any
pedantic any