-
Notifications
You must be signed in to change notification settings - Fork 30
Setup From Scratch Notes
admc edited this page Sep 14, 2010
·
2 revisions
These are my notes on step by step instructions I followed to get Flex-Pilot installed and working with the Adobe Demo ‘FlexStore’ Application.
Which you can download in a zip, here
- Extracted the demo app to my desktop, in a folder named ‘flexstore’
- Downloaded the flex pilot source to my desktop, into a folder named flex-pilot.
- I did this using the following command to pull the latest source from github:
git clone git://github.com/mde/flex-pilot.git
- Download the binary FlexPilot.swf into the flexstore directory
- I found the main mxml file, flexstore.mxml and opened it in my editor
- I then added:
applicationComplete="init();"
to the mx:Application tag - Then I added the Flex-Pilot boot strapper import:
import org.flex_pilot.FPBootstrap;
- Then I added the actual init code, that assumes ‘FlexPilot.swf’ is in the same web directory as the app swf
private function init():void { FPBootstrap.flex_pilotLibPath = 'FlexPilot.swf'; FPBootstrap.init(stage); }
- This happens to have a build script which I modified, but I tested it by running the following on the command line:
mxmlc -source-path=. -source-path+=../flex-pilot/src flexstore.mxml
- Keep in mind that the -source-path stuff just tells the compiler to look in that flex-pilot directory on the desktop to find the import of the boot strapper that we added.
View it and write/run tests and all kinds of goodness, which you can read more about here.