This post has been edited 1 times, last edit by "xinttr" (Jul 8th 2013, 11:17am)
|
|
Source code |
1 |
loadcene(scene2,view.hlookat=get(hotspot[get(name)].hlookat)& view.vlookat=get(hotspot[get(name)].vlookat), MERGE, BLEND(2));" |
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<style name="hotspots"
width="27" height="27" keep="false" enabled="true"
crop="0|0|27|27" onovercrop="0|27|27|27" ondowncrop="0|54|27|27" scale="1" alpha="1.0" zoom="false"
onhover="showtext('get(hotspot[get(name)].tooltip)');"
onover="txtadd(hs_onclick, 'lookto(get(hotspot[get(name)].ath),0,50,tween(easeInSine,2),true,false);wait(0.1);if(device.flash,
loadscene(get(linkedscene),view.hlookat=','get(hotspot[get(name)].hlookat)','&view.vlookat=','get(hotspot[get(name)].vlookat)',',MERGE,ZOOMBLEND(2,3)); , loadscene(get(linkedscene),view.hlookat=','get(hotspot(get(name)).hlookat)','&view.vlookat=get(hotspot(get(name)).vlookat),MERGE,BLEND(2)););');
set(onclick, 'get(hs_onclick)');"
onout="action(autoRotateReturn);hide_tooltip();"
/>
|
|
|
Source code |
1 2 3 4 5 6 |
<hotspot name="hs_test" style="hotspots"
url="%SWFPATH%/hotspots/left.png" linkedscene="villa_elena_k"
ath="0" atv="0"
hlookat="90" vlookat="0"
tooltip="Go to the pano with predefined view parameters"
/>
|
This post has been edited 2 times, last edit by "Alexey Tkachenko" (Jul 16th 2013, 10:02am)
so that it doesn't matter whether it's Flash or html5...|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<style name="hotspots"
width="27" height="27" keep="false" enabled="true"
crop="0|0|27|27" onovercrop="0|27|27|27" ondowncrop="0|54|27|27" scale="1" alpha="1.0" zoom="false"
onhover="showtext('get(hotspot[get(name)].tooltip)');"
onloaded="txtadd(hs_onclick, 'lookto(get(hotspot[get(name)].ath),0,50,tween(easeInSine,2),true,false);wait(0.1);if(device.flash,
loadscene(get(linkedscene),view.hlookat=','get(hotspot[get(name)].hlookat)','&view.vlookat=','get(hotspot[get(name)].vlookat)',',MERGE,ZOOMBLEND(2,3)); , loadscene(get(linkedscene),view.hlookat=','get(hotspot(get(name)).hlookat)','&view.vlookat=get(hotspot(get(name)).vlookat),MERGE,BLEND(2)););');
set(onclick, 'get(hs_onclick)');"
onout="action(autoRotateReturn);hide_tooltip();"
/>
|
This post has been edited 1 times, last edit by "Alexey Tkachenko" (Jul 16th 2013, 10:01am)
|
|
Source code |
1 2 3 4 5 6 7 8 |
<hotspot (or style) ... ... hlookat="..." vlookat="..." ... onclick="...; loadscene(...); lookat(get(hlookat),get(vlookat)); ... "; ... /> |
Hi,
I would recommend a way like this:
|
|
Source code |
1 2 3 4 5 6 7 |
<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="true" onclick="if(linkedscene, tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); lookat(get(hlookat),get(vlookat)); skin_updatescroll(); );" onhover="if(skin_settings.tooltips_hotspots, if(linkedscene, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS)) );" onover="autoRotateSave" onout="autoRotateReturn" /> |
Hi, Klaus.try:
onclick="if(linkedscene, tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); if(hlookat !== null, lookat(get(hlookat),get(vlookat)); ); skin_updatescroll(); );"
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
Source code |
1 2 3 4 |
<action name="Move"> loadscene(%1, null,MERGE,ZOOMBLEND(0.5)); lookat(%2,%3,%4); <!-- hlookat,vlookat,fov --> </action> |
: https://pame.virtualtuur.comThank you so much!Hi,
this is quite simple.
![]()
Source code
1 2 loadscene(%1, null,MERGE,ZOOMBLEND(0.5)); lookat(%2,%3,%4);
I made you a quick example.
http://virtualtuur.com/krpano/return/1/
xml: http://virtualtuur.com/krpano/return/1/tour.xml
Can be smarter, more extended etc of course..
Hope it helps
tuur![]()