Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash movie and image paths (relative - absolute?)

Status
Not open for further replies.
Jan 11, 2007
51
I have a flash movie in an ASP.NET web application (I am software dev not a flash person). The SWF looks at an XML file that passes in an image url that is then in turn displayed on in that movie:



In the XML the image path I pass I have tried several options. Here is the image:


I tried the actual url (above). I tried relative (../../_mediaStore/image/1.jpg) I tried root relative (/_mediaStore/image/1.jpg)

The SWF lives in

root - /profile/userPlayer/UserPlayer.swf

the XML is in the same directory. The HTML page is

root - /profile/


None of them work!! What the heck?! Please heeelp me!

-- jenni
 
hi - am having the same issue with paths
to xml files and links on text
the only way i am gettin success is to include full
url


this is fine on my laptop - but when i move to a different
server this will cause issues

how do i get flash to always look from the root of the site
without having to put the server name in?
 
Use relative path. But if your SWF is in the different directory from your HTML the path becomes relative to the HTML, that's probably your problem. If so use [tt]this._url[/tt] to obtain the URL of the SWF first then resolve the path to your XML using that URL.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top