Help for designing an interactive map

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:

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.

Thanks to findall. I checked out another thread where you recommended going to www.gotoandlearn.com

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