图片跟着鼠标左右滚动flash效果
function go(i) {
aa._x += i;
}
var i = new Number();
left.onRollOver = function() {
var m = 10;
left.onMouseDown = function() {
m = 15;
};
left.onMouseUp = function() {
m = 10;
};
onEnterFrame = function () {
if (aa._x>1000) {
onEnterFrame = null;
} else {
go(m);
}
};
};
right.onRollOver = function() {
var n = 10;
right.onMouseDown = function() {
n = 15;
};
right.onMouseUp = function() {
n = 10;
};
onEnterFrame = function () {
if (aa._x<-1000) {
onEnterFrame = null;
} else {
go(-n);
}
};
};
left.onRollOut = function() {
onEnterFrame = null;
};
right..onRollOut = function() {
onEnterFrame = null;
};