PDA

View Full Version : Action Script help



TheGiven
25-04-2011, 09:52 PM
Yo,

So I am busy setting up my new portfolio
And my action scripting seems to have come unstuck...

I am using loader1.loadMovie("myswf.swf");
stop();

Which works fine... However i now need to load
The swf from outside of the root directory using loader1.loadmovie("directory/myswf.swf") which should work
But it isn't *frustrated*

Anyone know flash that can help?

Thanks abe

Skitter
25-04-2011, 10:07 PM
Any particular reason why the file can't be in the root folder? Sorry if it's a stupid question, but Flash makes me run crying... lol.

TheGiven
25-04-2011, 10:14 PM
One my site I have a main swf which then loads three other swf files. All three of these files are slideshows. Each of them can ONLY read from an XML labeled
slides.xml. Therefore if they are all in the same root folder they will all load the same slides.xml

My idea was to have each in its own sub folder to keep the slides.xml files seperate.

But now I cant get the main swf to load a swf in a different folder...

murraybiscuit
25-04-2011, 10:28 PM
depends on whether you're testing from localhost or a local file obviously your paths will be different depending.
with a local file, / = c:
with a webserver, / = domain root.
bear in mind that your paths also need to be relative to your page, not your swf... or vice versa, can't remember which.

TheGiven
26-04-2011, 09:18 AM
Yea I get that, I can make it work if I am testing off my machine, but not off the net...