xyboox
05-17-2005, 01:40 PM
Hi,
it seems to be so simple, and still...not working:
on the first frame of the movie, I have an actionscript:
loadVariables("myData.txt", this);
in myData.txt I've wrote:
&fisier=1.jpg&
Then, on the second frame ( and the last one ), I have an empty movieclip, with an instance called "target_mc" and an actionscript:
loadMovie(fisier, this.target_mc);
stop();
In the same folder with the .swf I have a .jpg called 1.jpg
Now, my question is: WHY ISN'T "1.JPG" LOADING?? I allways get the error message: "Error opening URL "file:///C|/Documents%20and%20Settings/...../undefined" !!
Do I have to declare somehow the variable "fisier" as global ( like in php )?? Or...what else is missing???
As a note: if I put a dynamic text on the second frame, and set the value to be the variable "fisier", the text box displays correctly the value of "fisier" !! So loadVariable is working ok, but the value of the retrieved variable is lost when I try to use it in loadMovie statement.
Thankx for any help you may give me!
it seems to be so simple, and still...not working:
on the first frame of the movie, I have an actionscript:
loadVariables("myData.txt", this);
in myData.txt I've wrote:
&fisier=1.jpg&
Then, on the second frame ( and the last one ), I have an empty movieclip, with an instance called "target_mc" and an actionscript:
loadMovie(fisier, this.target_mc);
stop();
In the same folder with the .swf I have a .jpg called 1.jpg
Now, my question is: WHY ISN'T "1.JPG" LOADING?? I allways get the error message: "Error opening URL "file:///C|/Documents%20and%20Settings/...../undefined" !!
Do I have to declare somehow the variable "fisier" as global ( like in php )?? Or...what else is missing???
As a note: if I put a dynamic text on the second frame, and set the value to be the variable "fisier", the text box displays correctly the value of "fisier" !! So loadVariable is working ok, but the value of the retrieved variable is lost when I try to use it in loadMovie statement.
Thankx for any help you may give me!