RSWF
RSWF is a powerful Flash generation and manipulation library written in Ruby and C. Few other products are able to read and process existing SWF content, and no other product offers the combination of reading existing content, manipulating it, and creating new content. Though originally designed for use with Flash Lite files, it works with all versions of Flash and the SWF file format.
Users of RSWF can produce content for Flash Lite 1.1 devices that cannot be produced in any other way—content truly customized for each individual user. You can think of it as the Web 2.0 tool of Flash Lite. And RSWF has numerous applications beyond this, from improving Flash designers’ production workflow to recombining scripting and graphic elements to optimizing sizes of Flash Lite and PC Flash files.
Features
-
Read SWF files directly and manipulate them
-
Programatically generate Flash content on-the-fly
-
Supports JPEG and PNG image formats
-
Generates output formats for Flash Lite 1.1 and higher
-
Simple Drawing API
-
Complete unit and functional test framework
SWF File Manipulation
RSWF’s manipulation abilities are unparalleled, and include the ability to optimize content size by removing unneeded material, change compiled ActionScript, convert fonts to shapes, change fills and styles on existing shapes, and completely replace library elements with generated elements, elements selected from other files or entire other files.
Applications include on-the-fly generation of customized Flash pages for individual users, recombination of assets created by Flash developers, and automation of Flash workflow to reduce the amount of time Flash developers spend creating pages.
Flash Generation
Beyond manipulation of existing content, newer generations of the library are now using a domain-specific language that allows generation of new graphic, text and script content, both derived from other content (both Flash and non-Flash, such as PNG or JPEG images) and created entirely from scratch. When drawing, colors, strokes and fills can be specified directly, or taken from other objects in the same or other files. Text can be rendered using an internal font, a font taken from a SWF file, or fonts can even be converted to graphic items, allowing you to stroke and fill the text.
The domain specific language, built on top of Ruby, allows simple use of the generation and manipulation capabilities, and also allows the developer to fall back into Ruby (to as much or as little a degree as he needs) in order to accomplish actions not anticipated in the DSL.
Users
Users of the library include a Fortune 100 entertainment company, a Japanese mobile SNS developer, a Tokyo marketing firm, and of course Starling Software ourselves.
- 待受を作りましょう is a mobile web application that uses our RSWF library to generate custom machiuke screens for any keitai that support Flash Lite.

