【文件属性】:
文件名称:地图放大缩小
文件大小:268KB
文件格式:SWF
更新时间:2015-01-26 04:23:17
放大 缩小 flash
地图可以放大缩小的
大
on (release){
map_mc._xscale *=1.2;
map_mc._yscale *=1.2;
}
或者
on (release){
map_mc._width *=1.2;
map_mc._height *=1.2;
}
缩小
on (release){
map_mc._xscale *=0.8;
map_mc._yscale *=0.8;
}
移动
on (release) {
move();
}
function move() {
map_mc.onMouseDown=function(){
starDrag(map_mc);
}
map_mc.onMouseUP=function(){
stopDrag();
}
}