so i have 2 scroll bars on one page.
the first scroll bar scrolls, but text doesn’t.
I have checked the code like 5 times to make sure i have the text named right and stuff…
but the second scroll bar and text works perfect.
and when I take the actionscript out for the second scroll bar, the first works perfectly.
don’t understand.
please help!!
here’s my code:
var scroll1Upper:Number = 308;
var scroll1Lower:Number = 475;
var textLower:Number =310;
var textUpper:Number =192;
var scroll1Range:Number = scroll1Lower - scroll1Upper;
var textRange:Number = textLower - textUpper;
function scroll() {
var moved:Number = sb1_mc._y - scroll1Upper;
var pctMoved:Number = moved/scroll1Range;
var textMove:Number = pctMoved*textRange;
text1_mc._y = textLower - textMove;
}
sb1_mc.onPress = function() {
this.startDrag(false,this._x,scroll1Upper,this._x,scroll1Lower);
this.onMouseMove = scroll;
}
sb1_mc.onRelease = sb1_mc.onReleaseOutside = function() {
this.stopDrag();
this.onMouseMove = null;
}
thumb1_btn.onRelease = function() {
gotoAndPlay(“large1”);
}
thumb2_btn.onRelease = function() {
gotoAndPlay(“large2”);
}
thumb3_btn.onRelease = function() {
gotoAndPlay(“large3”);
}
thumb4_btn.onRelease = function() {
gotoAndPlay(“large4”);
}
coffee_btn.onRelease = function() {
gotoAndPlay(“coffee”);
}
artist_btn.onRelease = function() {
gotoAndPlay(“artist”);
}
pipe_btn.onRelease = function() {
gotoAndPlay(“pipe”);
}
about_btn.onRelease = function() {
gotoAndPlay(“about”);
}
army_btn.onRelease = function() {
gotoAndPlay(“army”);
}
contact_btn.onRelease = function() {
getURL("mailto:derektoews@gmail.com");
}
jenn_btn.onRelease = function() {
gotoAndPlay(“jenn”);
}
home_btn.onRelease = function() {
gotoAndPlay(“home”);
}
var scrollUpper:Number = 610;
var scrollLower:Number = 780;
var textLower:Number =610;
var textUpper:Number =572;
var scrollRange:Number = scrollLower - scrollUpper;
var textRange:Number = textLower - textUpper;
function scroll() {
var moved:Number = sb2_mc._y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
text2_mc._y = textLower - textMove;
}
sb2_mc.onPress = function() {
this.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
this.onMouseMove = scroll;
}
sb2_mc.onRelease = sb2_mc.onReleaseOutside = function() {
this.stopDrag();
this.onMouseMove = null;
}