Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Call Function from Hit-Test?

Status
Not open for further replies.

Wyrm2012

Programmer
Jul 3, 2001
38
0
0
GB
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:

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top