• Doh! Sure enough!

    Good eye, Alexey. Big thanks for applying it :)

    Next lesson learned, in order to get one tooltip per hotspot in an HTML5 browser and one tooltip per hotspot in a Flash browser (not two), you need the following bits:

    plus the call of the tooltip style (my typo above)

    and the showttext() function ignored via settings like tooltips_hotspots="false"

    Can anyone offer any pointers on a template that inserts linked scene titles into the hover text field?

  • Dear Alexy,

    Sorry for my delayed gratitude. I've just now been able to return to this project, and to apply your solution, which works :)

    Others may view the full working solution for Flash + HTML5 hover text on hotspots here:

    http://djunapix.com/photos/NIhiwatuVirtualTour2/tour.html
    http://djunapix.com/photos/NIhiwatuVirtualTour2/tour.xml
    http://djunapix.com/photos/NIhiwat…2/vtourskin.xml

    Now how about the same solution for thumbnails??

    Many thanks!!
    Djuna

  • Well, to do that you'll have to decide which way you go.

    1) Replace the Flash Showtext() for thumbs by the universal thumb Tooltip for both Flash and Html5 (it's better way, as I see it).

    2) Or, alternatively, have Showtext thumbs tooltips for Flash and Tooltips using Textfield for html5.

    I'd take the first way.

    The basic Vtourskin.xml has the 'skin_addthumbs' action. Inside it, there's a line

    Code
    set(layer[get(thumbname)].onhover, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS); );

    Replace it by:


    Code
    set(layer[get(thumbname)].onover, show_thumb_tooltips(); );set(layer[get(thumbname)].onout, hide_thumb_tooltips(); );

    And add the "show_thumb_tooltips" action:

    Code
    <action name="show_thumb_tooltips" > copy(layer[tooltip].html, scene[get(linkedscene)].title);
    	               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); );</action>


    and "hide_thumb_tooltip" action:

    Code
    <action name="hide_thumb_tooltip" >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); );</action>

    Give it a try. It should work, I suppose. *smile*

Jetzt mitmachen!

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