Thanks Dave,

Did not know this, I am sure it will come in handy but I have another swf file that gets loaded at a different time and in the same way which loads fine, so it must be something else.

I'll just have to  go through my  code (again) to try and find the problem.

cheers
JohnT


dave matthews wrote:

hi  JohnT,

The path to loaded .swf files changes when accessing from an HTML page on the net - it is different than the IDE/authoring environment.

For example, with all .swf's in the same folder, the path is direct, the main.swf loads peers from the same folder.

When main.swf is embedded in a web page, main.swf loads from the web page's _files folder (adjust file explorer in windoze to show 'hidden' folders)... HTML pages with .swf content store assets in an accompanying 'webPageName_files' folder.

So, main.swf must call to the web page's accompanying folder to find the to be loaded .swf files, since main.swf is now outside of the storage folder - the path from the HTML embedded main.swf would be: webPageName_files/to_be_loaded.swf

The key is that even though all the .swf files are in the same folder on the server, the main.swf is actually outside of that folder in the HTML page when it is trying to call the content to load.

Also, an earlier comment in this thread mentioned case ( capital vs small letters ) on many servers... it's true.

hth,
Dave_Matthews
http://www.2GoTo.com
-----------------------------original-----------
Message: 10
Date: Mon, 11 Jun 2007 19:38:06 +1000
From: John Trentini <[EMAIL PROTECTED]>
Subject: [Flashcoders] Swf not loading at run time



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to