# Depth Problem (I think)

**URL:** <https://forum.kirupa.com/t/depth-problem-i-think/152016>\
**Category:** flash\
**Created:** [June 20, 2005, 4:16pm UTC](https://forum.kirupa.com/t/depth-problem-i-think/152016 "2005-06-20T16:16:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingfish](https://avatars.discourse-cdn.com/v4/letter/k/cab0a1/32.png) [@kingfish](https://forum.kirupa.com/u/kingfish)\
**Post date:** [June 20, 2005, 4:16pm UTC](https://forum.kirupa.com/t/depth-problem-i-think/152016/1 "2005-06-20T16:16:26Z")

</div>

Hi all,

I’m loading jpg images into my main timeline using AS. The problem is that only one image is displaying at a time. I’ve played with different depth levels, but that doesn’t seem to do it.

Here’a the AS I’m using:  
\_root.createEmptyMovieClip(“container4”,1);  
container4.loadMovie(“photos/small1.jpg”);  
container4.\_x = 270;  
container4.\_y = 0;  
container4.\_alpha = 0;  
onEnterFrame = function () {  
if (container4.\_alpha\<100) {  
container4.\_alpha += \_global.fadespeed;  
}  
};

Here’s the code that I use to create the second clip. This occurs in its own frame at the same point in the timeline:

\_root.createEmptyMovieClip(“container5”,2);  
container5.loadMovie(“photos/small2.jpg”);  
container5.\_x = 360;  
container5.\_y = 0;  
container5.\_alpha = 0;  
onEnterFrame = function () {  
if (container5.\_alpha\<100) {  
container5.\_alpha += \_global.fadespeed;  
}  
};

Any help would be appreciated.
