From: Ray C. <rc...@gm...> - 2006-09-04 10:46:32
|
Hi, On 9/4/06, thomas mery <tho...@gm...> wrote: > hi all, > > I'm in the process of animating views and I was looking at NSAnimation and > NSAnimationCurve > > I also noticed the in ASAnimatedTabView the animation process is done with a > timer without resorting to NSAnimation I'm working on making it use A/NSAnimation, so that it can be standardised. NSAnimation uses a timer internally too, by the way. > Also there is only one NSAnimationCurve available and the constructor of > this class is private (from which I deduce that the class needs to be > augented with other curves types or subclassed since NSAnimation requires an > instance of NSAnimationCurve and cannot use ASDraw functions that returns an > easing equation) Please update your working copy. I've added a ton of easing functions. > Also I noticed the NSanimation instance can have a delegate, what would I > typically use it for ? You *must* use the delegate to update/animate, unless you prefer subclassing. Please see the test file /trunk/test/org.actionstep.test.ASTestAnimation for an example. > It would really help me if someone would comment on the best way to go about > animating views. You shouldn't face much difficulty, because views use movieclips anyway. Say you want to move a window accross the screen: animationDidAdvance:function(anim:NSAnimation):Void { win.setFrameOrigin(win.frameOrigin().translate( foo.currentValue() * dx + sx, 0)); // force update win.displayIfNeeded(); } > Thnaks in advance > > Thomas > > -- > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > actionstep-core mailing list > act...@li... > https://lists.sourceforge.net/lists/listinfo/actionstep-core > > > -- Cheers, Ray Chuan |