Scroll actionScript using 2.0 in Flash CS2...Please Help

Hi everyone,

I would like to have a scrolling list to the right of the screen and I am having a hard time getting it to work.

Can someone tell me why this actionScript works when using y-axis positions: [COLOR=blue]For scroll[/COLOR] ~ Upper 35.3, Lower 345.3 and [COLOR=blue]For Text[/COLOR] Upper 610.6, Lower -222.3. but as soon as I plug in the numbers for the correct screen position (which is on the far right): [COLOR=blue]For scroll[/COLOR] ~ Upper .601, Lower 2.921 [COLOR=blue]For Text[/COLOR] ~ Upper 8.592, Lower -5.089.

It seems like when I move the text and scroll box from the center of the Flash screen to the far right of the screen (where I would like it) it doesn’t work any longer. What am I doing wrong?!

I got the tutorial for LearnFlash.com (http://www.entheosweb.com/Flash/video_tutorials/custom_scroller.asp). When I do it just like them, it works. But, again, as soon as I move it to the right of the screen, plug in the correct y-axis numbers, which is smaller in size than their example, it doesn’t work! This is so frustating! Below I have attached the actionScript (using 2.0). Please help me. Thanks :slight_smile:

var scrollUpper:Number = 35.3;
var scrollLower:Number = 345.3;
var textLower:Number = -222.3
var textUpper:Number = 610.6;
var scrollRange:Number = scrollLower - scrollUpper;
var scrollText:Number = textLower - textUpper;
function scroll () {
var moved:Number = scroller_mc._y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
text_mc._y = textLower - textMove;
}
scroller_mc.onPress = function() {
this.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
}