<div>Dear Mr.Julian</div><div><br></div>Thanks for your prompt reply. But I have still not succeeded. I have attached a loop for creating wait. But now the spot remains in the original position (20,20) for the wait period and then the second animation starts. The first animation is just not getting executed(Seemingly). Incidentally the third parameter in the animate function should perhaps provide the delay automatically?<div>
<br></div><div>Well following is the modified code. </div><div><br></div><div><div>ball.animate(400,200,100,'linearTween');</div><div>var i:Number = 0;</div><div>while (true) { </div><div> </div><div> if (i >= 20000) { </div>
<div> break; // this will terminate/exit the loop </div><div> } </div><div> i++; </div><div>} </div><div><br></div><div>ball.animate(100,100,100,'linearTween');</div><div><br></div><div>thanking you </div><div><br>
</div><div>yours sincerely</div><div><br></div><div>Ashok</div><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 3:04 PM, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">You’re not waiting for the first animation to complete before starting the second one.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Ashok Ranade<br>
<b>Sent:</b> 28 November 2012 00:50<br><b>To:</b> <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br><b>Subject:</b> [Xerte] animation<u></u><u></u></span></p></div><div><div class="h5">
<p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:36.0pt">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.<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">ball.animate(400,200,100,'linearTween');<u></u><u></u></p><p class="MsoNormal" style="margin-left:36.0pt">ball.animate(100,100,100,'linearTween');<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">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)<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">Page<u></u><u></u></p><p class="MsoNormal" style="margin-left:36.0pt"> Drawing<u></u><u></u></p><p class="MsoNormal" style="margin-left:36.0pt"> Interaction<u></u><u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt"> Button<u></u><u></u></p><p class="MsoNormal" style="margin-left:36.0pt"> Code<u></u><u></u></p><p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-left:36.0pt">Regards<u></u><u></u></p><p class="MsoNormal" style="margin-left:36.0pt"><u></u> <u></u></p><p class="MsoNormal" style="margin-left:36.0pt">Ashok <u></u><u></u></p></div></div>
</div>
<br><br>
<br></div><br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br></blockquote></div><br></div>