• Dear Cerberus X User!

    As we prepare to transition the forum ownership from Mike to Phil (TripleHead GmbH), we need your explicit consent to transfer your user data in accordance with our amended Terms and Rules in order to be compliant with data protection laws.

    Important: If you accept the amended Terms and Rules, you agree to the transfer of your user data to the future forum owner!

    Please read the new Terms and Rules below, check the box to agree, and click "Accept" to continue enjoying your Cerberus X Forum experience. The deadline for consent is April 5, 2024.

    Do not accept the amended Terms and Rules if you do not wish your personal data to be transferred to the future forum owner!

    Accepting ensures:

    - Continued access to your account with a short break for the actual transfer.

    - Retention of your data under the same terms.

    Without consent:

    - You don't have further access to your forum user account.

    - Your account and personal data will be deleted after April 5, 2024.

    - Public posts remain, but usernames indicating real identity will be anonymized. If you disagree with a fictitious name you have the option to contact us so we can find a name that is acceptable to you.

    We hope to keep you in our community and see you on the forum soon!

    All the best

    Your Cerberus X Team

HOW TO: Build Flash target

Martin

Well-known member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
3rd Party Tool Dev
Joined
Jun 19, 2017
Messages
344
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.
 
@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:
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:
Which version of Flex are you trying to use?
 
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:
Back
Top Bottom