  | | | script execution | script execution 2004-03-11 - By Scott Hamilton
Back I am trying to write a script that uses PlayForwardFromStart() (see code below). The problem is that PlayForwardsFromStart() returns immediately, thus executing the second block of code before the animation has finished playing. Is there anyway have execution wait until the playback is finished? block 1: executes some code PlayForwardsFromStart();
block 2: execute more code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=747585000-12032004>I am trying to write a script that uses PlayForwardFromStart() (see code below). The problem is that <FONT size=2>PlayForwardsFromStart() returns immediately, thus executing the second block of code before the animation has finished playing. Is there anyway have execution wait until the playback is finished? </FONT></SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=747585000-12032004></SPAN></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=747585000-12032004>block 1: executes some code</SPAN></FONT></DIV> <DIV><FONT><SPAN class=747585000-12032004> <P><FONT face=Arial size=2>PlayForwardsFromStart();</FONT></P> <P><SPAN class=747585000-12032004><FONT face=Arial size=2>block 2: execute more code</FONT></SPAN></P></SPAN></FONT></DIV> <DIV> </DIV></BODY></HTML>
|
|
|