Pascal ECHEMANNI'm an ActionScript developer in the French Riviera.
I've created the Swing Package for ActionScript 3.0 (SPAS 3.0) which helps Flash developers to easily create RIAs with the Flash Platform and both Flash and Flex:
http://www.flashapi.org/ View all articles by Pascal ECHEMANN
The process to create impressive widgets with Flex and to integrate them into Flash is too much complicated. For these reasons, one of the aims of SPAS 3.0 is to really simplify the coding process, without restricting its possibilities.
In this tutorial we will learn how to make a simple Celsius to Fahrenheit degree converter with less than 30 lines of code. Then, we'll see how to integrate it into a Flash application directly from the Flash CS3 main timeline.
Note: this example uses SPAS 3.0 alpha 2 release. In this release, the default L&F is the "spas" L&F, contrary to the previous release which uses the "basic" L&F as default Look and Feel.
We assume that you are familiar with external files programming and that you already have downloaded SPAS 3.0.
- you can download SPAS 3.0 alpha 1.0 release at http://www.flashapi.org/
- and read the following article: ActionScript 3.0 Classpaths, Packages and Project Organization and Management