• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Program mouse wheel to scale image?

Guest
Sep 05, 2007 Sep 05, 2007

Copy link to clipboard

Copied


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.
TOPICS
ActionScript

Views

440

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 05, 2007 Sep 05, 2007

Copy link to clipboard

Copied

check the MOUSE_WHEEL property of the mouseevent class.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 05, 2007 Sep 05, 2007

Copy link to clipboard

Copied

Thanks. I found

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

here:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 05, 2007 Sep 05, 2007

Copy link to clipboard

Copied

again, check the MOUSE_WHEEL property of the mouseevent class.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 05, 2007 Sep 05, 2007

Copy link to clipboard

Copied

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

Thanks.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines