From: Richard :o <ma...@ri...> - 2001-01-16 00:02:21
|
Hi, The main difference is that this one's an addon to pathanim, (which has also been altered) so it doesn't have any setTimeout's itself, it relies on thread.js to call "run" in pathanim, which triggers the clipping. Also this one generates the four paths before execution. All this should make it faster. I'll add clipBy() , and see what to do about acceleration. Cheers, Richard :o ma...@ri... www.richardinfo.com (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) ----- Original Message ----- From: "wes currier" <we...@we...> To: <dyn...@li...> Sent: Tuesday, January 16, 2001 12:22 AM Subject: Re: [Dynapi-Help] I need help with the Clip and Wipe Functions > In looking at your code it looks different than the wipe I was using > that was posted to the list a while back. It makes more sense to me this > way. What I am now wondering is if it is possible to add an acceleration > / deceleration variable to the step function to create an ease in ease > out function? > > Here is my example using the old wipe.js > http://www.wesfx.com/examples/setWipe.htm > > wes currier > > Richard :o wrote: > > > > Hi, > > So I ported (rewrote) Dan's wipeTo() dynAPI1 method to DynAPI2. > > It is a pathanim addon, so you need thread.js and pathanim.js. > > It generates it's paths before the animation, and becomes available to all > > dynlayers, > > like slideTo(). > > > > I put up an example here: > > http://www.resass.f2s.com/?menu=examples&node=1 > > called dynlayer-wipe.html > > > > Cheers, > > Richard :o > > > > ma...@ri... > > www.richardinfo.com > > (Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2) > > > > ----- Original Message ----- > > From: "wes currier" <we...@we...> > > To: <dyn...@li...> > > Sent: Monday, January 15, 2001 8:52 AM > > Subject: Re: [Dynapi-Help] I need help with the Clip and Wipe Functions > > > > > OK, your response is what I was trying to do. > > > > > > setClip is similar to moveTo in that it is a one step function. What I > > > would like to do is make a dynamic clip similar to slideTo. > > > > > > Any thoughts? > > > Should this function be included into path anim? > > > > > > wes > > > > > > > > > > > > Richard :o wrote: > > > > > > > > > I believe the format for setClip is setClip([t,r,b,l]). Just put > > brackets > > > > > around the values and you should be good. > > > > > > > > Yeah, that's correct. > > > > I put up an example here anyway. > > > > http://www.resass.f2s.com/?menu=examples&node=1 > > > > called dynlayer-clip.html > > > > > > > > Cheers, > > > > Richard :o > > > > > > > > ma...@ri... > > > > www.richardinfo.com > > > > (Everything running on, and ported to the 19/12/2000 snapshot of > > DynAPI2) > > > > > > > > > > > > > > -----Original Message----- > > > > > From: dyn...@li... > > > > > [mailto:dyn...@li...]On Behalf Of wes > > currier > > > > > Sent: Sunday, January 14, 2001 2:10 AM > > > > > To: dyn...@li... > > > > > Subject: [Dynapi-Help] I need help with the Clip and Wipe Functions > > > > > > > > > > > > > > > I am trying to use the wipe.js script to change the clip of a layer. > > > > > Initially i tried to setClip(t,r,b,l) but it does not seem to work. > > > > > Could someone let me know what i am doing wrong. I have tried to look > > > > > for some examples that use setClip, but have not found any. I anyone > > > > > knows where i might find some examples to view, please let me know. > > > > > > > > > > I have included the setClip file below: > > > > > ***************************************************************** > > > > > <html> > > > > > <head> > > > > > <title>DynAPI Distribution: setClip example</title> > > > > > > > > > > <script language="Javascript" src="../src/dynapi.js"></script> > > > > > <script language="Javascript"> > > > > > > > > > > DynAPI.setLibraryPath('../src/lib/') > > > > > > > > > > //DynAPI.include('dynapi.api.*'); > > > > > > > > > > DynAPI.include('dynapi.api.dynlayer.js') > > > > > DynAPI.include('dynapi.api.browser.js') > > > > > DynAPI.include('dynapi.api.dyndocument.js') > > > > > DynAPI.include('dynapi.api.events.js'); > > > > > > > > > > DynAPI.include('dynapi.util.thread.js'); > > > > > DynAPI.include('dynapi.util.pathanim.js'); > > > > > > > > > > > > > > > > > > > > DynAPI.onLoad=function() { > > > > > myLayer = new DynLayer() > > > > > myLayer.setSize(350,350) > > > > > myLayer.setBgColor('#c0c0c0') > > > > > > > > > > myLayer.setClip(100,0,0,100) > > > > > > > > > > myLayer.moveTo(50,50) > > > > > > > > > > myChild=new DynLayer(null,25,25,50,50,'#ffffff') > > > > > myLayer.addChild(myChild) > > > > > this.document.addChild(myLayer) > > > > > } > > > > > > > > > > > > > > > > > > > > </script> > > > > > </head> > > > > > > > > > > <body> > > > > > </body> > > > > > </html> > > > > > > > > > > **************************************************** > > > > > > > > > > > > > > > wes currier > > > > > we...@we... > > > > > > > > > > _______________________________________________ > > > > > Dynapi-Help mailing list > > > > > Dyn...@li... > > > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > > > > > > > > > _______________________________________________ > > > > > Dynapi-Help mailing list > > > > > Dyn...@li... > > > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > ____________________________________________________________ > > > > > Get your free domain name and domain-based e-mail from > > > > > Namezero.com. New! Namezero Plus domains now available. > > > > > Find out more at: http://www.namezero.com > > > > > > > > > > > > > _______________________________________________ > > > > Dynapi-Help mailing list > > > > Dyn...@li... > > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > _______________________________________________ > > > Dynapi-Help mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/lists/listinfo/dynapi-help > > > ____________________________________________________________ > > > Get your free domain name and domain-based e-mail from > > > Namezero.com. New! Namezero Plus domains now available. > > > Find out more at: http://www.namezero.com > > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-help > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-help > ____________________________________________________________ > Get your free domain name and domain-based e-mail from > Namezero.com. New! Namezero Plus domains now available. > Find out more at: http://www.namezero.com > |