This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Macromedia Flash > November 2003 > Problem using variable to load URL...Please help





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problem using variable to load URL...Please help
Daman Gecko

2003-11-30, 12:42 pm

Using Flash MX

I am trying to use a variable assigned in a text file to direct the
loadMovie action to the correct folder to load the movie from.


loadVariables("vars.txt", "_root");
loadMovie("http://www.mysite.com/client/" + _clientNumber
+"/pic0.jpg","picholder");


Here is how the variable was assigned in vars.txt:
&_clientNumber=0000000053


Here is the error message:
Error opening URL "http://www.mysite.com/client//pic0.jpg"

so obviously the variable is not being concatenated as it should. Any
suggestions appreciated...

DG
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews