Link to home
Start Free TrialLog in
Avatar of whatisittellme
whatisittellme

asked on

linking flash CS3(AS3) with google maps

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.
ASKER CERTIFIED SOLUTION
Avatar of rascalpants
rascalpants
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

^ bump ^
 

please come back and finish up this question...


thanks,

rp / Zone Advisor
Avatar of whatisittellme
whatisittellme

ASKER

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.

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