How to hide text before showtime expires?

  • I would like to hide the text of a showtext action by clicking (anywhere) with the mouse, before the showtime (20 seconds in this case) has expired. Is there a way to do this?

    Here is the code I'm working with:

    Code
    <action name="starttext">
     showtext("this is where my start text goes",infostyle);
    </action>
    
    
    <textstyle name="infostyle"
      origin="center" edge="center" textalign="center" background="false" border="false"
      fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
      showtime="20.0" fadetime="1.0" fadeintime="1.0" alpha="0.7"
      />

    Thanks,
    Bags

  • Hi Bags,

    I have played a little about this but it seems there is no way to access attributes of the displayed showtext...
    So I suggest to call a new showtext() action on onclick event... Like this:

    Code
    <events onclick="showtext(' ');" />

    A little hack but... Hope this help...

    SAlut.

Participate now!

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