Skip to content

how run

lizhi edited this page Dec 4, 2016 · 17 revisions

windows

set FLEX_HOME=d:/sdk/flexjs7
set main=TestGraphics

set ARGS=-remove-circulars
start %FLEX_HOME%/js/bin/mxmlc %ARGS% -external-library-path="%FLEX_HOME%\js\libs\js.swc" -compiler.source-path=../src src/%main%.as -define=CONFIG::as_only,false -define=CONFIG::js_only,true

mac

  • run with mac run the bat,replace sdk path,and main var with your.
#set FLEX_HOME=d:/sdk/flexjs7 
FLEX_HOME=/FlexSDK/FlexJSNightly 
MXMLC_PATH="$FLEX_HOME/js/bin/mxmlc" 
EXTERN_PATH="$FLEX_HOME/js/libs/js.swc" 
main=TestGraphics.as

ARGS='-remove-circulars' 
#ARGS='-debug=true -remove-circulars' 
#ARGS='-remove-circulars -js-compiler-option="--compilation_level WHITESPACE_ONLY"' 
$MXMLC_PATH $ARGS -external-library-path="$EXTERN_PATH" -compiler.source-path=../src src/$main.as -define=CONFIG::as_only,false -define=CONFIG::js_only,true
Clone this wiki locally