Following up on P T Withington's hint to use visibility or opacity, I created
this to do it using opacity.
<canvas width="2000" height="2000" debug="true">
<debug height="200" width="500" fontsize="12"
x="50" y="50" />
<text name="blinker" fontsize="16" >Hello World!
<animatorgroup process="sequential"
attribute="opacity" duration="500"
repeat="Infinity" relative="false" motion="linear" >
<animator from="0" to="0" />
<animator from="1" to="1" />
</animatorgroup>
</text>
<script>
Debug.write("Debugging On");
</script>
</canvas>
--
Greg Higgins
ABLsaurus Rex
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:laszlo-user-
> [EMAIL PROTECTED] On Behalf Of Gregory Higgins
> Sent: Wednesday, November 09, 2005 7:59 AM
> Cc: 'laszlo-user'
> Subject: RE: [Laszlo-user] blinking text
>
> I came up with this on my way to a blinktext class (I'm new to
> OpenLaszlo), but I don't understand several things:
>
> 1) The first blink marches through the colors. Then it appears to be OK.
>
> 2) When I ask the debugger to display the value of blinker.fgcolor, it
> denies that there is such an attribute, but it gives me
> blinker.bgcolor .
>
> <canvas debug="true" width="1000" height="1000">
> <debug height="200" width="500" fontsize="12"
> x="50" y="50" />
> <text name="blinker" fontsize="16"
> fgcolor="black" bgcolor="white"
> >Hello World!
> <attribute name="basefgcolor" value="black" type="color" />
> <animatorgroup process="sequential"
> attribute="fgcolor" duration="500"
> repeat="Infinity" relative="false" motion="linear" >
> <animator
> from="${blinker.bgcolor}"
> to="${blinker.bgcolor}" />
> <animator
> from="${getAttribute('blinker.basefgcolor')}"
> to="${getAttribute('blinker.basefgcolor')}" />
> </animatorgroup>
> </text>
> <script>
> Debug.write("Debugging On");
> </script>
>
> </canvas>
> --
> Greg Higgins
> ABLsaurus Rex
>
>
> > -----Original Message-----
> > From: Sérgio Monteiro Basto
> >
> > Yap thanks , for all replies, have we some example on docs ?
> >
> > I thought I had see one. It is one animation with a target
> >
> > regards,
> >
> > On Wed, 2005-11-09 at 13:52 +1100, Alex Warwick wrote:
> > > I had to use an animator to get blinking text also.
> > >
> > > -----Original Message-----
> > > From: P T Withington
> > >
> > > you could animate visibility or opacity
> > >
> > > On 8 Nov 2005, at 05:35, Sérgio Monteiro Basto wrote:
> > >
> > > > Hi,
> > > > After search on openlaszlo foruns, on openlaszlo docs, on
> google I
> > > > don't
> > > > find anything related.
> > > >
> > > > Can I do, in a simple way, blinking text?
> > > >
> > > > thanks in advance,
> > > > --
> > > > Sérgio Monteiro
>
>
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user