Flash Help Urgently Needed

TheGiven

Dealer
Joined
Jul 13, 2010
Messages
216
Reaction score
29
Location
Cape Town
I have scowered the net for hours and cannot find a solution.... :mad:

I am trying to set up a new portfolio site

www.thegiven.co.za

The main page has three links/buttons.
each of these links takes you to a new page where a slideshow should load...

I am not able to edit the slideshows code.
The slideshow can be renamed, but it only wants to read the corresponding xml file if it is labeled slides.xml

Therefore I need to put each swf and xml file into its own seperate directory and tell the main swf to load from that directory.
So each of the three pages has a loadmovie container

and I am currently using the following code:

loader1.loadMovie("../photoshopped/pics.swf");

however I get a load failed error.

I have tried a variety of different syntaxes but nothing seems to work.

Anyone have any bright ideas?

Thanks
Abe
 
Have you tried a full path when including, instead of traversing to the directory, also check file permissions of the .swf's, another problem could be server restrictions as set-up by the admin i.e. the httpd process don't have privileges to run / execute the .sfw file.
 
try:

Code:
/photoshopped/pics.swf

or

Code:
photoshopped/pics.swf

by the way is your site hosted on widows or linux?

if windows try \'s instead of /'s.
 
Are you using ActionScript 3.0 or 2.0?

ActionScript 3.0
Code:
var myLoader:Loader = new Loader(); 
addChild(myLoader); 
var url:URLRequest = new URLRequest("myExternalMovie.swf"); 
myLoader.load(url);

ActionScript 2.0
Code:
 myContainer.loadMovie("myExternalMovie.swf");

or:

Code:
loadMovie("myExternalMovie.swf", myContainer); // the target myContainer is an object reference
loadMovie("myExternalMovie.swf", "myContainer"); // the target "myContainer" is a string

Both relative and absolute paths are supported
 
Last edited:
Using action script 2. Tried that method and it doesnt work...

Looking around on the net it seems many people have this issue.
I think I have a work around using seperate files and paths.
So instead of one file loading the others. I will use one file to load a url of each of the others as seperate files.

So instead of having www.thegiven.co.za as the address on every page, it will work more like a traditional site with www.thegiven.co.za/page2 ect.
 
Top
Sign up to the MyBroadband newsletter
X