Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Create Workers from Class definitions

branch: master

Initial commit

latest commit e8f5d1d5e7
Dirk Eismann authored July 19, 2012
Octocat-spinner-32 src Initial commit July 19, 2012
Octocat-spinner-32 .gitattributes Initial commit July 19, 2012
Octocat-spinner-32 .gitignore Initial commit July 19, 2012
Octocat-spinner-32 README.md Initial commit July 19, 2012
README.md

Worker from Class

Allows you to create ActionScript Workers from Class definitions instead of loading or embedding a bulky SWF file.

Requires Claus Wahlers' excellent as3swf library for some SWF magic.

Prerequisites:

  • download worker-from-class
  • download as3swf and copy its /src/com folder into the worker-from-class /src folder
  • download the 11.4 playerglobal.swc (available at the Adobe labs)
  • add the 11.4 playerglobal.swc to the build path
  • set the compiler options -swf-version=17 and -target-player=11.4

Usage:

  • use WorkerFactory.getWorkerFromClass(ClassReference, swfByteArray) to create a new Worker based on the ClassReference. The swfByteArray must be a valid SWF file ByteArray (e.g. loaderInfo.bytes)
Something went wrong with that request. Please try again.