Creating Actions within a Rollover state

So I have a window that slides in when its rolled over. It goes back to its origin when the user rolls off the window. Now within that window I have a scroll feature taht creates a conflict with the window actions when the user tries to use the scrollbar elements. I want the window to stay open, while the user is scrolling and i want the window to close when the user rolls off the window.

It could be easier to have the user click the window open/closed…but I was wondering if there is a way I could keep my original vision…here is what i wrote for the window code:

[AS]window.backdimmer._alpha=0;

window.trigger.onRollOver = function() {
window.slideTo(-360, “_y”, .4, “easeoutbounce”);
window.backdimmer.alphaTo(30, .2);
}

window.trigger.onRollOut = function() {
window.slideTo(0, “_y”, .8, “easeoutbounce”);
window.backdimmer.alphaTo(0, .2);

}[/AS]

any ideas??