[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.

Question
[x]
Attachment Details

mouse wheel zooms in but then out

Asked by luefher in Adobe Flash, ActionScript

Tags: flash, mouse, wheel, zoom

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;
}
[+][-]06/18/09 11:06 AM, ID: 24660119Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/18/09 01:44 PM, ID: 24661579Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/18/09 02:59 PM, ID: 24662123Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625