Hello,
I just want to share some useful info i founded out to correctly compiling a custom google map under OS.X
-First : Buy the google map source code (Klaus will be happy, you'll be happy too)
i'm working on Mac OS.X 10.6.5,
So i'm using this method :
http://southdesign.de/actionscript-3…ux-and-windows/
here the steps i've made :
-i've donwloaded Flex SDK (for some reasons SDK 4 won't compil at all, but sdk 3.5 works fine)
-then i copied the folder flex_sdk35/ on my desktop
-inside the folder flex_sdk35/ i copied all google map sources code AND files included in package
-but i copied map_1_18.swc file in subfolder : flex_sdk35/frameworks/libs/
-i got a txt file "ascompiler" with this code : (use an text editor)
#! /bin/sh
#ActionScript 3.0 Compiler using the free mxmlc Java compiler
# in Terminal, Type this : cd /Users/myname/Desktop/flex_sdk35/ (modify this path accordingly)
# then this : ./ascompiler googlemaps.as
#
#setup
as=$1;
compiler="/Users/myname/Desktop/flex_sdk35/lib/mxmlc.jar"; #set path here
flexlib="/Users/myname/Desktop/flex_sdk35/frameworks"; #set path here
if test -r $as
then
#compile
echo Compiling $as...
java -Xmx384m -Dsun.io.useCanonCaches=false -jar $compiler +flexlib=$flexlib $as
exit 1;
else
echo $as not found...
exit 0;
fi
Alles anzeigen
-Then i open the Terminal,
type in
(so we are now in correct folder...
then i type :
and compiling process in the Terminal, the final file "googlemap.swf" output in few secondes
-to have custom map marker images, just replace default .png files, and compil again...
-to have more cutomisations : edit the googlemaps.as file with a txt editor...
and check useful info here :
http://code.google.com/intl/fr-FR/api…lash/intro.html
Hope that may help
Davx
Hey Klaus, btw : the source is only version 10.8.11 (no update ?)