HOW TO: Build Flash target

Martin

Administrator
Staff member
Joined
Jun 19, 2017
Location
Germany
Windows

To build the flash target you need to install Flex, Ant and Java SDK.

Download and install Flex 4.6:
http://www.adobe.com/devnet/flex/flex-sdk-download.html

Download and install the Java SDK, take the 32bit one, so the x86 target like jdk-8u131-windows-i586.exe:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Download and install Apache ANT:
http://ant.apache.org/bindownload.cgi

In your Cerberus folder, open the file bin/config.winnt.txt and change the following variables:
ANT_PATH - path to your ant installation
JDK_PATH - path to your Java SDK installation
FLEX_PATH - path to your Flex SDK installation

That's it. You should now be able to build Flash apps.


Mac OS

To build the flash target you need to install Flex and Ant.

Download and install Flex 4.6:
http://www.adobe.com/devnet/flex/flex-sdk-download.html

Download and install Apache ANT:
http://ant.apache.org/bindownload.cgi

In your Cerberus folder, open the file bin/config.macos.txt and change the following variables:
ANT_PATH - path to your ant installation
FLEX_PATH - path to your Flex SDK installation

That's it. You should now be able to build Flash apps.
 

dawlane

Active Member
CX Code Contributor
Joined
Jun 21, 2017
@Martin: Adobe Flex SDK was abandoned by Adobe and parts of it opened sources under the care of the Apache Software Foundation under the moniker Apache Flex. They fixed a few bug and it should now work with any version of the JDK. It's just a bit of a pain to set up on a 64 bit version of Windows as the GUI installer has been know to have a few issues.

Mark Sibly has done a few posts about it a rare post with updated instructions, but he never updated any of the documentation.

To set up manually:
Download and install any Window version of the Oracle JDK: NOTE that the JRE is part of this package and you have to manually update the JDK when a new version is released, if I recall. NOTE: If there is already a version of a JRE installed, then both the JRE and JDK version must match, or you could end up with compiler warnings and errors.
Download and extract the Apache ANT and Apache Flex SDK binaries to where you wish them to reside.
You need to set some system environment variables: for speed and system security they should be added to the user environment and not the system wide environment variables.
Add two new variables ANT_HOME and JAVA_HOME to the user environment variables.
Add %ANT_HOME%; %ANT_HOME%\bin; %JAVA_HOME%; %JAVA_HOME%\bin to the users PATH environment variable.
Log out and back in again, then open a command terminal to test that ant, the java compiler and runtime with: ant, java -version and javac -version

The Apache Flex SDK:
Download the PlayerGlobal (SWC) file from for later use.
Open a command terminal an change to the Apache Flex SDK root directory.
Type:
ant frameworks-rsls
ant -f installer.xml -Dflash.sdk.version=16.0 -Dair.sdk.version=16.0

Some parts of the SDK are optional: see the README file for more information. If in doubt, just answer yes to everything.

The playerglobal swc now needs to be install somewhere. The best place for it is to create a directory in the following format player/(major).(minor) replacing (major).(minor) with the current Apache Flex SDK version number in the SDK's frameworks\libs directory.
Then move the download playerglobal swc into this new directory and renaming the file to just playerglobal.swc.

Now the fun part:
Open up the file flex-config.xml in the frameworks directory.
Check that the <target-player> tags contents is set to the correct version for the current version of the Apache Flex SDK. The default is 11.1.
Now there are two choices:
1) Change all references to {playerglobalHome} to libs/player in any <path-element> tags.
2) According to the READ ME, set up a user environment variable called PLAYERGLOBAL_HOME.

Set up the MonkeyX/CerberusX config files and you should be good to go.
 
Last edited:

Pakz

New Member
Joined
Jul 20, 2017
I tried to install the flex, but it does not do anything. It just downloads and then ends and I can find nothing on the hd. Seems this has gotten a little bit more difficult.
 
Last edited:

Pakz

New Member
Joined
Jul 20, 2017
Which version of Flex are you trying to use?
Is the first post here not good? Trying again. If that does not work I will try post 2.

I give up for now. I have to study how to install ant.
 
Last edited:
Top Bottom