Brain hurts... losing plugins on page reload or direct link

  • Hi,

    This is one I haven't come across it before.

    I have a scene of an helicopter sat in it's original position in a museum.


    On the top right there's a png plugin titled 'View Simulated Version' that when clicked loads an edited version of the scene, changes the plugin to show 'View Regular Version' , automatically starts playing a background sound of rotors and adds a toggle sound icon to the bottom bar for those that can take no more *wink*


    Here's the next scene.


    All works fine If I navigate to each of these scenes using either the thumbnails bar, arrow hotspots or a map marker. Problem is I need to send out some url links that go directly to these scenes and are something like http://www.mywebsite.com/tour/#/scene_hueysim/

    If I copy and past that url into the browser address bar and hit enter then the scene loads, the sound starts but I lose those additional plugins as shown below. No 'View Regular Version' and no toggle sound at the bottom but all the other plugins are being displayed fine.


    What would be preventing the pluginsfrom loading as they should do just because the page is linked to directly? The same thing happens when the same page is reloaded/ refreshed, the plugins disappear *cry*

    Here's the code for the simulated scene and nothing complicated.

    Any help is greatly appreciated so I can finish this tour off and make it live.

    Thanks

    Andrew


  • Just done some more testing and realised that both plugins display correctly if the plugin code below is added to the vtourskin.xml file. It doesn't dissapear afrer refreshing the page or direct linking.

    If this code added directly into the scene code which is where it needs to be as it's just for those particular scene's then I lose them on direct linking or a refreshed page.

    Very strange indeed *blink*

  • Should be easy to troubleshoot with a link to the project.
    plugins needed global should be outside the scenes with keep=true

    plugins scene specific should be inside their respective scene.
    Perhaps you are not in the scene you think you are in.

    Code
    <scene onstart="showlog(true);trace(xml.scene);" ..
  • Yes, Sacha spotted it *smile*

    It was some code in swfaddress.xml that was buggering things up and probably the only file I didn't look in. In case anyone else gets the same issue here's the code change from sacha as there's not much support on the go for the swfaddress plugin. The damn thing was even effecting my text scroll windows with custom png backgrounds that I'd previously given up on as it was just displaying black when the png should be. All works now but it's amazing how many hours you can spend on troubleshooting.


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!