Reputation: 35
Here is the application I need help with: http://www.nypinball.com/inventory.php
The entire box at the top is a Flex application. The box on the left with the list of pinball machines is a VBox. As you can see, if you try to scroll with your mousewheel, it doesnt respond. The reason this is shut off is because I found that if it's turned on, when you scroll up/down, the whole page goes with it. So if you scroll down four or five times, the application goes out of sight. I tried finding a solution to this when I programmed this last year but wasnt able to find any answers. Does anyone know if there's a way to make Flex grab the focus of the mousewheel and not let the browser move as well?
Upvotes: 1
Views: 894
Reputation:
there is another solution here
Same solution but no need of a div, it test if the event appear on a swf object
Upvotes: 1
Reputation:
there is a solution here
it use a div who encapsulate the swf object and catch the mousewheel event and stop it
i've tested it and it's working
Upvotes: 0
Reputation: 6872
This project may help: GAE SWF Project
They have a flex example that appears to scroll nicely. There is a mousewheel tab in their example.
Upvotes: 0
Reputation: 7066
Well... you could turn off scrolling altogether...
<body onmousewheel="return false;">
Finding a solution to your original problem would be a nicer solution. I'm 100% sure that Flash can react to mouse wheel events without scrolling the whole page.
Upvotes: 0