2 Attachment(s)
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)
Attachment 75101
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.
Attachment 75103
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. :mad:
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,