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

    Edited once, last by jeffd (July 7, 2013 at 9:10 AM).

  • Hi,
    so try

    Serge

Participate now!

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