I'll get straight to the point as I have deadlines here...
I have a function that works ok if I call it from a button rollover but not from my hit-test clip. I know the hit-test works as I tried it with a trace action. Here is the relevant code:
The function is defined on Frame 1 of the main timeline. Is it possible to call a function in this way? I'm trying to make a smoother scroller than the in-built one. I guess I could use a button but I don't want the cursor to change as it could cause confusion. In the future everything will work.
I have a function that works ok if I call it from a button rollover but not from my hit-test clip. I know the hit-test works as I tried it with a trace action. Here is the relevant code:
Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
pageCheck();
}
}
The function is defined on Frame 1 of the main timeline. Is it possible to call a function in this way? I'm trying to make a smoother scroller than the in-built one. I guess I could use a button but I don't want the cursor to change as it could cause confusion. In the future everything will work.