Hi Daniel,
Code Alles anzeigen<krpano version="1.0.8" onstart="" > <!-- use only a grid preview pano to save download space ;-) --> <preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" /> <style name="buttonstyle" url="%SWFPATH%/plugins/textfield.swf" children="false" width="120" height="22" css="p{color:#000000; font-family:Arial; font-weight:bold; font-size:14; margin-left:5; margin-right:5; text-align:center; }" backgroundcolor="0xFFFFFF" roundedge="5" shadow="1" borderwidth="0" glow="4" glowcolor="0xFFFFFF" visible="false" onover="tween(alpha,0.7,distance(0.3,0.2));" onout="tween(alpha,1.0,distance(0.3,0.2));" onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);" /> <plugin name="p1" keep="true" style="buttonstyle" html="[p]click me[/p]" align="bottom" x="0" y="75" onclick="tween(x,0)" /> <plugin name="left" keep="true" style="buttonstyle" width="30" html="[p]left[/p]" align="bottom" x="-70" y="25" onclick="move_by(p1,dec,100,-315);" /> <plugin name="right" keep="true" style="buttonstyle" width="30" html="[p]right[/p]" align="bottom" x="70" y="25" onclick="move_x_by(p1,inc,100,315);" /> <action name="move_x_by"> copy(temp,plugin[%1].x); %2(temp, %3,%4,%4); tween(plugin[%1].x, get(temp)); </action> </krpano>
the action move_x_by(arg1,arg2,arg3,arg4); needs:
arg1 = name of the plugin to be moved
arg2 = inc or dec (increase/decrease)
arg3 = value to increase/decrease by
arg4 = max and min value for the inc or dec ( inc(var,byvalue*,max*,min*) )Hope this help...
SAlut.
relly great code!
Is it possible for arg4 to consider the resolution of user´s device?
thnx