[Xerte] Re: animation

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Nov 28 09:34:58 GMT 2012


You're not waiting for the first animation to complete before starting the second one.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Ashok Ranade
Sent: 28 November 2012 00:50
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] animation

I am stuck in a simple animation. What I am trying to do is to move a small ball from the position (20,20) to position (400,200) and then to position (100,100). For this I have written the following code.
ball.animate(400,200,100,'linearTween');
ball.animate(100,100,100,'linearTween');
The animation from (20,20) to (100,100) is visible however the earlier animation from (20,20) to (400,200) is not seen at all. What can be the reason ? The total tree is as follows.(ID of the drawing is ball)
Page
    Drawing
    Interaction
        Button
             Code

Regards

Ashok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20121128/27130a60/attachment.html>


More information about the Xerte mailing list