# Help for designing an interactive map

**URL:** <https://forum.kirupa.com/t/help-for-designing-an-interactive-map/260250>\
**Category:** flash\
**Created:** [May 13, 2008, 7:54pm UTC](https://forum.kirupa.com/t/help-for-designing-an-interactive-map/260250 "2008-05-13T19:54:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaunak84](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@shaunak84](https://forum.kirupa.com/u/shaunak84)\
**Post date:** [May 13, 2008, 7:54pm UTC](https://forum.kirupa.com/t/help-for-designing-an-interactive-map/260250/1 "2008-05-13T19:54:23Z")

</div>

Hey all, I’m new to Flash and I’m working on a project similar to this:

Err, I just checked the link and it’s dead. I suppose this example:

> **[kirupaForum](https://www.kirupa.com/forum/showthread.php?t=295044)**
>
> Got a web design/development question or just want to hang out with the most awesome people on the planet? Drop on in!

uses similar concepts. The other example was almost exactly like what I was working on so I hope you can visualize what I’m talking about. Essentially, a map that can read in objects from an XML sheet and create a map with “rooms” based on that data.   
   
I’ve gotten a map that can pan and zoom (while keeping the current screen centered), but I need some help populating the actual map, as I’ve never done it before.

What I want is for Flash to read in from an XML and create the “booths” dynamically (so I can change the map by editing the XML). So two main questions:

1. How do I draw the booth from the coordinates in the XML? (Is there some kind of drawLine() function in Flash?)

2. Just drawing the booths isn’t enough. I need to be able to click the booths to bring up more information (similar to the CAD example I linked). How would you guys guess that example was made? Basically, is there a way for me to dynamically create buttons on the fly and edit their coordinates/shape, orientation, instance name, etc?

Any help would be appreciated, whether by post or link to a tutorial. Thanks.

---

<div class="post-metadata">

**Author:** ![shaunak84](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@shaunak84](https://forum.kirupa.com/u/shaunak84)\
**Post date:** [May 13, 2008, 9:11pm UTC](https://forum.kirupa.com/t/help-for-designing-an-interactive-map/260250/2 "2008-05-13T21:11:46Z")

</div>

Thanks to findall. I checked out another thread where you recommended going to [www.gotoandlearn.com](http://www.gotoandlearn.com)

The video on the AS drawing API is exactly what I’m looking for.
