PDA

View Full Version : [MX or 5] Zoom in and out (similar to context menu)



Asterix
November 28th, 2002, 02:00 PM
I have a country map, I want to put two buttons "Zoom out" and "Zoom in" and I want from them access by actionscript to the options provided by the right click on a flash movie like: zoom in , out 100% żis there any easy way to do this?

Thanks in advance,

Asterix

Guig0
November 28th, 2002, 02:59 PM
On the zoom in button:


on (press){
map._xscale+=10;
map._yscale+=10;
}




Zoom out:


on (press){
map._xscale-=10;
map._yscale-=10;
}



=)