View Single Post
  #1 (permalink)  
Old Aug 23rd, 2006, 14:27
DocBoy52 DocBoy52 is offline
Junior Member
Join Date: Jun 2004
Location: USA
Age: 25
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
loadMovie function (and absolute/relative URL's)

Hows come when I use the loadMovie() function in Flash, I can just enter the filename [ie: loadMovie("thefile.jpg", _root.theContainer)], and it works fine when it's on my local machine, but then when I upload it, it wont display local URL's for the file (yes, I have the file uploaded in the same directory as the .swf file). In other words, in order for me to get the loadMovie function to work on the web, I have to use an absolute url pointing to the picture (ie: loadMovie("http://www....").

You get the picture. At this point, I have two questions:


1. Why does Flash do this?

2. Is there any way within Flash (or other external languages), that I can get the directory that the .swf file is in, into the flash movie as a variable, because the exact URL for the image is not going to be static.
Reply With Quote