RE: [Flashcoders] [OT} simple math problem (cubic easing)

2007-08-30 Thread Roy Pardi
At 11:30 AM -0400 8/27/07, Mendelsohn, Michael wrote: >Hi Roy... > >How ya been? You could perhaps try something like this. > >- Michael M. hey Michael~ Things are good; hope all is well with you! The end code for this will be in the C-like language that the Wiring microcontroller uses but I'm m

RE: [Flashcoders] [OT} simple math problem (cubic easing)

2007-08-29 Thread Mendelsohn, Michael
Hi Roy... How ya been? You could perhaps try something like this. - Michael M. import mx.transitions.Tween; import mx.transitions.easing.*; var YourDuration:Number = 25 var rampUp:Object = new Tween(_root.mc, "_x", Regular.easeIn, 0,100,20, false); rampUp.onMotionFinished = function():Void{

Re: [Flashcoders] [OT} simple math problem (cubic easing)

2007-08-25 Thread Rich Shupe
Hi Roy. It seems like it's been decades since I said hello. I'm not sure I understand exactly what you're doing, but I gave it a shot. If you're trying to get a value for motor speed that is between 60 and 255, here's a way to do it without relying on a fixed distance. This seems goofy, but it was

[Flashcoders] [OT} simple math problem (cubic easing)

2007-08-25 Thread Roy Pardi
This is sort of OT but maybe some can give me a nudge in the right direction: I am writing a motor controller (will be in C/Wiring but modeling it in Actionscript). To avoid "jerking" when the motor starts and stops I want to ramp the motor speed. The standard way of doing this is through a trapez