3 Replies Latest reply on Mar 3, 2011 5:57 AM by Ned Murphy

    Dragging help

    Hughesebio

      Hi guys,

       

      Having a bit of problem with some AS2 script, im currently working on a 230x320 screen size, and have a map which is a lot bigger. I have managed to make the map draggable, but I am having a bit of a problem getting it to stop dragging when it reaches the borders of my map (so that it doesnt carry on dragging to the white area).

       

      my script is as follows:

       

      stop();

      MainMap_mc.onPress = function(){
      this.startDrag(false, -407, -275, 1206, 638); }

      MainMap_mc.onRelease = function(){
      this.stopDrag();
      }

      MainMap_mc.onReleaseOutside = function(){
      this.stopDrag();

      }

       

      Any help with the script would be great.

       

      Cheers

       

      Hughesabio