# Thumbnails with fade in and out images

**URL:** <https://forum.kirupa.com/t/thumbnails-with-fade-in-and-out-images/144331>\
**Category:** Uncategorized\
**Created:** [April 13, 2005, 1:46pm UTC](https://forum.kirupa.com/t/thumbnails-with-fade-in-and-out-images/144331 "2005-04-13T13:46:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nancyBAG](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@nancyBAG](https://forum.kirupa.com/u/nancyBAG)\
**Post date:** [April 13, 2005, 1:46pm UTC](https://forum.kirupa.com/t/thumbnails-with-fade-in-and-out-images/144331/1 "2005-04-13T13:46:07Z")

</div>

I am trying to make a bunch of thumbnails all load a seperate movie clip when pressed. I made the movie clip an image fading in from frame 1-10 and out from 11-20, and stop action at 1,10,and20. the button I tried to use an if then statement. if onn=2 then play(11) else if onn=3 play(2), and i made the variable onn change at position 10 and 20 in my movie, to recognize if it is visible or not.

I want the image(movie) to fade in when you click it, and then fade out when you click it again. what is the best way to do this and what am i doing wrong, i am able to get it all to work except for the fade out part, it just dissapears or stays there. thanks.

nancybag
