You are not logged in.

fellipe

Trainee

  • "fellipe" started this thread

Posts: 67

Location: Brazil

Occupation: Photographer

  • Send private message

1

Sunday, June 13th 2010, 6:33pm

Intro image only hide when mouse click?

I'm using the example xml but I'd like only to hide the image when mouse click not after 2 secs.
Here's the code I'm using:


<events onloadcomplete="delayedcall(2, hideintroimage() ); set(events.onloadcomplete,null);" />


<plugin name="introimage"
url="introimage.png"
align="center"
onloaded="set(alpha,0); tween(alpha,1.0);"
onclick="hideintroimage();"
/>

<action name="hideintroimage">
if(plugin[introimage].enabled,
set(plugin[introimage].enabled,false);
tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage));
);
</action>

fellipe

Trainee

  • "fellipe" started this thread

Posts: 67

Location: Brazil

Occupation: Photographer

  • Send private message

2

Sunday, June 13th 2010, 6:38pm

hmm got :)

Just removed the
<events onloadcomplete="delayedcall(2, hideintroimage() ); set(events.onloadcomplete,null);" />

I just want to say that I ahve never played with any kind of computer program languages but I'm finding it very logical. I'm loving the new possibilities of krpano :) long life!

Similar threads