This content has been marked as final. Show 5 replies
nevermind. path problem.
Just wanted to add that for any external asset – loaded jpg, xml file, LoadVars, swf, etc. – that the path is relative to the html page, not the swf file that is calling the asset.
If your html and swf are in the same folder there is no problem. But if you try and create some nice structure with the swf in a different folder you will have to be careful about the pathing.
I don't know if this is what you figured out, but thought it should be stated for anybody else who happens upon this thread.
that was it exactly. I was just trying to be too organized. Actually kept the organization and changed my path. Thanks for the response.
Ah, I could also use some help with this HTML/path issue. I've got my HTML page and my SWF file in separate folders (called 'HTML' and 'Flash'); the folders are side by side in the hierarchy (uh, siblings, is that?).
In my Loader component's parameters, should the path be set like in HTML:
or should it be set like in Actionscript:
I'm incredibly new to this, so sorry if I'm being absurdly dense.
Many thanks in advance;
The first one should work. The second one is wrong for two reasons. First it would be:
Note the lowercase "p". But more importantly that is the syntax that Flash uses internally for its own objects. The external references need to go outside flash and they use the same type of notation used by file systems and the http.
I think. Of course the best way to be sure is to test it. :)