# Creating Actions within a Rollover state

**URL:** https://forum.kirupa.com/t/creating-actions-within-a-rollover-state/191202
**Category:** flash
**Created:** [June 18, 2006, 4:29pm UTC](https://forum.kirupa.com/t/creating-actions-within-a-rollover-state/191202 "2006-06-18T16:29:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![chalemi](https://avatars.discourse-cdn.com/v4/letter/c/d78d45/32.png) [@chalemi](https://forum.kirupa.com/u/chalemi)
#### Post date: [June 18, 2006, 4:29pm UTC](https://forum.kirupa.com/t/creating-actions-within-a-rollover-state/191202/1 "2006-06-18T16:29:52Z")

</div>

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??
