Hello there!, I hope some of you can lend me a hand with this:
I just want to make textfield layers move to the right slightly with the onover event and go back to where they were on the onout event, theoretically this should be a piece of cake but I've struggled time and again with this situation in which krpano doesn't recognize the onout event for some reason (just move the mouse rapidly over the layers and you'll see). I tried with the onhover event but to no avail.
Here's the example and the code.
Code
<krpano version="1.16.3" onstart="startup_main(); " logkey="true" showerrors="false">
<action name="startup_main">
loadscene(intro);
delayedcall(.4,
tween(layer[back_intro].height,101%,.8,easeoutquad,
tween(layer[tour1].alpha,1,0.5,easeoutquad,set(layer[tour1].enabled,true););
delayedcall(.1,tween(layer[tour2].alpha,1,0.5,easeoutquad,set(layer[tour2].enabled,true);););
delayedcall(.2,tween(layer[tour3].alpha,1,0.5,easeoutquad,set(layer[tour3].enabled,true);););
delayedcall(.3,tween(layer[tour4].alpha,1,0.5,easeoutquad,set(layer[tour4].enabled,true); tween(layer[logo_small].alpha,1,2.5);););
);
);
</action>
<action name="start_show">
</action>
<layer name="back_intro"
type="container"
align="center"
maskchildren="true"
width="800"
height="0%"
bgalpha=".3"
keep="true"
zorder="0">
<layer name="logo_small"
url="img/intro_iphone.png"
keep="true"
scale=".45"
align="center"
edge="bottom"
Y="-80"
zorder="2"
alpha="0"
enabled="false"
/>
<layer name="tour1"
style="style_buttons_intro"
edge="bottom"
html="[h1]PARADISE LA PAZ[/h1]"
Y="-80"
onhover=""
/>
<layer name="tour2"
style="style_buttons_intro"
edge="bottom"
html="[h1]PARADISE CULIACÁN[/h1]"
Y="-10"
onhover=""
/>
<layer name="tour3"
style="style_buttons_intro"
edge="top"
html="[h1]PARADISE GUADALAJARA[/h1]"
Y="10"
/>
<layer name="tour4"
style="style_buttons_intro"
edge="top"
html="[h1]PARADISE GARDEN[/h1]"
y="80"
/>
</layer>
<data name="css_buttons_intro">
h1 { font-size:16px; color:#FFFFFF; font-family:Helvetica; font-style:normal; line-height:1em; text-align:left; letter-spacing:2; margin-left:40px; margin-bottom:0;}
p { font-size:15px; color:#FFFFFF; font-family:Helvetica; font-style:normal; leading:4px; text-align:right; letter-spacing:1px padding-top:0; padding-bottom:0; margin-top:20; margin-bottom:0;}
</data>
<style name="style_buttons_intro"
url="../plugins/textfield.swf"
align="center"
enabled="false"
width="350"
height="50"
oy="180%"
alpha="0"
padding="10"
background="true"
backgroundcolor="0xbb5e20"
backgroundalpha="0.8"
vcenter="true"
css="data:css_buttons_intro"
keep="true"
zorder="2"
onover="tween(layer[get(name)].x,10);"
onout="tween(layer[get(name)].x,0);"/>
<scene name="intro" title="Vista de la alberca" onstart="delayedcall(2,tween(layer[button_sun_moon_back].scale,1,1); tween(layer[button_sun_moon_back].alpha,1,1);); " thumburl="../panos/alberca.tiles/thumb.jpg" lat="24.104737502677636" lng="-110.36953747272491" zoom="16">
<view hlookat="-75" vlookat="0" fovtype="VFOV" fov="100" fovmin="30" fovmax="120" limitview="auto" />
<preview url="../panos/nocturna.tiles/preview.jpg" />
</scene>
</krpano>
Alles anzeigen
I really hope someone can crack this one open.
Alberto.