How can I make several dynamically generated movieclips on my map drag along with my map movieclip in Flash?

I am using Flash CS3 but I need to publish this for use with Flash 7 player. I am creating a map that shows several city points (which are movieclips). These movieclips are dynamically placed on the map using "attachMovie" with the points being extracted from an xml file. Is it possible to make dynamically generated mc's draggable? I need them to move along with the map when the map is dragged over the screen. The map is directly on the timeline and is not attached by code, but I could do that if it would help. The city points must remain dynamic.

I am sure I'm not the first person to do this, but I cannot find any information on it. Can someone please point me in the right direction?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Antonio EstradaTech Leader / Senior Web DeveloperCommented:
Yes, it's possible. But with regards to your scenario, I infer that you can drag the map around. If so, you need to select your map and give it an instance name (on the properties panel), name it "myMap" for now.

Your attachMovie code would change a bit to something like this:


With this, the points will become children of the map and if you drag the map around, the points will move accordingly.

Good Luck

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.