I'd like to create 02 buttons.
The code I'm using is:
Code
<plugin name="planetbutton" url="images/littleplanet.png" ath="0" atv="0" onclick="action(littleplanet);"
align="bottom left"
edge="center"
scale="0.8"
x="200" y="80"
ox="0" oy="0"
onhover="tween(scale,1,0.1); showtext(Ver Little Planet Interativo, texto)"
onout="tween(scale,0.8,0.1)" />
<action name="littleplanet">
set(display.flash10,off);
tween(view.architectural, 0.0, distance(1.0, 0.25), easeoutquad);
tween(view.fisheye, 0.0 ,distance(1.0, 0.10), easeoutquad,
set(view.stereographic,true);
tween(view.fisheye, 1.0, distance(1.0, 0.75));
tween(view.fov, 130, distance(179, 0.75), easeoutquad, set(view.fovmax,150););
tween(view.vlookat, 90, distance(179, 0.75), easeoutquad);
set(autorotate.enabled,false);
);
</action>
Display More
Now for the normal button (to come back to the normal view) the plugin is:
Code
<plugin name="ver_normal" url="images/normal.png" ath="0" atv="0" onclick="action(rectview);"
align="bottom left"
edge="center"
scale="0.8"
x="285" y="80"
ox="0" oy="0"
onhover="tween(scale,1,0.1); showtext(Voltar à visualização 360°, texto)"
onout="tween(scale,0.8,0.1)" />
Now my question is: I'd like this action "rectview" to set this values: <view hlookat="0" vlookat="0" fovtype="MFOV" fov="110" maxpixelzoom="1.5" fovmax="130"/>
Can you help me?