Html5 version working but Flash version is not

  • Like the title says, when I switch the html:"prefer" to html:"never" to force using the flash version, it doesn't work anymore.

    It appears to load everything correctly. However, the hotspots don't load and panning doesn't work, so I'm stuck looking at the initial view. Oddly enough, zoom does work.

    I've tested this in Chrome in windows vista and OS X 10.10 and in Safari and FireFox in OS X 10.10.

    I have the `showlog` active and there are no errors being reported, so I know this is a vague post, but I'd imagine switching between flash/html5 would be seamless. Is there anything that would need to be different to make flash work?

    I'm using 1.18. And this is being hosted on a live server. I don't want to share the link at this time, but I can paste in my xml code if that would be helpful.

    I'm also using `multires` and I'm wondering if for some reason that's html5 only, but I can't imagine why. I looked at a number of demos and couldn't notice anything I'm doing wrong different.

    Edit:
    Just to let you know the flash player is loading, the trace output is as follows:
    INFO: krpano 1.18.1 ...
    INFO: Flashplayer MAC 16.0.0.235 PlugIn
    ...

    Here's a link to the working site (html5).
    http://longhaulpro.org/stories/dogmountain/


    Here's a link to the flash version
    http://longhaulpro.org/stories/dogmountain/?html5=never


    And the xml
    http://longhaulpro.org/dogmountain/vtour-xml.php

    2 Mal editiert, zuletzt von castelbu (15. Dezember 2014 um 15:28)

  • Hi,

    the reason for the missing hotspots in Flash is this here:

    Code
    <style name="infolink" capture="false" zorder="1" onclick="js( LoadInfoLink(get(infoname)) );" alturl="vtour/hotspots/zoomicon.png" zoom="false" scale="1"/>

    There you're using 'alturl' to define the hotspot image url - and 'alturl' is a HTML5-only setting for defining an alternative url for HTML5. Just use the normal 'url' setting and it will work.

    About the not possible controlling in Flash - this seems to be related to your custom JS code and elements - as you can see in the browser log there is a log on every click - and this comes from your code - that means your code captures the mouse events before they can reach the Flashplayer.

    Best regards,
    Klaus

  • Thank you, I definitely missed the alturl reference, good catch.

    Right on about the custom javascript too. We had some code in there giving us some h/v coordinate locations and forgot to remove a window.onmousedown function that was set to return false. Can you explain why soaking up this event in the html5 version does not break it, but it does in the flash version? Just curious now. Thanks.

Jetzt mitmachen!

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