hello i hope somebody can help me out with this,
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