hotspot onout event and tooltip onout event

  • Here is my question:
    I create a hotspot and I want to add "onout" event to it.


    and then I set tooltip style like this:

    Code
    <style name="tooltip"
    	onover="copy(layer[tooltip].html, tooltip);
    	set(layer[tooltip].visible, true);
    	tween(layer[tooltip].alpha, 1.0, 0.5);
    	asyncloop(hovering, copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
    	onout="tween(layer[tooltip].alpha, 0.0, 0.25, default, set(layer[tooltip].visible,false), copy(layer[tooltip].x,mouse.stagex); copy(layer[tooltip].y,mouse.stagey); );"
    />


    Now, every time I move the mouse out of the hotspot, the getHotspot function will be executed but the tooltip won't disappear anymore. But when I delete "onout" function in hotspot, the tooltip will work perfectly(disappeared when I move out of the hotspot).


    Can anyone help me to solve this problem, please?

Jetzt mitmachen!

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