Welcome to WebmasterWorld Guest from 50.16.78.128

Forum Moderators: open

Message Too Old, No Replies

Flash getURL() baseURL?

Is there one?

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

WebmasterWorld Senior Member 10+ Year Member



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)

5+ Year Member



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