5 Replies Latest reply on Sep 23, 2014 7:41 PM by Xadap

    Zoom In/Out Button with Pan AS3

    Xadap

      Good Day! I'm new to Flash AS3,

      And I have a major problem on my project

       

      What I've been doing is an Interactive map and some functions along with a zoom in/out and pan button

      I've got the code on the zoom in/out button, problem is when there is no limitation when I zoomed it in(Still researching this)

      1.png

      Here is my code in the zoom in(I just change the + to - on the zoom out button ofc!)

           on(release){

           _root.SoilMap._xscale+=10;

           _root.SoilMap._yscale+=10;

           }

      "I don't have any codes for the Pan Button yet"

      ...
      What my final output would be this, in the Black line square that would be my limit in the zoom in/out , and that is the area where

      I could only use my Pan button.

      2.png

       

      Any codes that is related to this would help me.

      I've also research about the Javascript that can zoom/pan but it's only for JPG, i tried the SWF file but it didn't work.