My favorites | Sign in
Project Logo
                
Search
for
Updated Apr 23, 2007 by lbayes
Labels: Featured
GettingStarted  
Guide to quickly getting up and running with AsProject.

Getting Started

Once you fulfill the only requirements by installing Ruby and Ruby Gems, you can install the latest release of AsProject by entering:

Win: gem install asproject

Mac: sudo gem install asproject

Your First Project

To test your installation, using a terminal, enter the following commands:

asproject SomeProject

This should have generated a bunch of files and directories on your system, next, using your terminal:

cd SomeProject/project
rake

This rake task will:

  • Find and download the appropriate compilers (For ActionScript 2 projects, this will usually be mtasc and swfmill)
  • Compile all parts of your application using the appropriate compiler(s) (swfmill, mtasc and/or hamtasc)
  • Download, unpack and install the appropriate Debug Flash Player
  • Configure your mm.cfg file so that we can show trace statements in the terminal
  • Configure your Flash Player security settings so that your swf can load from both the file system and the network.
  • Find and load your flashout.txt trace output log file
  • Launch the created SWF file using the expected Debug Flash Player version (7, 8 or 9)
  • Display trace output in your terminal

After you have the initial build working, try the following:

asclass -s utils.MathUtil
rake test

The 'asclass' utility will create classes, test cases and test suites. You can learn more about it by entering:

asclass -h

The 'test' task will compile your application using AsUnit and launch it in the appropriate debug Flash Player, showing you trace output and your test results!

Congratulations, you're up and running!

Next Steps

There aren't any - now get coding!

Tool Resources

  • MTASC: The compiler that changed everything...
  • HAMTASC: A modified version of MTASC that adds some much-needed features
  • SWFMill: An open-source xml-to-swf compiler for embedding images and frames in a SWF file.
  • FDT: A proprietary (but well-worth-it) ActionScript 2 Eclipse plugin
  • Flex Builder 2: A proprietary (but well-worth-it) ActionScript 3 Eclipse plugin

Sign in to add a comment
Hosted by Google Code