Mouse.hide(); problems

Hi, i am getting the following error when i try and use Mouse.hide();

1061: Call to a possibly undefined method hide through a reference with static type Class.

I have imported mouse using, import flash.ui.Mouse; and it is being used in the following function:

private function mouseOverHandler(event:MouseEvent):void {
Mouse.hide();
child.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
}

Any ideas why it won’t accept the statement would be appreciated
Thanks