Flash ActionScript 3.0 Google Map API Tutorial 2 of 2 by tunevison
Uploader Comments (tunevision)
All Comments (25)
-
Helped to do my project! Thank you very much! it was very exciting :)
-
Really helpful thanks dude.
-
John, after inserting the api into my flash file, when I run it, the map window remains on my other screens when I click to bring up other pages. The Google Map window appears over anything else. How can I make the map hidden after I click out of it?
Thanks
Tom
-
@tunevision:is this correct john?
var view_position:ControlPosition = new ControlPosition(ControlPositio
n.ANCHOR_TOP_LEFT, 110, var myViewPos:MapTypeControl = new MapTypeControl();
myViewPos.setControlPosition(v
iew_position); gomap.addControl(myViewPos);
*error:1084: Syntax error: expecting rightparen before var.
-
@tunevision:is this correct john?
var view_position:ControlPosition = new ControlPosition(ControlPositio
n.ANCHOR_TOP_LEFT, 110, var myViewPos:MapTypeControl = new MapTypeControl();
myViewPos.setControlPosition(v
iew_position); gomap.addControl(myViewPos);
*error:1084: Syntax error: expecting rightparen before var.
Regards,
Oebay
-
@tunevision:is this correct john?
var view_position:ControlPosition = new ControlPosition(ControlPositio
n.ANCHOR_TOP_LEFT, 110, var myViewPos:MapTypeControl = new MapTypeControl();
myViewPos.setControlPosition(v
iew_position); gomap.addControl(myViewPos);
*error:1084: Syntax error: expecting rightparen before var.
Regards,
Oebay (Indonesia)
Hi John,
Thanks for the tutorials.
I'm wanting my map to be a bit more like a static map but want to be able to control and change the map type.
I have disabled the control bar //gomap.addControl(myNavPos); and also the zoom //gomap.enableScrollWheelZoom(); but need to disable the pan.
Can you pleae help me out and tell me what the code should be and also where to put in?
Thanks, Craig
Panoviz 1 year ago
@Panoviz ,
Thanks.
You would disable the scroll as you mentioned as well as this section: // or position the navigation control to coordinates. //var nav_position:ControlPosition = new ControlPosition(ControlPosition.ANCHOR_TOP_LEFT, -60,40); //var myNavPos:NavigationControl = new NavigationControl(); //myNavPos.setControlPosition(nav_position); //gomap.addControl(myNavPos);
Click/drag can be defeated by a transparent movieclip on a layer or frame above.
Hope this helps.
-John
tunevision 1 year ago
Pls help. how can i close the map when exiting a frame in my adobe flash CS5 project?
ArnoldSwacheneger 1 year ago
@ArnoldSwacheneger
You need to nest it in a movieclip.
Make a movieclip on the frame. Put the map code inside the movieclip.
Now when you navigate away from that frame the map will not be visible.
tunevision 1 year ago
hi again, i try to add some maps in with differnet latling different frame. but it says duplicate. what should i add in the script. thanx
TheJulwow 1 year ago
tunevision 1 year ago