# Please help - need to load images only once

**URL:** <https://forum.kirupa.com/t/please-help-need-to-load-images-only-once/118828>\
**Category:** Uncategorized\
**Created:** [August 9, 2004, 2:45pm UTC](https://forum.kirupa.com/t/please-help-need-to-load-images-only-once/118828 "2004-08-09T14:45:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Algreco](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Algreco](https://forum.kirupa.com/u/Algreco)\
**Post date:** [August 9, 2004, 2:45pm UTC](https://forum.kirupa.com/t/please-help-need-to-load-images-only-once/118828/1 "2004-08-09T14:45:42Z")

</div>

I have an empty movie clip (empty\_mc). In it I create empty movie clips into which I load images dynaimcally (“holder”).  
here’s the script:

var image\_arr = new Array(“1.jpg”, “2.jpg”, “3.jpg”,…“7.jpg”);  
for (var i = 0; i\<image\_arr.length; i++)  
{  
this.createEmptyMovieClip (“holder”+i, i)  
loadMovie (image\_arr\*, “holder”+i);  
}  
}

Then, from the main timeline I want to manipulate empty\_mc. move it around and creat effects like alpha fadeout. For that I need to insert keyframes on the main timeline where the empty movieclip is. The problem is that everytime I insert a keyframe it loads the images again!. I have to have the images load ONLY ONCE into thier “holder” movie clips.  
Can anyone PLEASE help me and adjust my code to allow that to happen?

---

<div class="post-metadata">

**Author:** ![Algreco](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Algreco](https://forum.kirupa.com/u/Algreco)\
**Post date:** [August 10, 2004, 7:55pm UTC](https://forum.kirupa.com/t/please-help-need-to-load-images-only-once/118828/2 "2004-08-10T19:55:24Z")

</div>

nobody? ☹

---

<div class="post-metadata">

**Author:** ![2nd\_day](https://avatars.discourse-cdn.com/v4/letter/2/a4c791/32.png) [@2nd\_day](https://forum.kirupa.com/u/2nd_day)\
**Post date:** [August 10, 2004, 8:13pm UTC](https://forum.kirupa.com/t/please-help-need-to-load-images-only-once/118828/3 "2004-08-10T20:13:22Z")

</div>

do you use actionscript for the alpha changing?

---

<div class="post-metadata">

**Author:** ![Algreco](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Algreco](https://forum.kirupa.com/u/Algreco)\
**Post date:** [August 11, 2004, 12:10pm UTC](https://forum.kirupa.com/t/please-help-need-to-load-images-only-once/118828/4 "2004-08-11T12:10:39Z")

</div>

> [@2nd day](#):
>
> do you use actionscript for the alpha changing?

hey, 2nd Day,  
I don’t use action script. I need to do it “manually” on the time line. alpha is not the only effect i use, so i need to add frames ontop of the timeline
