# Dynamikally loaded images blink

**URL:** https://forum.kirupa.com/t/dynamikally-loaded-images-blink/168291
**Category:** Uncategorized
**Created:** [November 5, 2005, 10:34pm UTC](https://forum.kirupa.com/t/dynamikally-loaded-images-blink/168291 "2005-11-05T22:34:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lolena1888](https://avatars.discourse-cdn.com/v4/letter/l/3da27b/32.png) [@lolena1888](https://forum.kirupa.com/u/lolena1888)
#### Post date: [November 5, 2005, 10:34pm UTC](https://forum.kirupa.com/t/dynamikally-loaded-images-blink/168291/1 "2005-11-05T22:34:30Z")

</div>

I load images dynamically from the xml.

I use this function:

loadImage=function(num)  
{ eval(“holder”+num).clip\_mc.loadMovie(path+pageImage[imageLoaded]);  
(num\<2) ? imageLoaded++ : imageLoaded+0;  
if (imageLoaded+1\>imagesNum)  
{ imageLoaded=0; }  
};

where holder.clip\_mc - mask for the imageholder. I have 2 of them  
on the stage for 2 masks,  
pageImage -array of images from the xml,  
imagesNum - array length,  
imageLoaded - index of image that’s already been loaded.

When I load new image in the placeholder, it blinks first. Where the problem can be? Help me, please.
