all groups > flash actionscript > september 2007 >
You're in the

flash actionscript

group:

Program mouse wheel to scale image?



Program mouse wheel to scale image? 56231
9/5/2007 11:21:56 PM
flash actionscript: I have an image on my web page that is larger than my monitor screen and thus
cannot be seen all at once. I have managed to use ActionScript 3.0 to program
the mouse to drag the image across the screen so I can see the hidden parts
beyond the monitor. Now I want to use the mouse wheel to zoom in or out on this
image thus bringing the whole image into view on my web page.
Is there an area of the documentation I should see. Any Packages, Classes or
function names I should look for?

Thanks for any advice.
Re: Program mouse wheel to scale image? 56231
9/6/2007 12:00:00 AM
I do not understand what you are asking me. I found the MOUSE_WHEEL property of the mouseevent class
You will have to excuse me, I have never programmed before.

Re: Program mouse wheel to scale image? kglad
9/6/2007 3:09:44 AM
Re: Program mouse wheel to scale image? 56231
9/6/2007 4:55:29 AM
Thanks. I found

MOUSE_WHEEL Constant
public static const MOUSE_WHEEL:String = "mouseWheel"

here:


http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEven
t.html

I am not sure if this is considered a property. I will do some more reading
and try to piece together some code.
Thanks again.
Re: Program mouse wheel to scale image? kglad
9/6/2007 5:10:25 AM
AddThis Social Bookmark Button