« OpenSource Flash Portal | Weblog | Bayer Beachwoche »

23.06.05

FAME on Mac

Here are a few hints for working with FAME on OS X:

1. setting project classpath
Solution 1: Edit the .classpath file in your project home manually (./ stands for project home dir):

<AS2Classpathes>
<AS2Classpath type="source">./PRODUCTION/classes</AS2Classpath>
</AS2Classpathes>

Solution 2: Enter a classpath starting with './'

2. mtasc doesn't like classpathes containing spaces
I wrote this little shell script which I use for the eclipse setting 'location of mtasc.exe'; it echoes the full mtasc command line into a seperate shell scripts and returns mtasc's output. Create an empty text file in the dir where the shell script ist living and chmod it 777 to make it writeable and executable.

#!/bin/sh
echo "#!/bin/sh" > subc.sh
echo /usr/local/bin/mtasc $@ >> subc.sh
./subc.sh
exit $?

3. Flashout (this rocks rocks rocks)
You need to download Java 5 from here; eclipse 3.1 from eclipse.org (and of course the latest Flashout plugin).
The tricky part: After installing Java eclipse will still assume that Java 1.4.2 is running...
kefgolfs posted this solution on forum.java.sun.com:
Open Terminal.
Because you're going to be modifying System information, you need to identify yourself as the administrator by typing: sudo su root
Terminal will prompt for the admin password. Enter this.
Change the current directory by typing: cd /System/Library/Frameworks/JavaVM.framework/Versions
Within this directory, there is an alias called CurrentJDK. By default, it is aliasing the 1.4.2 directory. You need to remove this alias by typing: rm CurrentJDK
Now you need to replace it with a new alias pointing to the 1.5.0 directory instead. Do this by typing: ln -s 1.5.0 CurrentJDK
Finally, log out of the session as administrator by typing: exit

Copyright © 2005 Rainer Becker -- Impressum -- Powered by Movable Type -- RSS -- RDF -- Atom