How is it not working? The xtra just tells you when the mousewheel is being scrolled and how fast. Impressario has a command for scrollV which sets the sprite to scroll by a certain amount. Just tell it how much to scroll when the wheel is used and it should be fine. I have done this before.
How i can combine both codes to do this???
How i can do this??
What is the code that you tried that is not working?
The MouseWheel Xtra turn on the wheel of mouse with:
on WheelMouseEvent val
-- if val is greater than 0 then mouse wheel is going forward
if val > 0 then
scrollByLine member( "textField" ), -1
scrollByLine member( "textField" ), 1
-- initiate WheelMouseEvent handler
-- always close WheelMouse before quitting.
-- Won't hurt if it hasn't been activated first
But htis only works on textfield, i wanna that work in pdf.
Impressario comes with a behaviour that allow scroll the page on mouse click (i put this in my project), but what i wanna is scroll by the wheel of mouse.