homepage Welcome to WebmasterWorld Guest from 54.226.80.196
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Flash getURL() baseURL?
Is there one?
cabbagehead




msg:3035826
 5:03 am on Aug 6, 2006 (gmt 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.

 

dareRock




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved