|
|
Quellcode |
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 |
<action name="textoIN"> copy(layer[boxtexto].scale,hotspot[zoombild].scale); copy(layer[boxtexto].height,hotspot[zoombild].height); copy(layer[boxtexto].width,hotspot[zoombild].width); copy(layer[boxtexto].x,hotspot[zoombild].x); copy(layer[boxtexto].y,hotspot[zoombild].y); tween(layer[boxtexto].alpha,1.0,0.5,default, set(layer[boxtexto].visible,true)); set(layer[boxtexto].align,center); set(layer[boxtexto].enabled,true);set(layer[boxtexto].border,left); set(layer[boxtexto].state,mostrarT); </action> <action name="textoOUT"> tween(layer[a1].x,100%); tween(layer[boxtexto].alpha,0.0,0.5,default, set(layer[boxtexto].visible,false)); set(layer[boxtexto].align,right); set(layer[boxtexto].visible,false); set(layer[boxtexto].state,ocultarT); </action> <action name="openTexto"> tween(layer[a1].x,20%); set(layer[a1].state,mostrar); </action> <action name="closedTexto"> tween(layer[a1].x,90%); set(layer[a1].state,ocultar); </action> <layer name="boxtexto" type="container" keep="true" width="1" enabled="false" align="center" state="mostrarT" height="1" y="0" x="0" bgcolor="0x000000" bgalpha="0.7" alpha="1.0" visible="true" zorder="4" > <layer name="texto2" type="container" align="left" width="80%" height="120.1%" y="0" x="-109.3%" bgcolor="0xffffff" bgalpha="0.0" maskchildren="true" alpha="1.0" visible="true"zorder="4" > <layer name="a1" type="container" align="left" width="80%" enabled="true" height="101%" y="0" x="100%" bgcolor="0x7807b9" bgalpha="1.0" alpha="1.0" visible="true"zorder="6" bgcapture="true" state="ocultar" onclick="if(state == ocultar, openTexto(),closedTexto());" /> </layer> </layer> |
|
|
Quellcode |
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 |
<action name="hotspot_animado"> inc(frame,1,get(lastframe),0); mul(ypos,frame,frameheight); txtadd(crop,'1|',get(ypos),'|',get(framewidth),'|',get(frameheight)); delayedcall(0.1, if(loaded, hotspot_animate() ) ); </action> <style name="hotspot_aniado" url="ºSEDIR%/image/ver3_ANIM.png" crop="0|0|45|45" ath="30.8" atv="10.3" scale="1" alpha="1.0" zorder="1" framewidth="45" frameheight="45" frame="0" lastframe="22" onloaded="hotspot_animate();" /> <style name="zoomspot" url="ºSEDIR%/image/ver3.PNG" ath="30.8" atv="10.3" visible="true" zoom="false" distorted="false" scale="0.18" alpha="1.0" zorder="1" /> <hotspot name="spot_zoombild" style="hotspot_aniado" ath="0" atv="0" scale="0.0" zorder="2" enabled="true" onclick="flyin( zoombild ); tween(alpha,0.5); set(enabled,false);if(state == ocultarT, textoOUT(),textoIN());" onhover="showtext(VER[br][font size='10']( Enrique IV )[/font],STYLE10);" /> <hotspot name="zoombild" url="ºSEDIR%/image/pic_barco.jpg" ath="30.8" atv="10.3" distorted="true" zorder2="1" rx="0" ry="0" rz="0" width="50" height="50" enabled="false" visible="true" alpha="1.0" flying="0.0" handcursor="false" scale="0.1" onclick="" /> |
|
|
Quellcode |
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 |
<action name="calc_flyout_size"> div(screen_sideaspect, stagewidth, stageheight); div(hotspot_sideaspect, hotspot[%1].width, hotspot[%1].height); if(screen_sideaspect LT hotspot_sideaspect, <!-- alinear al ancho de la pantalla --> div(hotspot[%1].width,stagewidth,stageheight); mul(hotspot[%1].width); set(hotspot[%1].width,70%); set(hotspot[%1].height,prop);, <!-- alinear a la altura de la pantalla --> set(hotspot[%1].width,prop); set(hotspot[%1].height,40%); set(hotspot[%1].zorder,5); tween(hotspot[%1].x,10%,0.3); tween(hotspot[%1].x,21%,0.8); ); </action> <!--Volar al hotspot = mostrar el hotspot fijo en pantalla --> <action name="flyin"> wait(load); headClosed(); wait(0.1); tween(layer[head].y,-30%); tween(layer[BotonIMM].y,-30%); tween(hotspot[%1].align, right); if(hotspot[%1].flying == 0.0, hotspot[%1].resetsize(); calc_flyout_size(%1); ); if(hotspot[%1].oldscale === null, copy(hotspot[%1].oldscale, hotspot[%1].scale) ); if(hotspot[%1].oldrx === null, copy(hotspot[%1].oldrx, hotspot[%1].rx) ); if(hotspot[%1].oldry === null, copy(hotspot[%1].oldry, hotspot[%1].ry) ); if(hotspot[%1].oldrz === null, copy(hotspot[%1].oldrz, hotspot[%1].rz) ); set(hotspot[%1].enabled,true); set(hotspot[%1].visible,true); set(hotspot[%1].zorder,5); tween(hotspot[%1].alpha, 1.0); tween(hotspot[%1].flying, 1.0); tween(hotspot[%1].scale, 1.2); tween(hotspot[%1].rx, 0.0); tween(hotspot[%1].ry, 0.0); tween(hotspot[%1].rz, 0.0); tween(plugin[blured].blurradius,20); lookatHospot(); </action> <!-- ir al hospot = muestra el Hospot fijo en al pantalla --> <action name="flyout"> textoout(); wait(0.1); set(hotspot[%1].enabled,false); tween(hotspot[%1].alpha, 0.2, 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)); tween(plugin[blured].blurradius,0); tween(layer[head].y,0%); tween(layer[BotonIMM].y,-0.2%); tween(layer[botosnSabermas].y,0%); lookatOut(); wait(0.4); tween(hotspot[%1].x,get(hotspot[%1].oldx)); </action> |
Su ejemplo no funciona debido a un error de licencia.
Me inventé una muestra del problema, espero su ayuda solo funciona en Chrome en Firefox da licencia error.Your example does not work due to License Error.
confirm: fatal error "license error" occurs... if anyone has trouble seeing the link let me know. thanks
please use chrome , thanks regrdsCitado de "danimorgo"
... si alguien tiene problemas para ver el enlace que me haga saber. gracias
confirma: "error de licencia" fatal error
que no estoy seguro, pero tal vez la versión de demostración sólo es aplicable para el uso local
Serge
thanks jordi for your interest, if you see up, have link with test and error.By the way the demo version you can use it online or offline, no matter...
It will just show a krpano watermark until you have the license...