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>

  • 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!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!