# Making actionscript photo gallery fade automatically

**URL:** <https://forum.kirupa.com/t/making-actionscript-photo-gallery-fade-automatically/225684>\
**Category:** Uncategorized\
**Created:** [May 14, 2007, 9:59pm UTC](https://forum.kirupa.com/t/making-actionscript-photo-gallery-fade-automatically/225684 "2007-05-14T21:59:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dial8](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dial8/32/3255_2.png) [@dial8](https://forum.kirupa.com/u/dial8)\
**Post date:** [May 14, 2007, 9:59pm UTC](https://forum.kirupa.com/t/making-actionscript-photo-gallery-fade-automatically/225684/1 "2007-05-14T21:59:07Z")

</div>

Hey all,

Hopefully this hasn’t been covered a lot here… I’m a newbie when it comes to ActionScript so hopefully someone here can help me out.

I’ve been using this kirupa designed flash photo gallery because it’s far more efficent size wise than just creating the tweens in flash:

[http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm)

My question is this:

What is the best way to change this photogallery so that rather than manually changing the photos with a button, it will fade them in and out automatically?

(i.e. on (release) {  
\_root.changePhoto(1);  
} )

I tried wiring it up using “onEnterFrame” as a function to change \_root.changePhoto but maybe I’m placing the code in the wrong place because I can’t seem to get that to work.

Any help with this would be greatly appreciated.
