swf

Provides support for parsing and displaying SWF content
http://github.com/openfl/swf

To install, run:

haxelib install swf 2.3.1 

See using Haxelib in Haxelib documentation for more information.

README.md

MIT License Haxelib Version

SWF

Provides SWF parsing and rendering for C++, Flash and HTML5

Usage

First, make sure that <haxelib name="swf" /> has been added to your project.

Then, you can add <library path="to/your.swf" preload="true" /> to include a SWF library. This will be available at runtime using the file name of the SWF (minus the ".swf") or you can add 'id="my-unique-id"' to specify a custom name.

There is a (beta) option for 'generate="true"' to generate Haxe classes for each "Export for ActionScript" type in the SWF file. The 'preload' is also optional, but is recommended to simplify use.

You can create an "Export for ActionScript" clip from a SWF like this:

var clip = Assets.getMovieClip ("my-swf:MyMovieClipName");

If you would prefer to create the whole timeline, use an empty clip name:

var timeline = Assets.getMovieClip ("my-swf:");

If you use the 'generate' option, you would instead create a new instance like this:

var clip = new MyMovieClipName ();

Installation

You can easily install SWF using haxelib:

haxelib install swf

To add it to a Lime or OpenFL project, add this to your project file:

<haxelib name="swf" />

Development Builds

Clone the SWF repository:

git clone https://github.com/openfl/swf

Tell haxelib where your development copy of SWF is installed:

haxelib dev swf swf

Go to the tools folder:

cd swf/tools

Tell haxe to build:

haxe build.hxml

To return to release builds:

haxelib dev swf
Contributors
singmajesty
Version
2.3.1
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github