Solved

linking flash CS3(AS3) with google maps

Posted on 2009-05-14
4
567 Views
Last Modified: 2013-11-11
I am making an application in Flash using AS3. It is a very basic drawing tool(with capability to draw lines, circles, free hand tools, etc.). I want to be able to have google map on the background of the stage of my diagramming tool and trace the roads/add objects by using the tools available on the drawing tool.
1. I am not sure how to link google maps and Flash CS3.
2. Once I link them, how do I make sure that when I zoom in or out on the google map, the drawings are resized and hold together properly.

Thanks for your time and help.
0
Comment
Question by:whatisittellme
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
rascalpants earned 500 total points
ID: 24388514

I would highly recommend buying this really inexpensive component and using it...

http://www.afcomponents.com/components/umap_as3/

they do all of the hard work for you...


and I believe you can tap into the same methods and callbacks when to scale your drawing...  you just need to figure out how much the map scales...


rp / ZA

0
 
LVL 22

Expert Comment

by:rascalpants
ID: 24436041

^ bump ^
 

please come back and finish up this question...


thanks,

rp / Zone Advisor
0
 
LVL 2

Author Comment

by:whatisittellme
ID: 24436266
hi there, sorry for the delay. i am trying to get it work with the component that you mentioned. i am struggling to get it work the way i want but i think i will post another question regarding it.
thanks for the help !

but as a general question :
how do i implement zoom for the drawings on stage(which are all vector graphics). i would appreciate if you can give an example.
0
 
LVL 22

Expert Comment

by:rascalpants
ID: 24436356

well, assuming you have a movieclip(your vector drawings) that is on a layer on top of the Map component, you would basically do a bunch of testing and use scaleX and scaleY with your clip to see what sizes work at different map zoom levels...  I don't believe you can tap into the any classes in the component to get teh actual scale...  the only thing I can think of is to set in initial scale variable of the map, and then check to see how much it scaled by getting the scaleX and scaleY properties from it... then just setting your vector graphics equal to that.


hope that helps...


rp / ZA

 
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Youtube video error 30 775
how can flash builder 4.X version make use of java 8 5 309
how can i learn adobe flex step by step 4 108
Flash Player Action Script Error 1090 5 207
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question