i have this code:
i = 1;
pictures = new loadVars();
pictures.load("pic.txt", pictures);
pictures.onLoad = function() {
_root.poza.loadMovie(pictures.pic1);
_root.poza._x = 0;
_root.poza._y = 23;
};
stop();
i like to load some images wich adresses are in pic.txt at position pic1, pic2, pic3 etc. To load first image i write the line:
_root.poza.loadMovie(pictures.pic1);
but i like to increment i with 1 unit and the code must be something like this:
_root.poza.loadMovie(pictures.pic);
but when i do so flash try to load movie "pictures.pic" insted of position pic where my adress is located.
What can i do?
i = 1;
pictures = new loadVars();
pictures.load("pic.txt", pictures);
pictures.onLoad = function() {
_root.poza.loadMovie(pictures.pic1);
_root.poza._x = 0;
_root.poza._y = 23;
};
stop();
i like to load some images wich adresses are in pic.txt at position pic1, pic2, pic3 etc. To load first image i write the line:
_root.poza.loadMovie(pictures.pic1);
but i like to increment i with 1 unit and the code must be something like this:
_root.poza.loadMovie(pictures.pic);
but when i do so flash try to load movie "pictures.pic" insted of position pic where my adress is located.
What can i do?