Forum Moderators: open
However when you scroll all the way in either direction, you reach the end of the filmstrip and see the blank space where the strip ends. Is there a way to make the strip appear continuous?
Here is the actionscript I'm using:
goleft.onPress = function() {
filmstrip.onEnterFrame = function() {
filmstrip._x += 10;
}
}
goleft.onRelease = function() {
delete filmstrip.onEnterFrame;
}
goright.onPress = function() {
filmstrip.onEnterFrame = function() {
filmstrip._x -= 10;
}
}
goright.onRelease = function() {
delete filmstrip.onEnterFrame;
}
Thanks,
Mid.
goleft.onPress = function() {
filmstrip.onEnterFrame = function() {
if ((filmstrip._x+filmstrip._width) <= yourmovie._width) {
delete filmstrip.onEnterFrame;
}
else { filmstrip._x += 10; }
}
}
For left, it's easier.
goright.onPress = function() {
filmstrip.onEnterFrame = function() {
if (filmstrip._x >= 0) { delete filmstrip.onEnterFrame; }
else { filmstrip._x -= 10; }
}
}
Untested, but something like that should do it. :-) Looks to me like you have go left and go right backwards though, don't you?
+x ----------> makes it go right
-x <---------- makes it go left
goleft.onPress = function() {
filmstrip.onEnterFrame = function() {
if (filmstrip._x <= 0) {
delete filmstrip.onEnterFrame;
}
else { filmstrip._x -= 10; }
}
}
goleft.onRelease = function() {
delete filmstrip.onEnterFrame;
}
goright.onPress = function() {
filmstrip.onEnterFrame = function() {
if ((filmstrip._x+filmstrip._width) >= 550) {
delete filmstrip.onEnterFrame;
}
else { filmstrip._x += 10; }
}
}
goright.onRelease = function() {
delete filmstrip.onEnterFrame;
}