5 Replies Latest reply on Sep 4, 2007 12:25 PM by kglad

    I did it. I made a larger than monitor size image dragable.

    56231 Level 1
      My image on my web page is larger than my monitor. I want my entire web page to consist of this very large image. I want to click on this image and pull (drag) and see contents of this image appear into view at the edge of my monitor. I succeeded in doing this. The code to make it drag able is simple (see below). But when I keep dragging it across my monitor I begin to see the edge of the image come into view and what appears to be the white background of the stage area. I would like the dragging to stop when the edge of the image reaches the edge of my monitor.

      Can anyone help. Thanks.

      map_mc.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
      map_mc.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
      map_mc.buttonMode = true;

      import flash.events.MouseEvent;

      function startDragging(event:MouseEvent):void
      {
      map_mc.startDrag();
      }
      function stopDragging(event:MouseEvent):void
      {
      map_mc.stopDrag();