PDA

View Full Version : Layers of loadMovie


sfhazel
04-05-2005, 06:09 AM
I have my main SWF file. It loads a new SWF into this main SWF for every section of my site. One such section is a gallery format. This SWF, when played alone, loads JPG thumbnails using the loadMovie() function. When it is loaded in my main movie, these JPGs do not load.

My question: Can you use loadMovie to load an item into a swf that has already been loaded into the main SWF?

If my words are not clear, this is what I am trying to explain:

index.swf ---> section.swf ---> thumbnail.jpg (does not work for me)
section.swf --> thumbnail.jpg (does work)

Does anyone know what might be causing this problem?

sfhazel
04-05-2005, 10:37 AM
I've tried loading the section into my main swf as layer 1, and loading my JPG file as layer 2. This still doesn't solve the problem.

dipkya
04-06-2005, 08:37 AM
Hi,
What you are trying to do is Load the section movie and within that load jpg files in it on a index file.
Right???
Check out this file I have made for you.

sfhazel
04-07-2005, 12:09 AM
Thank you for your very clear and easy to understand example. You showed me that it IS possible, so I checked my code again...

Here was the problem:

index.swf loaded section.swf, but section.swf was in a folder. The JPG file was also in this folder. When I played section.swf, the JPG was in that directory, so it loaded. But...when I loaded section.swf into the index.swf movie, it took on the index.swf's directory.

Solution: I made my section.swf movie load a JPG from "folder/file.jpg" instead of "file.jpg"

I feel slightly retarded for missing this tiny detail...