A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: [Help] MouseScroll functionality when Flash in Focus

  1. #1
    Senior Member SlimSlaby's Avatar
    Join Date
    May 2005
    Posts
    158

    [Help] MouseScroll functionality when Flash in Focus

    I have a flash movie that is a longer than the page, and when the flash movie is selected the mouse wheel doesn't scroll the page.

    I know why this is, but I am wondering if there is a way to page scroll in the browser window when the flash movie is in focus. I'm guessing that maybe javascript or something would be a solution, but not sure.

  2. #2
    It's a long way to the middle launchpad67's Avatar
    Join Date
    Oct 2004
    Location
    Prescott, Arizona
    Posts
    1,387
    Quote Originally Posted by SlimSlaby
    the mouse wheel doesn't scroll the page.
    I know why this is,
    You mean you know that the mouse wheel doesn't work with flash at all?

  3. #3
    Senior Member SlimSlaby's Avatar
    Join Date
    May 2005
    Posts
    158
    No.. I mean that when Flash is in focus, the mouse wheel is a control device for the Flash Movie... Not the browser.

    But, I want the mouse wheel to scroll the browser page, even when flash is in focus.

  4. #4
    It's a long way to the middle launchpad67's Avatar
    Join Date
    Oct 2004
    Location
    Prescott, Arizona
    Posts
    1,387
    Quote Originally Posted by SlimSlaby
    No.. I mean that when Flash is in focus, the mouse wheel is a control device for the Flash Movie... Not the browser.

    But, I want the mouse wheel to scroll the browser page, even when flash is in focus.
    Right, and I said that the Mouse Wheel Doesn't Work with Flash, ever. At least this is what I've learned over the years.

  5. #5
    Senior Member SlimSlaby's Avatar
    Join Date
    May 2005
    Posts
    158
    Quote Originally Posted by launchpad67
    Right, and I said that the Mouse Wheel Doesn't Work with Flash, ever. At least this is what I've learned over the years.
    I have found this just now :

    Mouse Wheel Tutorial

    It seems like there is a mouseListener method and a javascript method. It just doesn't work automatically, you need code to control it's behavior.
    within flash.

    I actually want the mousewheel to control the browser window, regardless of whether flash is in focus or not. So I am guessing that I would need to add a listener and then somehow tell the browser window to scroll up/down as I move the mouse wheel.

    Anyone ever do this ?

    I might be able to put something together just based on this javascript method.

  6. #6
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    Capture the mousewheel motion and then use ExternalAPI to call a javascript, which will then tell the browser to scroll.

    Problem is, in the browser, seems mouseWheel doesnt work

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center