Question
Scaling and positioning simultaneously to achieve a zoom out effect
Hello all,
I'm working on a map very similar to the one found here: http://www.curatingthecity.org/map.jsp
Since you can pan around the map after you have zoomed in on it, the only way to achieve a decent zoom out is to code it instead of using tweens. Since my map actually moves on top of the location and then does an even scale up (you can find the swf here: http://www.stationarynotes.com/art/testMap.swf) I was wondering how to code the zoom out? Right now I have 4 loopers, one for width, one for height, one for _x and one for _y. These loopers are all triggered when the user hits the big red "X" in the top right corner. Unfortunately it seems that Flash might not be recognizing that an _x position of -700 is actually less than 0 so when it runs the looper it runs the subtraction routine instead of running the addition routine to get everything back to 0,0. I hope that made some sense.
Any help is greatly appreciated, I am a lowly student with a professor who doesn't know how to use Flash.
I'm working on a map very similar to the one found here: http://www.curatingthecity.org/map.jsp
Since you can pan around the map after you have zoomed in on it, the only way to achieve a decent zoom out is to code it instead of using tweens. Since my map actually moves on top of the location and then does an even scale up (you can find the swf here: http://www.stationarynotes.com/art/testMap.swf) I was wondering how to code the zoom out? Right now I have 4 loopers, one for width, one for height, one for _x and one for _y. These loopers are all triggered when the user hits the big red "X" in the top right corner. Unfortunately it seems that Flash might not be recognizing that an _x position of -700 is actually less than 0 so when it runs the looper it runs the subtraction routine instead of running the addition routine to get everything back to 0,0. I hope that made some sense.
Any help is greatly appreciated, I am a lowly student with a professor who doesn't know how to use Flash.
