LukeManic
03-19-2007, 01:10 PM
Hi guys, I'm slightly new to flash and have come across something which is making my head ache :p
Ive got a movie which fetchs information from a database and prints it within the flash movie, this all works fine until I change the server which the .swf file is on. It means I have to go back into the flash file and manually change the URL path to the relevant domain.
So in small I would like to know how to dynamically change the URL path below based on the server it is located on, is this possible in flash?
onClipEvent(load){
loadVariables("http://www.domainname.com/read.php", this, "GET");
}
Thanks in advance,
Luke.
Ive got a movie which fetchs information from a database and prints it within the flash movie, this all works fine until I change the server which the .swf file is on. It means I have to go back into the flash file and manually change the URL path to the relevant domain.
So in small I would like to know how to dynamically change the URL path below based on the server it is located on, is this possible in flash?
onClipEvent(load){
loadVariables("http://www.domainname.com/read.php", this, "GET");
}
Thanks in advance,
Luke.