# Fading Thumbnail

**URL:** https://forum.kirupa.com/t/fading-thumbnail/56094
**Category:** flash
**Created:** [June 30, 2004, 1:09pm UTC](https://forum.kirupa.com/t/fading-thumbnail/56094 "2004-06-30T13:09:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ninja\_Munky](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@Ninja\_Munky](https://forum.kirupa.com/u/Ninja_Munky)
#### Post date: [June 30, 2004, 1:09pm UTC](https://forum.kirupa.com/t/fading-thumbnail/56094/1 "2004-06-30T13:09:41Z")

</div>

I have this thing I want to do. I have a black square with a black border. I made a the square a movie clip and then made a new symbol. I then placed the border and the square movie clip in the new symbol. Then on the square, which was a movie clip, I put this:

on(rollOver) {  
if(this.\_alpha \> 0) {  
this.\_alpha -=5;  
}  
}  
on(rollOut) {  
if(this.\_alpha \< 40) {  
this.\_alpha +=5;  
}  
}

But it didn’t seem to work :h: It kinda just faded out a little bit. So basically what I want to do is have ti so that there is a picture with a border and a little bit of a black tint to it. Then when you mouse over it, I want the tint to fade.
