FlowPlayer is created using a number of different open source Flash tools. Here is a list of the tools you will need:
- Ant – This is used to build the source. It along with a few of the other packages require java to run.
- AS2Ant – An AS2Lib build tool.
- AS2Lib – An ActionScript 2.0 application framework.
- SWFMill – Creates SWF files from XML definitions.
- MTASC – An open source Actionscript compiler.
- luminicbox.log – A logging framework for Actionscript.
If you want to find out more about these tools you can use osflash.org as a great open source flash resource.
The following shows how I went about gather all the tools and source for the build. I assume here that you have java already installed.
tar xvzf apache-ant-1.7.0-bin.tar.gz
tar xvzf swfmill-0.2.11.tar.gz
tar xvzf ../mtasc-1.12-linux.tgz
sed -i '/function onStatus/ i\ function onCuePoint(info:Object):Void;' std/NetStream.as
cvs -d:pserver:email@example.com:/cvsroot/flowplayer login
cvs -z3 -d:pserver:firstname.lastname@example.org:/cvsroot/flowplayer co -P flowplayer
Now you have everything you need to build FlowPlayer and you are in the flowplayer source directory. The next step is to change the build.properties file to point to your build tools. If you have followed the above procedure here is a build.properties file that will work:
// plug-in classes for as2lib unit test and asunit to be used with the unit test task
// Uncomment following if you want to copy the files to some dir after building
After modifying the build.properties file you are ready to build.
After the build is complete you will find FlowPlayer in the build directory ready to be used.
Add the following to the import section:
Now find the line in the same file that defines the cuePointCallback function, search for "function cuePointCallback" and add the following line after the function definition: