[ new MotionPath("verticalScrollPosition")]; anim.motionPaths[0].keyframes = new [ new Keyframe(0), new Keyframe(500, endPosition)]; anim.play(); } ]]>