Detect if the mouse is moving

hello world.

I need help. Very urgent.

how do i detect if the mouse is moivng and if not gotoAndPlay frame 1

Thanks.