# New to Flash Script ..!

**URL:** https://forum.kirupa.com/t/new-to-flash-script/279235
**Category:** flash
**Created:** [January 12, 2009, 5:16am UTC](https://forum.kirupa.com/t/new-to-flash-script/279235 "2009-01-12T05:16:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![enzyme](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@enzyme](https://forum.kirupa.com/u/enzyme)
#### Post date: [January 12, 2009, 5:16am UTC](https://forum.kirupa.com/t/new-to-flash-script/279235/1 "2009-01-12T05:16:31Z")

</div>

ny1 pls help me with this…

am trying to create a vertical scroll full screen navigation bar using the following script on the timeline…

stop();  
var endPt = theMC.\_totalframes - 1;  
var maxX = Stage.height;  
var mouseListener = new Object();  
mouseListener.onMouseMove = function() {  
var val = Math.round((\_ymouse \* endPt) / maxX) + 1;  
theMC.gotoAndStop(val);  
};  
Mouse.addListener(mouseListener);

its working fine but the object movement dose not seem to right…! how can i make the scrolling much smoother possibly with an ease in ease out effect… is it also possible if i can confine the scroll only when the cursor hovers around the navigation area…say only when the cursor is inside the left 300pix.

thks in advance.
