Search…

X3 Photo Gallery Support Forums

Search…
 
boquiabierto
Topic Author
Posts: 2
Joined: 07 Dec 2007, 16:46

Paths? local tested works but not online

07 Dec 2007, 17:39

Hi,

to get into it, here is my path-situation:

index.html
flashsite/index.swf (Master swf)
gallery/imageVue.swf

emedded with success imageVue into my master index.swf localy with:
Code
this.my_mcl.loadClip(baseURL+"../gallery/imageVue.swf?globalpath=gallery/", this.gallerycontainer);
where baseURL = flashsite/
(use baseURL for testing in/outside browser an because index.swf and index.html are not at the same level)
The output for URL is therefore: flashsite/../gallery/imageVue.swf
And localy it works just fine. Uploading to server with no result, just: "ERRORCODE: URLNotFound" from the MovieClipLoader.

Tried lots of path combinatios, also to put the gallery-folder into the flashsite-folder for "clean" rootline; Localy (Mamp) and direct from flashfile it loads perfectly.
Tried also absolut paths to server and from the server itself adjusting sandbox...no result.

Next Step?

To see the sad action: http://www.motorgranada.es/test.html
take the sixth tab called “EQUIPOâ€Â
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

08 Dec 2007, 22:52

Since the entire flash will be embedded in your "index.html", you should only take into consideration the path from this file when loading the imagevue.swf. Even if your embedded master swf is in another folder, it will still look for the imagevue.swf relative to the root index document. I imagine your code should look like this:
Code
this.my_mcl.loadClip("gallery/imageVue.swf?globalpath=gallery/", this.gallerycontainer);
Important!
Why are you using uppercase "V" in imageVue.swf? The original file is "imagevue.swf". This could be a reason it is working locally and not on server, because locally, case differences will be disregarded, while your server is case sensitive. If the server tries to load "imageVue.swf" and the file is called "imagevue.swf" then you will get a load error.
 
boquiabierto
Topic Author
Posts: 2
Joined: 07 Dec 2007, 16:46

09 Dec 2007, 06:05

casesensitive, that simple. It loads!
Please take care of the online documentation, the “imageVue.swfâ€Â