[color=black]Dynamic = check folder contents, uses filenames. Drag and drop for end user.[/color]
my asp output page look like this
&image1=me.jpg&image2=norm.jpg&image3=forestgump.jpg&…imagecount=10
It ASSIGNS IMAGE NUMBERS TO THE FILE NAMES
no problem getting them into flash.
myData = new LoadVars();
myData.onLoad = function() {
filepath = “http://123.123.123/FLASHASP/images/”;
numButtons = myData.imagecount;
X = 10;
Y = 10;
for (i=1; i<=numButtons; ++i) {
[size=5][color=red]mydatavalue = myData.image5;[/color][/size]
[size=5][color=#ff0000][/color][/size]
[size=5][color=red][size=3]can we get mydatavalue= image* or image+i to work somehow within the loop?[/size][/color][/size]
[size=5][color=red][size=3]this will work[/size][/color][/size]
[size=5][color=red]
[/color][/size] _root.attachMovie(“button”, “button”+i, i);
buttons* = _root[“button”+i];
_root[“button”+i].index = i;
_root[“button”+i].num = i;
_root[“button”+i]._x = (i*X)*4;
_root[“button”+i]._y = 20;
_root[“button”+i].onPress = function () {
_root.createEmptyMovieClip(“container”,300);
container.loadMovie(filepath+[size=5][color=red]mydatavalue[/color][/size], “container”);
container._x =200;
container._y = 50;
}
}
}
myData.load(“default.asp”);
Someone knows how to workaround this im sure.
We can all benefit!!
I will complete step by step using the fade functions from the other tutorials if we can just figure out this line