# Image scroller AS problem

**URL:** <https://forum.kirupa.com/t/image-scroller-as-problem/256970>\
**Category:** Uncategorized\
**Created:** [April 9, 2008, 6:13am UTC](https://forum.kirupa.com/t/image-scroller-as-problem/256970 "2008-04-09T06:13:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachinflash](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@sachinflash](https://forum.kirupa.com/u/sachinflash)\
**Post date:** [April 9, 2008, 6:13am UTC](https://forum.kirupa.com/t/image-scroller-as-problem/256970/1 "2008-04-09T06:13:00Z")

</div>

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
