#!/bin/sh FLASHPLAYER=~/bin/gflashplayer # debugger needs gflashplayer in PATH! FLEXSDKDIR=~/flexSDK MXMLC=$FLEXSDKDIR/bin/mxmlc FDB=$FLEXSDKDIR/bin/fdb FILE=`basename $1 .mxml` OPTS="" RUNCMD="$FLASHPLAYER $FILE.swf" DEBUG=$2 if [ "x$DEBUG" != "x" ] then OPTS="$OPTS -compiler.debug" RUNCMD="$FDB $FILE.swf" fi $MXMLC $OPTS ${FILE}.mxml $RUNCMD exit 0