all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

Image Scroll script error mystery



Image Scroll script error mystery grafix4u
12/1/2004 10:43:09 PM
flash actionscript: This one is a mystery to me- I have attached this script to an empty movie clip
but it keeps giving me errors (!)

I am trying to create a web site that visitors can click on a right or left
arrow and then the image will scroll either right or left until they release
the arrow.

Sounds simple but I can not find a script to support this anywhere on the
internet!

Here is the code:
---------------------------------
onClipEvent(load) {
_root.scrollSpeed = 1;
}

onClipEvent(enterFrame) {
_root.myRightButton.onPress = function () {
_root.scrollRight = 1;
};
_root.myRightButton.onRelease = function () {
_root.scrollRight = 0;
};
if (_root.scrollRight==1) {
_root.myImage1._x += _root.scrollSpeed;
}
}
----------------------------

Thanks(!!!!)
Re: Image Scroll script error mystery kglad
12/1/2004 11:16:36 PM
AddThis Social Bookmark Button