Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<hotspot name="pic_Chambre" keep="false" visible="true" enabled="true" usecontentsize="false" handcursor="true" capture="true" children="true" fillcolor ="0xffffff" fillalpha ="0.00" borderwidth ="1.0" bordercolor ="0xffffff" borderalpha ="0.5" fillcolorhover="0xffffff" fillalphahover="" borderwidthhover="" bordercolorhover="0xffffff" borderalphahover="" .................................. onclick="showpic();" devices="desktop" editor="" pic="Chambre" > <point ath=" 93.8776" atv=" -3.1168" /> ........................... </hotspot> <hotspot name="noir" url="images/noir.png" visible="false" edge="center" ath="0" atv="0" alpha="0.0" keep="true" scale="100" zorder="1" devices="desktop|tablet" /> <action name="showpic"> <!-- creates a new hotspot and fly it out --> if(hotspot[get(pic)] === null, txtadd(picfilename,'%CURRENTXML%/images/pic_',get(pic),'.jpg'); ............................. set(hotspot[noir].visible, true); tween(hotspot[noir].alpha, 0.7, 0.6); </action> <action name="flyout"> set(hotspot[%1].enabled,false); tween(hotspot[%1].alpha, 0.0, 0.5, default, set(hotspot[%1].visible,false); ); ..................................... tween(hotspot[noir].alpha, 0.0, 1); delayedcall(1, set(hotspot[noir].visible, false)); </action> |
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
<!-- video player --> <plugin name="diapo_ho1" url="videoplayer.swf" keep="true" alturl="videoplayer.js" videourl="patisserie2.f4v" visible="false" scale="1.0" alpha="0.0" posterurl="" align="center" x="0" y="0" pausedonstart="true" loop="false" volume="1.0" buffertime="4" updateeveryframe="true" onvideoready="" onvideopaused="" onvideocomplete="stop(); hide_diapo_ho1();" onunsupported="" devices="desktop" zorder="28" onhover="if(ispaused, showtext(click to play, STYLE1), showtext(click to pause, STYLE1));" onclick="togglepause()" /> <!-- Hotspot video --> <hotspot name="invisible1" url="hotspots/barre.png" visible="true" keep="false" ath="0" atv="0" scale="100" alpha="0.0" onover="set(hotspot[invisible1].visible, false);set(freezeview, true); set(plugin[diapo_ho1].visible, true); tween(plugin[diapo_ho1].alpha, 1.0, 1.0); delayedcall(1, plugin[diapo_ho1].resume() ); noir_croix();" <!-- black mask action --> devices="desktop|tablet" /> <!-- black mask hotspot --> <hotspot name="noir" url="images/noir.png" visible="false" edge="center" ath="0" atv="0" alpha="0.0" keep="false" scale="100" selectable="false" zorder="1" devices="desktop|tablet" /> <!-- black mask action --> <action name="noir_croix"> tween(plugin[txt_presentation_deux].alpha,0, 0.7,,,set(plugin[%1].visible,false)); set(hotspot[noir].visible, true); tween(hotspot[noir].alpha, 0.7, 1); set(plugin[croix].visible, true); tween(plugin[croix].alpha, 1.0, 1); </action> <!-- flyout action with black mask visible false --> <action name="flyout"> set(hotspot[%1].enabled,false); tween(hotspot[%1].alpha, 0.0, 0.5, default, set(hotspot[%1].visible,false); ); tween(hotspot[%1].flying, 0.0); tween(hotspot[%1].scale, get(hotspot[%1].oldscale)); tween(hotspot[%1].rx, get(hotspot[%1].oldrx)); tween(hotspot[%1].ry, get(hotspot[%1].oldry)); tween(hotspot[%1].rz, get(hotspot[%1].oldrz));s set(plugin[bton_mute].visible,false); set(plugin[bton_son].visible,true); set(hotspot[pic_glaces].visible, true); tween(hotspot[noir].alpha, 0.0, 1); delayedcall(1, set(hotspot[noir].visible, false) ); stopsound(glaces); </action> |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 |
<hotspot name="noir" url="images/noir.png" visible="false" ath="0" atv="0" alpha="0.0" keep="false" scale="100" selectable="false" zorder="1" preload="true" devices="desktop" /> |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<action name="showpic"> <!-- creates a new hotspot and fly it out --> tween(plugin[txt_presentation_deux].alpha,0, 0.5,,,set(plugin[%1].visible,false)); set(hotspot[noir].visible, true); tween(hotspot[noir].alpha, 0.7, 1); if(hotspot[get(pic)] === null, txtadd(picfilename,'%CURRENTXML%/images/pic_',get(pic),'.jpg'); addhotspot(get(pic)); getcenter(hsath,hsatv); copy(hotspot[get(pic)].ath, hsath); copy(hotspot[get(pic)].atv, hsatv); set(hotspot[get(pic)].visible,false); set(hotspot[get(pic)].distorted,true); set(hotspot[get(pic)].zorder,2); set(hotspot[get(pic)].scale,0.1); set(hotspot[get(pic)].alpha,0.0); <!--set(hotspot[get(pic)].effect,glow(0xFFFFFF,1.0,30,10000);dropshadow(10,45,0x000000,10,0.3););--> set(hotspot[get(pic)].onloaded, flyin(get(name)) ); set(hotspot[get(pic)].onclick, flyout(get(name)) ); copy(hotspot[get(pic)].url,picfilename); tween(plugin[txt_presentation_deux].alpha,0, 0.5,,,set(plugin[%1].visible,false)); , flyin(get(pic)); ); </action> |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<action name="flyout"> set(hotspot[%1].enabled,false); tween(hotspot[%1].alpha, 0.0, 0.5, default, set(hotspot[%1].visible,false); ); tween(hotspot[%1].flying, 0.0); tween(hotspot[%1].scale, get(hotspot[%1].oldscale)); tween(hotspot[%1].rx, get(hotspot[%1].oldrx)); tween(hotspot[%1].ry, get(hotspot[%1].oldry)); tween(hotspot[%1].rz, get(hotspot[%1].oldrz)); set(plugin[bton_mute].visible,false); set(plugin[bton_son].visible,true); set(hotspot[pic_glaces].visible, true); set(hotspot[noir].visible, false); set(hotspot[noir].alpha, 0.0); stopsound(glaces); </action> |
![]() |
Source code |
1 |
tween(image.layer.alpha, 0.5); |
![]() |
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<hotspot name="flyout_bg" url="black.png" keep="true" devices="flash" distorted="true" flying="1" zorder="0" visible="false" alpha="0" align="center" edge="center"/> <action name="show_flyout_bg"> set(hotspot[flyout_bg].width, stagewidth); set(hotspot[flyout_bg].height, stageheight); set(hotspot[flyout_bg].visible, true); tween(hotspot[flyout_bg].alpha, 0.7); </action> <action name="hide_flyout_bg"> set(hotspot[flyout_bg].visible, false); set(hotspot[flyout_bg].alpha, 0); </action> |
Hi Sachagriffin,
Thanks for details. However i mean hotspot. If it's plugin, the picture displayed through "flyin" action will be behind the black mask, this is not what i want. Did you have time to check my example link upon?
Thanks again.
Steph.