Strange Behavior loading external .jpg

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

What code are you using to load these jpgs?

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

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);

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

Thanks !!!

_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!