Hi Maurice, Check out the "base" attribute for the object / embed tag (you can also define it with SwfObject and similar scripts for embedding swfs):
base - . or *[base directory]* or *[URL]*. Specifies the base directory or URL used to resolve all relative path statements in the Flash Player movie. This attribute is helpful when your Flash Player movies are kept in a different directory from your other files. http://kb2.adobe.com/cps/127/tn_12701.html Set it to "swf" and it should work without needing to hard code paths. I think you can also do this: loadSomethig("../xml/some.xml") if, for instance, you have an "xml" folder at the same level as "swf". Cheers Juan Pablo Califano 2009/6/3, maurice sallave <[email protected]>: > > Hello! > First time on here, so thanks for any advice. > I'm pulling in a preloader.swf file into an html file that sits at root > "swf/preloader.swf". All my swf's are located in a swf directory that gets > preloaded into this preloader.swf - simple enough. I'd like to try to keep > my server as clean as possible without having to hard-code the path into > the > preloader.swf file and don't want to use flashvars as a way of referencing > my targeted path. Is there another way of doing this? Of course if I put > the html file inside the swf directory, everything works, but it defeats > the > purpose of keeping my server organized. I hope this makes sense and again > thanks in advance. > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

