# Scrolling movie using mouse AS 2

**URL:** <https://forum.kirupa.com/t/scrolling-movie-using-mouse-as-2/320036>\
**Category:** Uncategorized\
**Created:** [March 11, 2011, 11:29pm UTC](https://forum.kirupa.com/t/scrolling-movie-using-mouse-as-2/320036 "2011-03-11T23:29:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alibag2](https://avatars.discourse-cdn.com/v4/letter/a/b487fb/32.png) [@alibag2](https://forum.kirupa.com/u/alibag2)\
**Post date:** [March 11, 2011, 11:29pm UTC](https://forum.kirupa.com/t/scrolling-movie-using-mouse-as-2/320036/1 "2011-03-11T23:29:23Z")

</div>

Hi,  
I am trying to use mouse to scroll my panaroma movie in my screen and this my AS:  
\_root.onEnterFrame = function(){  
if(\_root.\_xmouse\>550){  
imgBar.nextFrame();  
imgBar.nextFrame();  
}  
if(\_root.\_xmouse\<50){  
imgBar.prevFrame();  
imgBar.prevFrame();  
}  
if(\_root.\_ymouse== “up” ){  
imgBar.\_y +=5();  
}  
if(\_root.\_ymouse== “down” ){  
imgBar.\_y -=5();  
}  
}  
movie is moving to left and right but up and down does not work.  
could any one please help me what’s wrong with my action scripts.  
thanks,
