hiding the mouse cursor onover [half-solved]

  • hi,

    first this post was a question, but as i found the solution i will share it here:

    i have a popup text following the mouse, and the mouse pointer sometimes covers the text.
    so i wanted to hide the mouse pointer "onover" while the text popup is shown,
    and show it again "onout" when the mouse moves away.

    the solution was :

    Code
    <layer name="popup"
            handcursor="false"
    	onover="set(cursors.standard,'none');"
    	onout="set(cursors.standard,'default');" />

    just note: in case you are tweening the alpha (fading in/out the layer),
    you just you must do the cursor reset after the tween is finished,
    so that onover cant occur anymore!

    best,
    index

    UPDATE:
    sadly this doesnt work when used on a polygon hotspot.
    it seems that the polygon area always forces/updates the cursor to be a 'pointer'.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!