This content has been marked as final. Show 3 replies
If you assigned a mouse event to the map, it will steal the events from the objects inside the map. Here's a good tutorial on that issue: http://www.senocular.com/flash/tutorials/buttoncapturing/.
Maybe you can use a mouse listener instead of events assigned to the map. That way, the buttons inside should keep their actions. For the dragging, check in the onPress event if the mouse isn't over an icon, and startDrag(). If the event from the buttons fire before the onPress of the mouse listener (check this with trace() statements in every event), you could use those to set a var to true to indicate that a button was hit. If the var isn't true, no button was hit and you can start dragging.
Alternatively, make a draggable background to the clip, with the buttons on a layer above. That way, you test for presses on the background, then drag the whole clip (the _parent of the background)
Thank you so much - that link solved the problem. Could continue to use button events inside the draggable movie clip as well.