swfFolder = _level0._url.substring(0,_level0._url.lastIndexOf("/")) + "/";
then use this variable to load your data:
loadMovie(swfFolder + "image.jpg");
Peace
Chris
quinrou . wrote:
Hi,
My HTML and my flash movie live in 2 different directories. So when I
work
in the flash IDE my swf can load all its assets but when I try to use
that
same swf via its HTML page the swf can't find its assets. Because it
now has
its root as the html root. I am pretty sure there's a work around to
define
the swf directory as the root not the html.
thanks
seb
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com