Can I allow the autorotate to start only when the panorama is loaded?
autorotate after load complete?
-
-
Do you want the visitor to control the autorotate aswell?
Do you have a button for that?Tuur
-
no need of a button Tuur.
Just an "auto" autorotate but I"d like it to start after the panorama is loaded. -
well, you can do something like this..
Code
Display More<action name="load1"> loadpano(1.xml,null,MERGE,BLEND(1)); wait(load); wait(blend); wait(2); set(autorotate.enabled, true); </action>
but you can do that set(autorotate.enabled, true); also do in the moveto action or where ever..maybe onloaded
or make an action autorotate start..
Cheers
Tuur
-
Sorry Tuur, I did not understand :( I'm a newbie xml user yet
I'm using this code:
<autorotate enabled="true"
waittime="2.0"
accel="1.5"
speed="3"
horizon="20"
tofov="120"
/>What should I do?
-
put your whole xml please
Tuur
-
Felipe use the same code, set autorotate to false. then use onloadcomplete="wait(2); set(autorotate.enabled,true)"
-
that's what i mean...
-
-
Thanks a lot!
I'm a complete newbie and this is exactly what I was looking for. Got everything managed so far (more or less) with the help offered in this forum (great job and great people here!).
There was only one small problem left. When I inserted auto-rotation, it started before the pano was loaded completely.
Inserted your code and now auto-rotation starts when loading is complete
I really appreciate the help given. Dealing with xml-files and Java-script is really hard for someone only having knowledge in html and php...
-
Hi Klaus, can I read some "load_complete" status via javascript?
I don't want to produce again 6500+ panos and introduce onloadcomplete event.
If not, as I have "files_loaded" variable defined and used in the already produced .swf's
can I read that via javascript?
thanks,
Dorin
-
Hi,
you could add a javascript callback during the flash embedding in the html,
e.g.Codevar swf = createswf("krpano.swf", "krpanoSWFObject", "100%", "100%"); swf.addVariable("xml", "krpano.xml"); swf.addVariable("events.onloadcomplete", "js( jsloadcomplete() );"); swf.embed("krpanoDIV"); function jsloadcomplete() { ... }
or get/read out any variable by using the javascript get interface,
e.g. when you have a 'files_loaded' variable defined in the xml:Codevar krpano = document.getElementById("krpanoSWFObject"); if (krpano && krpano.get) { var files_loaded = krpano.get("files_loaded"); }
best regards,
Klaus -
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!