Tiny Thor (made with Monkey X)
Develop on Windows or OSX and deploy easily
Crypt of the Necrodancer (made with Monkey X)
New Star Soccer - BAFTA Winner 2013!!! (made with Monkey X )
Ted - The code editor of Cerberus X
Avalon Legends (made with Monkey X)
Race Time (made with Monkey X)

HOW TO: Build Flash target

Martin Jul 5, 2017

  1. Martin

    Martin Administrator Administrator Moderator

    Messages:
    263
    Likes Received:
    147
    Trophy Points:
    43
    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.
     
    zxretrosoft likes this.
  2. dawlane

    dawlane Active Member CX Code Contributor

    Messages:
    385
    Likes Received:
    161
    Trophy Points:
    43
    @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: Aug 30, 2017
    Martin likes this.
  3. Pakz

    Pakz New Member

    Messages:
    11
    Likes Received:
    4
    Trophy Points:
    3
    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: Jul 27, 2017
  4. dawlane

    dawlane Active Member CX Code Contributor

    Messages:
    385
    Likes Received:
    161
    Trophy Points:
    43
    Which version of Flex are you trying to use?
     
  5. Pakz

    Pakz New Member

    Messages:
    11
    Likes Received:
    4
    Trophy Points:
    3
    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: Jul 27, 2017