Jump to content

Problems with addEventHandler


syrasia

Recommended Posts

Hi there,

I am in the process to script a tooltip. Everything works fine, but I have a problem with the addEventHandler:

addEventHandler ( "onClientMouseMove", getRootElement( ), tooltipHandler( ) ) 
  
addEventHandler( "onClientMouseMove", getRootElement( ), function ( x, y ) tooltipHandler(x,y) end ) 

The first one does NOT work while the second one works normal.

What I am missing? Why does the second one work, but the first one not?

Link to comment

Okay, that was it for real?

...........

F*** me, sorry! :oops:

Now I know what happend: :lol::lol::lol:

In an other script it worked. Here it didnt: if u have the bracked, it will get called once. No problem with "onResourceStart", right? But with repeating events ist not so nice. Changed it.

Well I would say thank you mate!

Aaaaaaand this is solved!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...