|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by luefher in Adobe Flash, ActionScript
Hello,
We have a flash project that we downloaded that has a US map. We are trying to do a zoom in/out with a mouse wheel for it. We almost got it working, except that when it zooms in, for some reason it zooms back out. The code is attached and we can provide more. We also have added dragging and there is onRelease event for zooming the map in when you click on the state.
Thanks in advance for the help!
1:
2:
3:
4:
5:
|
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta:Number){
usa_mc._scaleX += delta;
usa_mc._scaleY += delta;
}
|
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625