# Fading Movie Clips

**URL:** <https://forum.kirupa.com/t/fading-movie-clips/182389>\
**Category:** flash\
**Created:** [March 17, 2006, 6:20pm UTC](https://forum.kirupa.com/t/fading-movie-clips/182389 "2006-03-17T18:20:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jml](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jml](https://forum.kirupa.com/u/jml)\
**Post date:** [March 17, 2006, 6:20pm UTC](https://forum.kirupa.com/t/fading-movie-clips/182389/1 "2006-03-17T18:20:36Z")

</div>

Everyone -

I’m having trouble with a script I hope someone can help me out with. I’ve modified a script posted here a while ago by Aussie Devil, I think. What I ultimately want to do is this:

1. Have a folder of jpegs 01.jpg - 99.jpg
2. Have them load sequentially onto the stage, with a fade inbetween

Aussie’s script works great, but you have to place them on the stage manually. I’d like to be able to load them dynamically. What I’ve come up with is:

1. Create a series of empty movie clips with createEmptyMovieClip
2. Load jpegs into each of them
3. Set alpha of each to 0
4. Use a script to fade them in and out

I’ve gotten 1-3 to work, but am having trouble with 4. I’ve attached a movie which:

1. has a movie clip called shape\_mc on the stage
2. has a script which fades shape\_mc in and out

The problem is that when I try to load a jpeg into shape\_mc like this:

shape\_mc.loadMovie(“05.jpg”, 9);

then the movie clip fader won’t work. The movie clip appears at about 10% alpha, but doesn’t fade in or out.

I’ve attached the .fla file.

Any suggestions would be greatly appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![jml](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jml](https://forum.kirupa.com/u/jml)\
**Post date:** [March 28, 2006, 12:45am UTC](https://forum.kirupa.com/t/fading-movie-clips/182389/2 "2006-03-28T00:45:05Z")

</div>

Stringy -

Sorry it took me so long to get back to the forum. Your script works beautifully - thanks so much.
