intro image recall

  • Hi,

    how can I recall intro image with plugin code shown below,


    <plugin name="intro"
    url="../images/bilgi2.png"
    keep="true"
    align="center"
    onloaded="set(alpha,0); tween(alpha,1.0);"
    onclick="hideintro();"
    />

    <plugin name="info"
    url="../images/nasil.png"
    devices="desktop"
    keep="true"
    align="top"
    y="48"
    x="428"
    zorder="2"
    onclick="action(popup);"
    />


    <action name="popup">
    set(plugin[intro].enable,
    switch(plugin[intro].visible,yes);
    tween(plugin[intro].alpha, 0.0, 0.5, default, addplugin(intro));
    );
    </action>

    something wrong on these code ..can anyone help me *question*

  • Thanks for reply VN2011,

    I tried so many way but I cound't success, what is your mean , code below, could you please have look and say what is wrong.

    Thank you,

    Mehmet

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

    <action name="showintro">
    if(plugin[intro].disabled,
    set(plugin[intro].enabled,true);
    tween(plugin[intro].alpha, 0.0, 0.5, default, addplugin(intro));
    );
    </action>

  • make it easier. dont worry about enabled setting.

    <action name="hideintro">
    tween(plugin[intro].alpha,0,1);
    delayedcall(1,set(plugin[intro].visible, false));
    </action>

    <action name="showintro">
    set(plugin[intro].visible, true);
    tween(plugin[intro].alpha,1);
    </action>

Participate now!

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