Hi guys, hi Leif, I apologize if this is the 2nd time you receive the same email. I used my company's email address to sent the first one, and wasn't sure if that was able to get through, since I am not registered with that email address.
I am using DynAPI version 3.0, which I downloaded from this link: http://osdn.dl.sourceforge.net/sourceforge/dynapi/dynapi-3.0.0-beta1.zip I checked out the snapshots, but I'm not sure which one this file corresponds to. I found this link on the DynAPI website, here: http://dynapi.sourceforge.net/dynapi/article.php? sid=55&mode=threaded&order=0 Anyway, the scripts I was writing was nothing special, but I will just give you a simple example: ----------------------------------------------------------------------- <html> <head> <title>DynAPI Examples - Glide Animation (Path Animation)</title> <script language="JavaScript" src="dynapi3x/src/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('dynapi3x/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('PathAnimation'); dynapi.library.include('GlideAnimation'); </script> <script language="Javascript"> DynAPI.onLoad(init); function init() { a = new DynLayer(); a.setSize(20,20); a.setLocation(500,100); a.setBgColor("green"); b = new DynLayer(); b.setSize(20,20); b.setLocation(200,100); b.setBgColor("red"); b_anim = new PathAnimation(b); b_anim.sleep(20); var p = GlideAnimation(200,100,400,100,7,'slow','slow'); b_anim.add(p,false); a_anim = new PathAnimation(a); a_anim.sleep(20); var t = GlideAnimation(500,100,400,100,7,'slow','slow'); t = t.concat( GlideAnimation(400,100,400,200,7,'slow','slow') ); t = t.concat( GlideAnimation(400,200,200,200,7,'slow','slow') ); t = t.concat( GlideAnimation(200,200,200,100,7,'slow','slow') ); a_anim.add(t,false); a_anim.playAnimation(); b_anim.playAnimation(); dynapi.document.addChild(a); dynapi.document.addChild(b); } //--> </script> </head> <body bgcolor="#ffffff"> <script>dynapi.document.insertAllChildren();</script> </body> </html> ----------------------------------------------------------------------- So, the �a_anim� and �b_anim� execute simultaneously, which is what I DON�T want. I want to be able to wait until �a_anim� is finished, and then execute �b_anim�. Now, as I mentioned before, I found a �.playing� property in the source files, so I thought I might want to give that a go. But that property is always true. Maybe I can�t access it or something... I don�t know. Are there �private� and �public� properties in JS? Again, I�m new at this, so these questions may sound pretty stupid. Anyway, if anyone would be kind enough to point out how I can execute the animations sequentially rather than simultaneously, he has my gratitude and thanks =) Steven ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help
