PDA

View Full Version : Different directories, movies not loading


Minky
09-10-2006, 02:46 PM
Hi,
I've been working on some e-catalogues for a client. They have requested that when I supply the job back to them (they won't let me upload it to their site), that there are separate directories for swf, js, jpg etc.
So I have a main directory with the index.html and 2 folders, one for javascript (called js, where I put swfobject.js) and one called swf
The main movie loads external swfs into a scrollpane component.
When all the files are in the same directory, they work fine, but when I separate them, they dont.
The parent movie is in the same directory as the external swfs, so I don't understand what could be going wrong.
There is a working one here (http://www.mexicanred.com/e-broch) where the parent movie loads, and a thumbnails page, which is an external swf loads in (eventually!)
Here (http://www.mexicanred.com/test) is the one where there are separate directories for the .swf and .js - the main swf loads in but no sign of the thumbnails page.
Also, I have preloaders on all my external swfs, but they don't seem to show up - should I have just one preloader in the main movie?

Thanks in advance,
Al

Sunny13
09-10-2006, 05:32 PM
I think it is a path problem..... test your movie and see if you got some error in trace window.... error loading some .swf file.

CyanBlue
09-10-2006, 07:11 PM
It sure is the path problem...

Your SWF file is looking for the thumbnail file from here, http://www.mexicanred.com/test/070906-en-catalogue-team-thumbs.swf, when you actually have it stored in here, http://www.mexicanred.com/test/swf/070906-en-catalogue-team-thumbs.swf...

What's happening is that your HTML file, http://www.mexicanred.com/test/index.html, is one level up from the directory where you have stashed the SWF files, hence the base directory becomes http://www.mexicanred.com/test/ not http://www.mexicanred.com/test/swf...

The easiest way to solve the problem would be moving your main SWF file into the http://www.mexicanred.com/test/ directory...

Minky
09-11-2006, 09:40 AM
Hi Guys,
Thanks for the replies.
I know what you mean, but my main movie is using a relative path to load in the other swfs. My scrollpane on the main movie is called 'page', so on the first frame I've got an action:
page.contentPath = "070906-en-catalogue-team-thumbs.swf"
and the main swf is in the directory with all the external swfs.

Do I need to use an absolute path for all the external swfs?

Normally I wouldn't separate stuff into different folders but the client is insisting that I do it this way.
thanks,
Al

Minky
09-13-2006, 10:26 AM
Hello,
My problem is solved.
Just incase anyone else has a similar prob:
All the movies had to sit in a folder called 'swf'. The main movie loaded the other movies into a scrollpane component (instance name 'page' in my movie)
So the frame action on my main movie to load one of the other movies into the scrollpane is:
page.contentPath = "swf/070906-en-catalogue-team-thumbs.swf"

Thanks,
Allison