You are not logged in.

1

Tuesday, August 23rd 2011, 8:07am

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*

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Tuesday, August 23rd 2011, 3:15pm

just reverse your hideinto action to show it again.

3

Tuesday, August 23rd 2011, 7:14pm

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>

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Tuesday, August 23rd 2011, 9:53pm

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>

5

Wednesday, August 24th 2011, 7:43am

Thank you very much..