Zoom and drag map :(

I have made a map that zooms and drags but I need it to change between zooming and draging when I click on different movie clips. I was thinking it was best to use an action listener but I wasnt able to incoperate it into this project :frowning: any idea what I can do?

#include "mc_tween2.as"
map._width = 593
map._height = 832
 
drag.onRelease = function() {
map.onPress = function(){
     this.startDrag();
};
map.onRelease = function(){
     this.stopDrag();
};
}
 
 
zoom.onRelease = function() {
map.onRelease = function() {
 if (map._width >= 594) {
   map.resizeTo(593, 832, 2, "linear");
 } 
 else {
   map.resizeTo(2372, 3328, 2, "linear");
 }
}
}

stop();