# Horizonal MC bug,stopping me from finishing webpage today

**URL:** https://forum.kirupa.com/t/horizonal-mc-bug-stopping-me-from-finishing-webpage-today/259948
**Category:** flash
**Created:** [May 10, 2008, 7:59pm UTC](https://forum.kirupa.com/t/horizonal-mc-bug-stopping-me-from-finishing-webpage-today/259948 "2008-05-10T19:59:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flashman2](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@flashman2](https://forum.kirupa.com/u/flashman2)
#### Post date: [May 10, 2008, 7:59pm UTC](https://forum.kirupa.com/t/horizonal-mc-bug-stopping-me-from-finishing-webpage-today/259948/1 "2008-05-10T19:59:21Z")

</div>

hello i hope somebody can help me out with this, :puzzled:

2 weeks into action script 2.0 and i’m already going mad  
i can’t seem to get my MC to scroll smoothly along with my scroll\_mc  
it just keeps popping to the other end of the MC

if you take a look at the zip file it has the FLA file in it so you will see what i mean…

The Horizonal scroller MC (redbox) moves along to the end of the scroll limit (red line) to drag all the MC which 1910x600 in a 955x600 document size…(i’ve left out the mask)

i have attached the file if you care to look at it:  
heres the script and files  
var scrollUpper:Number = 158;  
var scrollLower:Number = 790;

var textLower:Number = -1142;  
var textUpper:Number = -187;

var scrollRange:Number = scrollLower - scrollUpper;  
var textRange:Number = textUpper - textLower;

function scroll() {  
var moved:Number = scroller\_mc.\_x - scrollUpper;  
var pctMoved:Number = moved/scrollRange;  
var textMove:Number = pctMoved\*textRange;  
text\_mc.\_x = textLower - textMove;  
}

scroller\_mc.onPress = function() {  
this.startDrag (false,this.\_y,scrollUpper,this.\_y,scrollLower);  
this.onMouseMove = scroll;

}  
scroller\_mc.onRelease = scroller\_mc.onReleaseOutside = function() {  
this.stopDrag();  
this.onMouseMove = null;

}

i hope somebody can help its the very last thing i need to do before my website is finished… HELP PLEASE…tick tock tick :scared:  
please see fix.zip 😟

thanx

flash\_man3
