Hello,
Let me start off by saying i am a beginner to actionscript, although i have a decent amount of experience in programming.
I am currently using Flash MX6.
I have reviewed all the help files available in flash and read most of the recent topics on this forum, but i am still stuck with a problem. This is probably due to my inexperience with actionscript, so i propose this question to the Forum...
(This should be simple enough for all you Hardcore action scripters!

My aim is to load a list of JPEGS at run time and display them on a viewer(Created by Flash) one by one.
To make matters simple ill cut down to the problem...
When i try to load the variable list with the names of the jpegs from a text file and then ask flash to display them, this does not work.
For example lets just load one piture name variable...
loadVariablesNum("Index.txt", 0);
//This loads a variable loadname=picture1.jpg
Viewer.loadMovie(loadname);
//This should display the jpeg "picture1.jpg" in the object "Viewer"
So basically by assiging the contents of the text file to the variable "loadname" i should then be able to use this variable to call the movie load file.
This does not work...
I have tried several things...
I tried inserting a loadname="picture1.jpg"; in the actionscript before the load, and obviously this did work. I also tried displaying the contents of the variable "loadname" in a dynamic text field, and it displayed it correctly.
This means that the variable is loading from the text file and that the jpeg should be displayed if the variable was being handed correctly.
SO WHY DOES THE .loadMovie NOT RECOGNISE MY VARIABLE loadname EVEN WHEN THE DYNAMIC TEXT FIELD DOES

Thanks for your time, i tried not to be long winded, but you have to explain these things correctly.
Cheers,
Mek