You want to use a Timer, to set the animation to update every certain
amount of miliseconds.

eg.
Timer blah = new Timer() {
                        @Override
                        public void run() {
// update frame code goes here.
}

blah.scheduleRepeating(500);

That would update a new frame every half a second.




On Dec 14, 7:56 pm, Ista Pouss <[email protected]> wrote:
> Hi,
>
> I have two questions about animations :
>
> - How do I perform an infinite animation ?
>
> If I do in my Animation class :
>
>                 @Override
>                 protected void onComplete() {
>                         super.onComplete();
>                         run(10000);
>                 }
>
> ... that does'nt work and my browser crash.
>
> - How do I perform a soft animation, and not a sacade animation ?
>
> I do :
>
>                 @Override
>                 protected void onUpdate(double progress)
>                 {
>                         int defwidth;
>
>                         defwidth = widget.getOffsetWidth();
>                         widget.setWidgetPosition(
>                                         image,
>                                         (int) (defwidth - (defwidth * 
> progress)),
>                                         10);
>                 }
>
> Thanks.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to