This content has been marked as final. Show 3 replies
"this" in your listener is going to refer to your listener and Object is a constuctor that doesn't take a parameter.
use the instance name of whatever you want to respond to the mousewheel instead of "this" in that listener.
i do not believe that is the issue. part of my code that i didnt include is that this is contained with in the onPress function for the button, even tracing "this" reveals that it is correctly getting the item. The problem I am having is related to how it is moving.
The object moves fine when i scrub my mouse wheel slowly, although it does it somewhat in a jerky motion. But when I scrub my mouse wheel fast or in one big motion, it will break the position. and the object will no longer be under the mouse pointer.
then don't use a mouse listener. use a loop that updates more frequently like an enterframe or setInterval loop.