I'm trying the new beta 8 version and having one button (ie a single graphic) toggle on/off. In the examples below the full-screen toggle works perfectly , but the autorotate toggle doesn't have any effect.
Any clues ?
Code
<action name="fullscreentoggle">
if(fullscreen == true, set(fullscreen,false); fullscreen == false, set(fullscreen,true); );"
</action>
<action name="rotatetoggle">
if(autorotate == true, set(autorotate,false); autorotate == false, set(autorotate,true); );"
</action>
<plugin name="rotate"
url="aa-rotate.jpg"
keep="true"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
alpha="0.70" blendmode="normal"
smoothing="true"
origin="leftbottom" edge="left"
x="116" y="20"
width="" height=""
scale="1"
onloaded=""
onover="set(blendmode,normal);set(alpha,1);"
onhover=""
onout="set(blendmode,normal);set(alpha,0.7);"
ondown=""
onup=""
onclick="action(rotatetoggle);"
ox=""
oy=""
rotate="0"
/>
<plugin name="fullscreen"
url="aa-fullscreen.jpg"
keep="true"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0"
alpha="0.70" blendmode="normal"
smoothing="true"
origin="leftbottom" edge="left"
x="10" y="20"
width="" height=""
scale="1"
onloaded=""
onover="set(blendmode,normal);set(alpha,1);"
onhover=""
onout="set(blendmode,normal);set(alpha,0.7);"
ondown=""
onup=""
onclick="action(fullscreentoggle);"
ox=""
oy=""
rotate="0"
/>
<autorotate enabled ="true"
waittime="3"
accel ="1"
speed ="2"
horizon ="0"
tofov ="NaN"
/>
Alles anzeigen