Monday, January 22, 2007

building flex, corelib with ant, json example

get flex binaries and unzip it to a directory: flex
install jdk 1.5 and set 
export JAVA_HOME=/usr/java/jdk1.5.0_10
export PATH=$JAVA_HOME/bin:$PATH

go to directory flex and build samples :

it takes a while to build.
now get as3corelib from google code svn
svn co as3corelib

need ant to build this
sudo yum install ant

edit as3corelib/build/ and set right directories:
flex2sdk.bin.dir = /www/ask/work/flex/bin
flex2sdk.lib.dir = /www/ask/work/flex/frameworks/libs
flex2sdk.locale.dir = /www/ask/work/flex/frameworks/locale/{locale}

in directory as3corelib
ant -f build/build.xml lib

cp as3codelib/bin/corelib.swc flex/frameworks/libs/.

now compile JSONExample.mxml
flex/bin/mxmlc JSONExample.mxml

No comments: