# Scrolling up and down AS

**URL:** https://forum.kirupa.com/t/scrolling-up-and-down-as/320026
**Category:** Uncategorized
**Created:** [March 11, 2011, 5:36pm UTC](https://forum.kirupa.com/t/scrolling-up-and-down-as/320026 "2011-03-11T17:36:50Z")
**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, 5:36pm UTC](https://forum.kirupa.com/t/scrolling-up-and-down-as/320026/1 "2011-03-11T17:36:50Z")

</div>

I am an interested flash student learing bymyself. Recently i tried to creat a panaromic movie an add these AS use mouse up and down to move my movie up or down.  
\_root.onEnterFrame = function(){  
if(\_root.\_ymouse== “up” ){  
imgBar.\_y +=5();  
}  
if(\_root.\_ymouse== “down” ){  
imgBar.\_y -=5();  
}  
}  
but nothing happened and no wrong AS appeared.  
Could anybody help me.  
Many thanks inadvance!!!
