Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6130115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:49:14+00:00 2026-05-23T16:49:14+00:00

The flex compiler (mxmlc) allows the use of token substitution in the compiler config

  • 0

The flex compiler (mxmlc) allows the use of token substitution in the compiler config xml file, as referenced in the documentation.

From the linked documentation it is clear that you can specify your own tokens for substitution on the commandline, but there are also some default/magic tokens available that Adobe has put in place…

For example, the snippet below is reduced from an Adobe example on how to fiddle with the framework RSL sourcing:

<runtime-shared-library-path> 
    <path-element>libs/framework.swc</path-element> 
    <rsl-url>${hosted.rsl.url}/flex/${build.number}/framework_${build.number}.swz</rsl-url> 
    <policy-file-url>${hosted.rsl.url}/crossdomain.xml</policy-file-url> 
</runtime-shared-library-path>

I have highlighted two tokens in use there, namely hosted.rsl.url and build.number. These work “magically” without specifying them on the commandline.

Here is another example that vaguely shows the existence of a ${flexlib} token.

Unfortunately, aside from those limited examples I can’t find a whisper of documentation on what tokens are available… Is the list of tokens documented somewhere that I can’t find? If not, does anyone know what the available tokens are so that this SO question can be the documentation?


Note: Since I referenced build.number, I might as well also note that build.number doesn’t seem to work quite like Adobe seems to think it does since for me it simply gives me the build number, not the whole string. ie: For flex 4.5.0.20967, ${build.number} just gives me 20967 which is not much help). I had a web link where someone was complaining about the changing implementation of these tokens, but I can’t find it anymore.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:49:14+00:00Added an answer on May 23, 2026 at 4:49 pm

    You’ll find them in the build files – do a search for build.xml in both your sdk directory and if you have it (and since it’s open source you can get your free copy from adobe http://opensource.adobe.com/wiki/display/flexsdk/Get+Source+Code ) for build.xml files.

    In them you’ll see where they’re actually defined. You’ll need to go through the different builds for different parts of the framework. For example, you can see the following in the first few lines :

    (notice the build.number is specified like you were curious about among others)

    <project name="sdk" default="main" basedir=".">
    
    <property name="FLEX_HOME" location="${basedir}"/>
    
        <!-- Required for OSX 10.6 / Snow Leopard Performance -->
    <condition property="local.d32" value="-d32" >
        <and>
            <equals arg1="${sun.arch.data.model}" arg2="64"/>
            <equals arg1="${os.arch}" arg2="x86_64"/>
                <os family="mac"/>
        </and>
    </condition>
    
    <property file="${FLEX_HOME}/local.properties"/>
    <property file="${FLEX_HOME}/build.properties"/>
    <property environment="env"/>
    <property name="debug" value="true"/>
    <property name="strict" value="true"/>
    <property name="javac.src" value="1.5"/>
    <property name="build.number" value="0"/>
    <property name="target.player" value="10"/>
    

    Happy hunting! (and remember you can add your own too!)

    🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Although the Flex command-line compiler (mxmlc) can compile MXML + ActionScript files into SWFs
Flex Builder allows additional compiler arguments to be set in the compiler options, under
We are writing an app that will use T4 to generate Flex/Actionscript to compile
Flex has an issue with hyphens in xml. I need to generate an xml
In Flex, I have an xml document such as the following: var xml:XML =
Are there any workarounds to get the Flex compiler to work with a 64bit
i want to use Ant task to compile flex project(with many libraries, modules) i
i' m using BlazeDs. In services-config.xml we got following configuration of endPoint. <channel-definition id=any-amf
I have implemented some utility classes in Flex that I want to use in
I am running mxmlc in the command-line with -incremental=true . Flex is building the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.