Dragging window contents

Hi all,

I’m currently trying to make the contents of a window draggable and disabling the scrollbars on it.

This is the code i got to create the window and add the contents to the window. The window creates flawlessly and the contents gets loaded too but i can’t get the contents to drag by clicking on the contents itself.


zoom_win = mx.managers.PopUpManager.createPopUp(_root, Window, true, {title:page_url, closeButton:true});
    zoom_win.createObject("ScrollPane", "zoom_pane", 0, {contentPath:page_url, _x:3, _y:31});

Anyone mind helping me in the right direction?

Thanks