Intro Image wont auto hide

  • I am using this code (found on the forum) for my intro image, it works and closes on click but does not close after 5 seconds if someone can see whats wrong with the code its driving me nuts!


    <plugin name="introimage" keep="true" url="%SWFPATH%/skin/introimage.png" align="center" onclick="hideintroimage();" onloaded="autohideintroimage();"/>
    <action name="hideintroimage">
    if(plugin[introimage].enabled, set(plugin[introimage].enabled,false);tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage)););
    </action>
    <action name="autohideintroimage">
    if(plugin[data].introImageHasBeenPlayed==false, set(plugin[introimage].alpha,0); tween(plugin[introimage].alpha,1.0,WAIT);
    delayedcall(5, hideintroimage() );
    set(plugin[data].introImageHasBeenPlayed,true););
    </action>


    I think im missing introImageHasBeenPlayed but i have no idea what that should be


    this code is in my skin btw

    Einmal editiert, zuletzt von jeffd (7. Juli 2013 um 09:10)

  • Hi,
    so try

    Serge

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!