Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5936545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:24:49+00:00 2026-05-22T15:24:49+00:00

(using flash) I have a Sprite object that I want to show on google

  • 0

(using flash)
I have a Sprite object that I want to show on google map. So I made a GroundOverlay object using my Sprite object, but it doesn’t show up. I guess it’s because Sprite is higher class than DisplayObject. (GroundOverlay seems getting DisplayObject only..?) Is there any way to us Sprite for my GroundOverlay? or alternative idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T15:24:50+00:00Added an answer on May 22, 2026 at 3:24 pm

    I get this code from this website, I don’t remember the exact link but you can try, it almost what you want to do…

    package
    

    {
    import flash.display.;
    import flash.geom.
    ;
    import com.google.maps.*;

    public class sample extends Sprite
    {
                   private var polyLayer:Sprite = new Sprite();
                   private var mapLayer:Sprite = new Sprite();
                   private var map:Map = new Map();
                   private var center:LatLng = new LatLng(36.469889,-93.949641);
    
                   private var state:String = "39.108751,-94.586848 35.160337,-90.049495 35.474091,-97.520198";
    
                   public function sample()
                   {
                                   addChild(mapLayer);
                                   addChild(polyLayer);
                                   map.key = "*** HERE YOUR API KEY ***";
                                   map.sensor = 'false';
                                   map.setSize(new Point(800, 600));
                                   map.addEventListener(MapEvent.MAP_READY, function(event:MapEvent) {
                                                   map.enableScrollWheelZoom();
                                                   map.setMapType(MapType.NORMAL_MAP_TYPE);
                                                   map.setCenter(center, 6);
                                                   redrawPolygons();
                                   });
    
                                   map.addEventListener(MapZoomEvent.ZOOM_CHANGED, function(event:MapZoomEvent) {
                                                   redrawPolygons();
                                   });
    
                                   map.addEventListener(MapMouseEvent.DRAG_STEP, function(event:MapMouseEvent) {
                                                   redrawPolygons();
                                   });
    
                                   mapLayer.addChild(map);
                   }
    
    
                   private function redrawPolygons():void
                   {
                                   polyLayer.graphics.clear();
                                   polyLayer.graphics.lineStyle(1,0x000000,0.8);
                                   polyLayer.graphics.beginFill(0xFF0000,0.5);
                                   var coo:Array = state.split(" ");
                                   for (var g=0; g<coo.length; g++) {
                                                   var latlon:LatLng = LatLng.fromUrlValue(coo[g]);
                                                   if (g==0) 
                                                        polyLayer.graphics.moveTo(map.fromLatLngToViewport(latlon).x, map.fromLatLngToViewport(latlon).y);
                                                   else
                                                        polyLayer.graphics.lineTo(map.fromLatLngToViewport(latlon).x, map.fromLatLngToViewport(latlon).y);
                                   }
    
                                   polyLayer.graphics.endFill();
                   }
    }
    

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Flash to play an .flv movieclip on my site, but I want
One thing that seems particularly easy to do in the Flash IDE but difficult
I have a Flash/Flex object (Flashlight-VNC), which I would like to dynamically resize to
I've been using flash for a long time, mostly as an animation tool with
How do I change text color using flash actionscript 2?
Is it possible to do 3.1 or 5.1 audio using Flash? We're starting a
I'm interested in putting together my first online game using Flash as the client
I'm using AS3 (Flash) to read SVG files and display them. The problem is
I found this guide for using the flash parameters, thought it might be useful
How do you reference a bitmap on the stage in flash using actionscript 3?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.