Accelerometer, AS3 and making smooth rotation

Hello People!

I’m building an iPhone application in which an avatar’s rotation is determined by the accelerometer.

It works (ish, that is), but here’s the problem: if the user switches the position of the device too quickly, the avatar’s rotation shifts instantly, resulting in a very jarring (and extremely unorganic) movement.

In sum, I’m looking for a way to guarantee that it ‘spins’ to its new rotation instead of just poof appearing there.