Hallo,
bekomm ich gerade irgendwie nicht hin, hab hier ein Textfeld, das will ich schließen, das will aber nicht.
Nicht per Link event:action und auch nicht per onlick auf das Feld selber.
Code
<action name="hidewindow">
set(plugin[%1].enabled,false);
tween(plugin[%1].alpha,0);
tween(plugin[%1].blur,20);
tween(plugin[%1].textblur,20,,,set(plugin[%1].visible,false));
</action>
<action name="showbutton">set(plugin[button].visible,true);
set(plugin[button].enabled,true);
tween(plugin[button].alpha,1);
</action>
<plugin name="helpbutton" url="images/help.png"
keep="true" visible="true" enabled="true" handcursor="true" capture="true" children="false" zorder="1"
align="righttop" x="10" y="7"
onclick="action(show_help_text);"
onhover="showtext(Hilfe);"
/>
<action name="show_help_text">
set(plugin[help_text].visible,true);
tween(plugin[help_text].alpha,1);
set(plugin[helpbutton].onclick,action(hide_help_text));
</action>
<action name="hide_help_text">
tween(plugin[help_text].alpha,0,,,set(plugin[help_text].visible,false));
set(plugin[helpbutton].onclick,action(show_help_text));
</action>
<action name="showbutton">
set(plugin[button].visible,true); set(plugin[button].enabled,true); tween(plugin[button].alpha,1);
</action>
<plugin name="help_text" url="plugins/textfield.swf"
keep="false"
visible="false" enabled="false" handcursor="true" capture="true" children="false"
zorder="0"
smoothing="true"
origin="center"
width="400" height="200"
onclick="closeallobjects();set(plugin[help_text].visible,false);tween(plugin[help_text].alpha,0);"
autosize="center"
background="true"
backgroundcolor="0xf4d100"
css="p{color:#d10028; font-family:Verdana, Arial, Tahoma, San-Serif; font-size:11; margin-left:10; margin-right:10; }"
bordercolor="0"
borderwidth="0"
glow="1"
glowcolor="0xd10028"
shadow="1"
html="data:help_text_html"
selectable="true"
/>
<data name="help_text_html">
<p><br /><b>Hilfe</b>
<br /><br />Text,Text,Text,Text,Text,Text,Text.
<br /><br /><b>Hilfe</b>
<br /><br />Text,Text,Text,Text,Text,Text,Text.
<br /><a href="event:action(hidewindow,hide_help_text);action(showbutton);">Hilfe schließen</a></p>
<font size="+4">
<a href="event:tween(plugin[help_text_html].alpha,0);delayedcall(0.5,set(plugin[help_text_html].visible,false)));">close window</a><br/>
</font>
</data>
Alles anzeigen