# I need oil to motorscrolling :-)

**URL:** <https://forum.kirupa.com/t/i-need-oil-to-motorscrolling/205753>\
**Category:** flash\
**Created:** [November 1, 2006, 5:08pm UTC](https://forum.kirupa.com/t/i-need-oil-to-motorscrolling/205753 "2006-11-01T17:08:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ovea](https://avatars.discourse-cdn.com/v4/letter/o/e95f7d/32.png) [@ovea](https://forum.kirupa.com/u/ovea)\
**Post date:** [November 1, 2006, 5:08pm UTC](https://forum.kirupa.com/t/i-need-oil-to-motorscrolling/205753/1 "2006-11-01T17:08:44Z")

</div>

I have problem with my scrollning.

See my files, i use

```auto

panel.onRollOver = panelOver;
function panelOver() {
 this.onEnterFrame = scrollPanel;
 delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollPanel() {
 if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
  this.onRollOver = panelOver;
  delete this.onEnterFrame;
 }
 
 if(panel._x >= 89) {
  panel._x = 89;
 }
 
 if(panel._x <= -751) {
  panel._x = -751;
 }
 
 var xdist = _xmouse - 250;
 
 panel._x += Math.round(-xdist / 7);
}

```

It´s very bad - Same as motorscrolling without oil!!!  
You can see my files, Why?
