Incorrect reference type

For the following class snippet:

private var ali:Loader;
public function MyClass():void {
   ali = new Loader();
   ali.load(new URLRequest("images/ali.swf"));
   ali.addEventListener(MouseEvent.MOUSE_DOWN, moveAli);
private function moveAli() {

I get the error “1061: Call to a possibly undefined method startDrag through a reference with static type flash.display:Loader.”

I get that I can’t drag a Loader object. But I need to be able to. What’s the solution here?