Problem retrivinging the correct value from asp file

Hi,

I want to retrive a value from an asp file. The value should be used in displaying the correct path to different folders containing images.

In Flash I’ve tried this and it works:
thePics = “images/west/”;
this.pathToPics = (thePics); //this is the path to my image folder west the picture is displayed automaticaly

My problems starts when i want to retrive the path (images/west/) from my asp file. Even if I am able to retrive the correct value flash don’t display the image. I want to send the value from thePics into my flash file.

My asp file:
<% Response.Write “thePics=/images/dragar/” %>
Which gives the output: thePics=/images/dragar/

My flash file:
this.loadVariables(“test.asp”);
this.pathToPics = (thePics); //Here is where I want my asp value, the path to the images, but it doesn’t work. No images are being displayed.

Could there be something wrong with the way I’m sending the asp value to flash?

Not sure if it works, but you could try this :

 
<% Response.Write "thePics='/images/dragar/'" %>

Else you might want to dig into the loadVars class, cause it maybe that you trying to retrieve data which hasnt finished loading yet, in this case use loadVars to get a true from loadVars.loaded before you start setting the retrieved vars.

(im a bad explainer)

gl =]

Thanks, but the first thing didn’t work. I’m new to flash so I have no idea how to do what you said in your later reply…

The thing is I am able to retrive the value, but when I want to use it in the path to the images it doesn’t work.