-
Junior Member
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.
-
.
Hi,
The code you are currently using is AS2 code, if you attach your *.fla then perhaps when can try to help you.
-
Junior Member
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,
-
.
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/
-
Client Software Programmer
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|