Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bortsen/worker-from-class
Create Workers from Class definitions
https://github.com/bortsen/worker-from-class
Last synced: about 2 months ago
JSON representation
Create Workers from Class definitions
- Host: GitHub
- URL: https://github.com/bortsen/worker-from-class
- Owner: bortsen
- Created: 2012-07-19T06:33:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-19T06:52:38.000Z (over 12 years ago)
- Last Synced: 2024-08-04T05:04:32.668Z (5 months ago)
- Language: ActionScript
- Size: 112 KB
- Stars: 79
- Watchers: 18
- Forks: 16
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-actionscript-sorted - worker-from-class - Create Workers from Class definitions (Utilities / Asynchronous)
README
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](https://github.com/claus/as3swf) for some SWF magic.
Prerequisites:
- download worker-from-class
- download [as3swf](https://github.com/claus/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](http://labs.adobe.com/downloads/flashplayer11-4.html))
- add the 11.4 playerglobal.swc to the build path
- set the compiler options -swf-version=17 and -target-player=11.4Usage:
- 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)