# Strange Behavior loading external .jpg

**URL:** <https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408>\
**Category:** flash\
**Created:** [August 13, 2003, 1:58pm UTC](https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408 "2003-08-13T13:58:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheOomen](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@TheOomen](https://forum.kirupa.com/u/TheOomen)\
**Post date:** [August 13, 2003, 1:58pm UTC](https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408/1 "2003-08-13T13:58:30Z")

</div>

Hi All,

I’ve created an movie called Home.swf, it consists of a background, some text and code for loading 6 external .jpg’s. ALL  
WORKS FINE !!

This movie is loaded in another Movie Called Main.swf, by the rules of the Tutorial “Creating A Full Webside”.

Strange thing is that it works, the movie is loaded, i see the background and the text, but NOT the external loaded .jpg’s

Can anyone explain why this doesn’t work ?

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2003, 2:58pm UTC](https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408/2 "2003-08-13T14:58:54Z")

</div>

What code are you using to load these jpgs?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2003, 3:23pm UTC](https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408/3 "2003-08-13T15:23:47Z")

</div>

Hi

This is the code i use to load the images

\_root.createEmptyMovieClip(“container01”,1);  
container01.loadMovie(“content/klein/\_trouwen01.jpg”);  
container01.\_x = 100; container01.\_y = 300 ;  
.  
.  
code for image 2 -\>5  
.  
.  
\_root.createEmptyMovieClip(“container06”,6);  
container06.loadMovie(“content/klein/\_trouwen06.jpg”);  
container06.\_x = 500; container06.\_y = 400 ;  
stop();

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2003, 3:51pm UTC](https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408/4 "2003-08-13T15:51:06Z")

</div>

well the problem is that the \_root of the home.swf is not the main timeline of the home.swf anymore It is now the main timeline of the main swf! Try adding \_root. in front of all the container-mcs! Or if you don’t like it being in the ultimate \_root. then replace \_root. with \_parent. (and also add it in front of every container);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2003, 4:01pm UTC](https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408/5 "2003-08-13T16:01:15Z")

</div>

🙂 Great That did the Trick, hummm so i’m still not understanding the function of \_root in all cases

Thanks !!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2003, 4:18pm UTC](https://forum.kirupa.com/t/strange-behavior-loading-external-jpg/28408/6 "2003-08-13T16:18:37Z")

</div>

\_root. just refers to the main timeline!  
Every movieclip has a timeline!  
When you put a movieclip ‘mc’ onto the main timeline then you should call it \_root.mc  
if yu put a movieclip ‘mc2’ inside ‘mc’ then that should be \_root.mc.mc2

if you load a movie into a movieclip then that movie simply becomes the contents of the movieclip! Like if you had put the stuff inside there yourself!
