flyin hotspot position

  • Hello I'm using flyin to show a hotspot but the hotspot is in the center of the screen and I need put it in different position like a plugin. Can i do it?

    Script :

    Code
    <layer name="bienvenidos" url="iconoinfo.jpg"  align="left" x="0" y="-70" keep="true"  zorder="-1" onclick="flyin(bienvenidos);"/>
    
    
    <hotspot name="bienvenidos" url="images/bienvenidos.png"		         ath="-200" atv="70.000"		         align="left"		         distorted="false"		         zorder="2"		         scale="1"		         rx="40" ry="-70" rz="0.7571"		         enabled="true"		         visible="true"		        		         alpha="0.0"		         flying="1.0"		         onclick="flyout(bienvenidos);"		         />
    <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,			div(hotspot[%1].width,stagewidth,stageheight);			mul(hotspot[%1].width,60);			txtadd(hotspot[%1].width,'%');			set(hotspot[%1].height,prop);		  ,			set(hotspot[%1].width,prop);			set(hotspot[%1].height,60%);		  );	</action>
    	<!-- fly in a hotspot = show hotspot fixed at screen -->	<action name="flyin">		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].zoom,true);
    
    
    		tween(hotspot[%1].alpha,  1.0);		tween(hotspot[%1].flying, 1.0);		tween(hotspot[%1].scale,  1);		tween(hotspot[%1].rx, 0.0);		tween(hotspot[%1].ry, 0.0);		tween(hotspot[%1].rz, 0.0);	</action>
    	<!-- fly the hotspot out/back -->	<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, 1.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));	</action>


    Thanks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!