flash question...
- Started
- Last post
- 4 Responses
- lusty
hi
i need to know if theres a way to load an external SWF in a relative paththe only way it works if the movies are in a cd, but if it is a website the only way (that have work for me) is with absolute path
my link is like this:
on (release) {
_root.contents.loadMovie("http...
}thanks a lot!
- tGP0
you can go relative:
on (release) {
_root.contents.loadM ovie("main. swf");
}or
on (release) {
_root.contents.loadM ovie("./images/main. swf");
}dependent on however your files are in your directory...
- lusty0
i have done it like that, and doesnt work...
- function820
make sure the file is in the correct location relative to the main swf, because relative paths should work
- abstrakt0
realtive paths work just fine. sometimes if you're loading an SWF from an external SWF it'll use that SWF's directory as the base. figure out which director it's using as its base.