Hi,
klaus when you show an example can you keep the editor plugin installed so we can take a closer look at the xml
I have posted the code above,
but just add the editor by yourself

e.g.
http://krpano.com/examples/108b8/krpano.…gins/editor.swf
I haven't made a new example, I have just taken the nadir logo example and added a new "onloaded" event by passing it as parameter in the url,
have a look at the full url of the example:
.../krpano.swf?xml=examples/nadir-logo/nadir-logo.xml
&hotspot[nadirlogo].onloaded=tween(...
the same can be used for the plugin editor, just add
&plugin[editor].url=plugins/editor.swf
Hi everybody,
first sorry about my english...
and to Klaus: excellent job,
but for me as a "NOT-Coder" without a good documentation it is very hard to find the code for the
thing I will do, you understand? I know, documentation is a hard job and the last thing to do...
sorry, yes, I know the documentation...

this was done in this example:
|
Source code
|
1
|
onloaded="tween(rx,1000000,10000,linear);tween(ry,1000000,10000,linear);"
|
in the onloaded event two tweens are started,
these tweens are changing the rx and ry values from 0 to 1000000 in a time of 10000 seconds with linear movement,
this was done to simulate a continues rotation,
|
Source code
|
1
2
|
onover="stoptween(rx,ry);mod(rx,rx,360);mod(ry,ry,360);tween(rx,0);tween(ry,0);delayedcall(0.5,set(onoutready,true));"
onoutready="false"
|
when mouse comes over the image, the tweens were stopped,
then the rx and ry value is cutted down to the range from 0 to 360 with the modulate operator,
this was made to be able to tween back to 0/0 in a short way,
because while tweening back to 0/0 it would be possible that the mouses leaves the image
and the onout event gets be called, in the onout event the rotation will start again,
so the onout shouldn't start before the tweens were done,
I used a custom variable (onoutready) to make sure that it doesn't start rotation until the tweens were finished,
the default tween time is 0.5 second, so I set the "onoutready" value to "true" after this time,
|
Source code
|
1
|
onout="if(onoutready, call(onloaded);set(onoutready,false); );"
|
when the mouse leaves the image, it starts rotating again,
to avoid duplicate codes, the "onloaded" event is called and the "onoutready" flag is set back to "false",
I know that's very trick but this open ways to many other possiblites
Now my problem:
I used the code of Klaus' example for this floating objekt in the nadir, but the problem is:
how to turn the object into the correct hlook?! so that it is possible to read the word on the pic?
you know what I mean?
the object has to turn horizontally to the monitor on every "onover"
example:
www.planorbis.de/tmp/test
thanks Mario
sorry, but I find a new problem: when I click on a video the turning hotspot is no more visible, so if you try this,
not click on a video; I am trying to solve this
do you want the video to be at the same place like in the real pano?
in this case you don't need "flying" hotspots, just move/scale/rotate(tween) the video to the correct position in the video,
(find it with the editor plugin)
best regards,
Klaus