Sprouts
June 26, 2008Whilst searching for information about MTASC Commands I came across site the Sprouts site. An ‘an open-source, cross-platform project generation and configuration tool for ActionScript 2, ActionScript 3′…. As I’ve been looking at Ruby using the OSX Terminal and am interested in further experiments in finding new an better ways to compile and build swfs I thought I would investigate, and create another project.
Project Aims:
1. Create a Sprout to compile AS2 Flash to a swf using MTASC.
2. As above with SWFMill
The Project uses:
1. Mac OSX 10.4.11
2. Flash 8
3. AS2
4. Ruby ruby 1.8.6 (Once updated)
5. RubyGems
6. OSX Terminal (I’m using the $ symbol to denote input into the Terminal Window, ie type what’s after the $ glyph).
Tasks
1. Ascertain which version of ruby is installed. In the Terminal type:
which for me outputs:
2. Update Ruby. The latest version is
so if current version is less you need to update. I used the Ruby One-Click Installer for OSX. Downloaded and unpacked in the Terminal, opened a fresh Terminal window and typed in the Terminal:
The output is now:
3. Install RubyGems.
Down load and unpack. ( I put the ‘rubygems-1.2.0′ folder in Applications.)
4. Install Rails.
In the Terminal Window:
Enter password if prompted. My Terminal output was:
ERROR: While executing gem … (Gem::GemNotFoundException)
Could not find rails (> 0) in any repository
(I’m not 100% sure if everything was OK here, or if this step was necessary, so I’ll have to make some further investigations.)
5. Install the sprout gem. Enter in the terminal:
The Terminal Output was:
Select which gem to install for your platform (universal-darwin8.0)
1. sprout 0.7.183 (ruby)
2. sprout 0.7.183 (darwin)
3. sprout 0.7.183 (mswin32)
4. sprout 0.7.183 (x86-linux)
5. Skip this gem
6. Cancel installation
Just guessing entered:
A whole load of other options followed such as:
I entered Y for all of them.
Various outputs followed for example:
Successfully installed rubyzip-0.9.1
Successfully installed archive-tar-minitar-0.5.2
Successfully installed rails-2.1.0
Successfully installed rake-0.8.1
……
So I assumed the correct applications have been successfully installed.
6. Instructions for downloading the Sprouts AS2 Bundle see: ActionScript 2.0 Bundle
For example in the Terminal
to an appropriate folder and enter:
7. Launch Rake
Had some problems tried, output:
no such file to load — open4
I was getting a message:
8. Sort out Rake problem
Found some advice here: projectsprouts
Enter in the Terminal:
Then after a whole load of output:
9. Launch Rake again
After another string of output, the Flash Player launched with the png of the Sprout logo!

Conclusion:
The project first aim …compile AS2 Flash to a swf… has been realised, I’ll create further posts to detail further experiments.