A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Zoom In/Out Button with Pan AS3

  1. #1
    Junior Member Xadap's Avatar
    Join Date
    Sep 2014
    Posts
    2

    Zoom In/Out Button with Pan AS3

    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.

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,785
    Hi,

    The code you are currently using is AS2 code, if you attach your *.fla then perhaps when can try to help you.

  3. #3
    Junior Member Xadap's Avatar
    Join Date
    Sep 2014
    Posts
    2

    Arrow Working but on the other way around.

    Hi! Here's my File right now, I'm done with the zoom button but what I did there was do that map square by map square, my professor wants me to use the scroll button for zooming the map not tiles by tiles. But for now that will be my zoom button,

    And here's my data.
    http://www.4shared.com/file/4i0tOJzUce/I_SoilMap.html

    And sorry this was AS2 btw,

  4. #4
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,785
    Hi,

    I am unable to download the file without choosing something i do not use,
    For the croll button look here or aimialer pages http://fcontheweb.com/articles/scrollwheel/

  5. #5
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,186
    lol root
    Thats an E-rated reward for the mature violence

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center