# NOT DYNAMIC =img01 img02 img03

**URL:** <https://forum.kirupa.com/t/not-dynamic-img01-img02-img03/64509>\
**Category:** flash\
**Created:** [September 17, 2004, 1:47am UTC](https://forum.kirupa.com/t/not-dynamic-img01-img02-img03/64509 "2004-09-17T01:47:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jaboy](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@Jaboy](https://forum.kirupa.com/u/Jaboy)\
**Post date:** [September 17, 2004, 1:47am UTC](https://forum.kirupa.com/t/not-dynamic-img01-img02-img03/64509/1 "2004-09-17T01:47:51Z")

</div>

**[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/](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
