You are not logged in.

1

Friday, June 18th 2010, 7:23am

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:

Source code

1
2
3
4
5
6
7
8
9
 <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

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Friday, June 18th 2010, 7:54am

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:

Source code

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


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

SAlut.

3

Friday, June 18th 2010, 8:12am

Thanks Michel, that hack worked perfectly!
Bags