NeoDreamer
August 3rd, 2003, 10:13 PM
I am trying to make a flash footer for this forum. A footer is 300 by 60. If the user mouses on the top half of the footer, then my image inside will scroll up. Vice versa for mousing on the bottom half. It aint seem to work. I put the below on the image, which is a movie clip.
onClipEvent (load) {
//because the footer is 30 pixels high
newHeight = this._height+30;
}
onClipEvent (enterFrame) {
//see if pic is able to scroll up any more
if (_root._ymouse<30 and this._y>newHeight) {
//scroll up
this._y--;
}
//see if pic is able to scroll down any more
if (_root._ymouse>30 and this._y<0) {
//scroll down
this._y++;
}
}
onClipEvent (load) {
//because the footer is 30 pixels high
newHeight = this._height+30;
}
onClipEvent (enterFrame) {
//see if pic is able to scroll up any more
if (_root._ymouse<30 and this._y>newHeight) {
//scroll up
this._y--;
}
//see if pic is able to scroll down any more
if (_root._ymouse>30 and this._y<0) {
//scroll down
this._y++;
}
}