Flash Work Framework - Download manager, Socket communication, XXTEA encryption
Home Examples Documentation Download Contact us Open Source License
BRIEF INTRO
flashWork is designed to provide easy data exchange with the rest of the frameworks. It is part of "The work family" including javawork.org, phpwork.org and flashwork.org

  • Simple socket communication with Java server based on objects(associative arrays)
  • Download manager for getting resources like JPG, GIF, SWF(MP3) as 1 package. Encryption provided also.
  • Supports various encryption/encoding algorithms like xxtea, xor, base64
  • ActionScript 3.0 compatible
The download manager is optimized to save memory while loading the resources and parsing the byte stream into Bitmap, Text, XML and Sound objects. Flash itself is quite greedy for memory and CPU and not very generous releasing the memory. It will need extra CPU decrypting(XXTEA algorithm) the package.

There are 2 ways for creating packages ready for download - running java app that builds binary file or using PHP class that turns an array of files into application/octet-stream.

The message exchange between a flash and a java socket basically converts a java.util.Map into flash Object(top level). The type of data can be integer(s), double(s), string(s), date(s)(java.util.Date to flash Date) and byte array(s). Very small amount of control data is added to the protocol.

GETTING STARTED
The framework is still quite small, so in less than 20 minutes you can start using it:
  1. Download the source and directly include it as package to your source. No SWC is provided.
  2. In the examples section you will find everything needed to start using it.
  3. The documentation will give you more help if needed.
OPEN SOURCE LICENSE