hi all !!!
i m facing a prob that i made a image scroller which horizontaly scroll Movie clips of images,which stop when u mouseover on scroller…the prob is that after stop it doesn’t show hover position of button which is inside movieclip.
structure is like this:
movieclip - action layer
- several moviclips - button inside movie clip
code is this:
if (_parent.btnArr == undefined) {
_parent.btnArr = new Array();
}
_parent.btnArr.push(this);
this.onEnterFrame = function() {
animate();
};
this.onRollOver = function() {
for (var ii:Number = 0; ii<_parent.btnArr.length; ii++) {
delete _parent.btnArr[ii].onEnterFrame;
}
};
this.onRollOut = this.onReleaseOutside = function(){;
for(var ii:Number = 0; ii < _parent.btnArr.length; ii++){;
_parent.btnArr[ii].onEnterFrame = function(){;
this.animate();
};
};
};
function animate() {
_x = _x+2;
if (_x>=960.7) {
_x = -2347.3;
}
}
pls help me