Welcome to WebmasterWorld Guest from 23.22.182.29

Forum Moderators: open

Message Too Old, No Replies

Flash getURL() baseURL?

Is there one?

     
5:03 am on Aug 6, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Dec 30, 2002
posts:1186
votes: 0


I inherited a project from someone and naturally, there's no documentation. Anyway, when I run the flash navigation bar from my Windows workstation is uses relative pages. But as soon as I try to run it from my Linux server it uses an abo#*$!e path (http://www.xyz.com/), which is screwing up the QA env, since it keeps navigating over to the production environment.

I've stared at the Flash file for over an hour. All I see are calls like getURL("/section/") ... so I have no idea where the base url (http://www.xyz.com/) is coming from. Why would it try to go to [xyz.com...] when its on the Linux env? Is there some sort of baseURL parameter you can set on Flash that I'm not aware of?

Note - this happens even when I call the swf file directly in the browser (no HTML context).

Thanks.

2:25 pm on Aug 15, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:July 31, 2005
posts:117
votes: 0


if you change getURL("/section/") to getURL("section/") - remove the first slash, it should then be relative.