# Thumbnail slide fails to move when Brightness function is added?!

**URL:** <https://forum.kirupa.com/t/thumbnail-slide-fails-to-move-when-brightness-function-is-added/304970>\
**Category:** flash\
**Created:** [February 17, 2010, 12:01pm UTC](https://forum.kirupa.com/t/thumbnail-slide-fails-to-move-when-brightness-function-is-added/304970 "2010-02-17T12:01:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![02simond](https://avatars.discourse-cdn.com/v4/letter/0/f19dbf/32.png) [@02simond](https://forum.kirupa.com/u/02simond)\
**Post date:** [February 17, 2010, 12:01pm UTC](https://forum.kirupa.com/t/thumbnail-slide-fails-to-move-when-brightness-function-is-added/304970/1 "2010-02-17T12:01:02Z")

</div>

Hi  
I have a thumbnail slide thats pretty basic. When I try to add this function to it the slide doesnt start moving when I move the mouse over:

```auto
function brighten(t, b, s) {

	t.onEnterFrame = function() {

		new Color(t).setTransform({rb:t.b, bb:t.b, gb:t.b});

		Math.round(t.b) == b ? delete t.onEnterFrame : (t.b == undefined ? t.b=0 : t.b += Math.ceil((b-t.b)*s));

	};

}

this.mc.onRollOver = function() {

	brighten(this, 200, .1);

	this.onRollOut = function() {

		brighten(this, 0, .1);

	};

};

```

Here is my .fla file: [http://enelesfilm.se/ovrigt/forum/scroll.zip](http://enelesfilm.se/ovrigt/forum/scroll.zip)  
With the above function in place it looks nice as the movieclip changes brightness but then the slide wont move when I move my mouse over.  
How do I fix this?  
Thanks for your help!
