Greetings All,
  For those of you following the discussions on
animation and timing, Daniel Aborg suggested a timing
method using thread that is self correcting for time.
Very simply, it adjusts the number of pixels to step
to complete the animation in a given time amount.
It seems to work very well across the browsers.
The following link is a demo of that technique for you
to experiment with.  It uses the moveBy command to
reposition the layer.  The "sleep" setting is set to 1
to make the browser default to the minimum timeslice. 
On IE for example, any setting between 1 and 55 gives
the same results (number of steps to complete).
I added in a process delay capability that has two
levels.  The first just runs a math function in a for
loop every 200 ms and the severe process adds a write
to screen command, forcing the screen update.  
Interesting Note:
  Under NS6, the severe setting actually stops the
processing of the layer movement while it updates
values to the screen.  Whatever happened to concurrent
processing?  Anyone have any comments on this?

Here is the link:
http://www.merlinsworld.net/dynapi_ri_dcexamples/timing02.shtml

Comments anyone?

Dave C.  "You Changed What?!?"

__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to