Using Google Maps within CS3
A friend of mine asked me if I knew a way to get google maps working within CS3. At the moment google made this flex only. If you’ve carefully read my previous articles you already know the drill.
This is what you need to do to get it working within CS3:
1. download the sdk from: http://code.google.com/apis/maps/documentation/flash/
2. copy the google swc to the flexsdk/frameworks/libs folder, where the other swc’s reside
3. create a library.as (read my previous article) from the HelloWorld google example and compile an swf and swc from that
4. run HelloWorld.as within your CS3 IDE
Download my example here to see it in action!
Good luck!
Thanks a ton phew finally got it working the way i wanted it to.
Hello,
I truely cant understand your example. You are speaking about using google maps within CS3, in step 2 you say to copy the google-swc file to the “flexsdk/frameworks/libs” folder. Since i use CS3 and not FLEX, i wonder where i shall find this folder on my system, there isnt such a folder anywhere.
In step 3 you say “create a library.as (read my previous article)”, i would like do that, only where can i find this article please? May you can add a link to it? I cant find such article anywhere here on this page.
I did check out your example FLA and yes it works, but this truely is just not useful since i dont know how to acces this “FLEX Library” MovieClip which only does include the “library.swf” and dosnt do anything else. I have no clue what for heck this “library.swf” is doing. There is no code and it seems no possibilitie to acces this swf in any way. So i can nothing do than just to change the coordinates in the “HelloWorld.as” file. I can not access anything dynamicaly or any like this. Maybe its possible to explain all this in a more useful and understandable way? I am sorry but his example so how it is yet is just not helpful.
Best Regards
@Steffen, If you had taken two seconds two browse this blog then you would have have ended up reading: http://labs.wichers.nu/2007/12/25/using-flex-compiled-code-within-flash/
No, it’s not for the faint hearted, so if you don
‘t understand what I’m writing maybe it’s not for you…
Hi Sander,
Sorry when my post may did sound a bit rude or mean, i just was frustrated a bit. Of course i have seen the article “Using Flex compiled code within Flash”, but did not expect its been this article. I thought there would be another article which explains anything without using FLEX. Yes i dont understand what is going on there, because i have no clue about FLEX and how it works, i only am working with the normal Flash CS3 Environment. And thats why i found this site here because i was looking for a way to use the maps with CS3. So when i see it correctly now me thinks without using FLEX it is just not to get, is it right? In short, i need the FLEX environment to create the necessary library.swf which i can use then in CS3. I did not realize that immediately, sorry for that. I only wonder now a bit whyfore to use CS3 when i could create my application already so or so in FLEX?
Very nice job guys! And I don’t just mean this article, you’re actually figuring out alot of stuff what many people are wondering about.
Keep it up!