0 Replies Latest reply on Aug 25, 2007 7:12 AM by baftyrnik

    Map navigation(limits)!

    baftyrnik
      I have a small problem with the navigation on the map I am working on, and although I read everything on the subject in the forum, I couldn't find the solution.

      More specific: I have a map with both zoom and navigational buttons (left to right, up to down) at the same time. For horizontal and vertical scrolling I am using this script:

      on (rollOver) {
      map_mc._x += speed1;
      }

      on (rollOver) {
      map_mc._y += speed1;
      }

      these are the buttons as follows for up and right, zoom in-out


      on (press) {
      map_mc._xscale += speed2;
      map_mc._yscale += speed2;
      }

      on (press) {
      map_mc._xscale -= speed2;
      map_mc._yscale -= speed2;
      }

      But the instance map_mc is under a mask itself, so I can restrict the visible field. The problem is when the edge of my map reach the end of the visible field (the frame) - it doesn't stop and it continues to scroll over nothing - a blank field outside the map dimmensions. How can avoid it, cause the visitor can easily get lost this way?

      Is it possible that the script I am using for zooming in and out and/or for scrolling may be wrong, cause I am beginning to think so...?

      Can I restrict the map so it can stop and fix the whole mess?

      Thanks!