Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FLEXJS_HOMEThe directory location of the Apache FlexJS installation. It should have a frameworks sub-directory.
PLAYERGLOBAL_HOMEThe full path to the directory containing playerglobal.swc files. This directory should contain version sub-directories such as 11.1
PLAYERGLOBAL_VERSIONThe version of the playerglobal.swc to use, such as 11.1
FALCON_HOMEThe directory location of the Apache Flex Falcon compiler. This directory should contain a compiler.jx sub-directory.
GOOG_HOMEThe directory location of the Google Closure library.

Creating SWF Output Only

Be sure to set the values for the FLEXJS_HOME, PLAYERGLOBAL_VERSION, and PLAYERGLOBAL_HOME environment variables as indicated above.

Code Block
languagebash
titleMac OS X: Building SWF
mxmlc +flexlib=${FLEXJS_HOME}/frameworks -debug -define=CONFIG::theme,false \
-compiler.mxml.children-as-data -compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent \
-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent \
-compiler.binding-value-change-event-type=valueChange +playerglobal.version=${PLAYERGLOBAL_VERSION} \
+env.PLAYERGLOBAL_HOME=${PLAYERGLOBAL_HOME} FILENAME.MXML

...

Creating js-debug Output Only

Be sure to set the values for the FLEXJS_HOME, FALCON_HOME, PLAYERGLOBAL_VERSION, PLAYERGLOBAL_HOME, and GOOG_HOME environment variables as indicated above.

Code Block
languagebash
titleMac OS X: Building js-debug
/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home/jre/bin/java -Xms64m -Xmx384m -ea \
-Dapple.awt.UIElement=true -Dflexlib=${FLEXJS_HOME}/frameworks -jar ${FALCON_HOME}/compiler.jx/lib/mxmlc.jar \
+flexlib=${FLEXJS_HOME}/frameworks -debug=true -define=CONFIG::theme,false -compiler.mxml.children-as-data \
-compiler.binding-value-change-event=org.apache.flex.events.ValueChangeEvent \
-compiler.binding-value-change-event-kind=org.apache.flex.events.ValueChangeEvent \
-compiler.binding-value-change-event-type=valueChange +playerglobal.version=${PLAYERGLOBAL_VERSION} \
+env.PLAYERGLOBAL_HOME=${PLAYERGLOBAL_HOME} -define=CONFIG::extlib,false -js-output-optimization=skipAsCoercions \
-define=CONFIG::opt2,false -js-output-type=FLEXJS -closure-lib=${GOOG_HOME} \
-sdk-js-lib=${FLEXJS_HOME}/frameworks/js/FlexJS/libs -output=. FILENAME.MXML

...