# Click and Drag muliple symbols help

**URL:** <https://forum.kirupa.com/t/click-and-drag-muliple-symbols-help/290749>\
**Category:** Uncategorized\
**Created:** [June 19, 2009, 2:04am UTC](https://forum.kirupa.com/t/click-and-drag-muliple-symbols-help/290749 "2009-06-19T02:04:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evergreen481](https://avatars.discourse-cdn.com/v4/letter/e/46a35a/32.png) [@evergreen481](https://forum.kirupa.com/u/evergreen481)\
**Post date:** [June 19, 2009, 2:04am UTC](https://forum.kirupa.com/t/click-and-drag-muliple-symbols-help/290749/1 "2009-06-19T02:04:51Z")

</div>

Hi 😃 . Im making an interactive map of a theme park, but having problems with a click and drag script.

My problem is i want the background of the map (i.e. the picture of the theme park) and the buttons which make the script interactive to move at the same time when the user naviagtes aorund the map; similar to this

this is the script i am using to make the map interactive. It is located in a layer Action script.:

_import mx.transitions.Tween;_  
_import mx.transitions.easing._; \*  
_var cities:Array = [“muscat”, “sohar”, “dubai”,“abu\_dhabi”]_

_function mover (targetX, targetY){_  
_currentX = marker\_mc.\_x;_  
_currentY = marker\_mc.\_y;_  
_var xTween:Tween = new Tween(marker\_mc, “\_x”, Strong.easeOut, currentX, targetX, .5, true);_  
\*var yTween:Tween = new Tween(marker\_mc, “\_y”, Back.easeOut, currentY, targetY, 1.5, true); \*  
_} \*  
 for (var i = 0; i\<cities.length; i++){ \*  
 var my\_btn = this[cities+"\_btn"];  
 my\_btn.myCity = cities;_  
_my\_btn.onRollOver = function() {_  
\*mover( this.\_x, this.\_y); \*  
_marker\_mc.gotoAndStop(this.myCity);_  
_}_  
\*} \*\*

_I used this script to make the map move around when clicked and draged:_

\*_on (press) { startDrag (this.\_parent, false);}_

This was located in the Actions for the individual buttons and the background movie clip.

But they will both only drag at the same time if the user has thier mouse over BOTH the buttons and the background.

How do i get them to move at the same time?

Thanks for your time.
