# Done!real Dynamic Gallery

**URL:** <https://forum.kirupa.com/t/done-real-dynamic-gallery/64610>\
**Category:** Uncategorized\
**Created:** [September 17, 2004, 11:00pm UTC](https://forum.kirupa.com/t/done-real-dynamic-gallery/64610 "2004-09-17T23:00:30Z")\
**Posts on this page:** 2\
**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, 11:00pm UTC](https://forum.kirupa.com/t/done-real-dynamic-gallery/64610/1 "2004-09-17T23:00:30Z")

</div>

Feel Free!!!

Doesnt need image 01.jpgs inyour folders.

Add any actions or button functions you need.  
You’ll need to add cahekills and refresh onloads in the asp page but…

[size=4][color=red]as long as you can get your asp page to say:[/color][/size]

\<%@ LANGUAGE = “VBSCRIPT” %\>  
\<% Option Explicit %\>

\<%  
Dim myFSO, myFolder, myfile, FormFold  
FormFold = Request.form(“folder”)  
Set myFSO = Server.CreateObject(“Scripting.FileSystemObject”)  
Set myFolder = myFSO.GetFolder(“D:\Inetpub\wwwroot\FLASHASP\images” & FormFold)  
%\>  
\<%  
Dim myList, i, filecount  
i=1  
//myList = “images\_list=”  
filecount = myFolder.Files.Count

//Do While i \< filecount  
// Response.Write “var” & i & “=” & var(i) & “&”  
// i = i + 1  
//  
//filecount = 40  
//for i = 0 to filecount  
// document.write("The number is " & i & “\<br /\>”)  
//next  
//Do While i\<filecount  
For Each myFile in myFolder.Files  
myList = myList & “&image” & i & “=” & myfile.Name  
//Loop  
i = i+1  
Next  
Response.Write myList  
Response.Write “&imagecount=” & filecount  
//  
%\>

[size=5][color=red]and your flash file to say[/color][/size]

myData = new LoadVars();  
myData.onLoad = function() {

//i= 5;  
image5.text= myData.image5;  
filepath = “[http://123.123.123/images/](http://123.123.123/images/)”;

numButtons = myData.imagecount;  
X = 10;  
Y = 10;  
for (i=1; i\<=numButtons; ++i) {

\_root.attachMovie(“button”, “button”+i, i);

mydatavalue = [myData[“image”+_]];  
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+myData[“image”+[this.index]], “container”);  
container.\_x =200;  
container.\_y = 200;  
}  
}  
}

myData.load(“default.asp?”);

[size=4]youre set.[/size]  
[size=4][/size]  
[size=4]Dont for get the synatax for create emptymovielcip so that you know what your linkage properties should be for your buttons.[/size]  
[size=4][/size]  
[size=4]Mind the buttons, and filepathnames.[/size]  
[size=4][/size]  
[size=4]use some if… elses for x and y buttons and or rows.[/size]  
[size=4]call a movie clip with a mask for transistions.[/size]  
[size=4][/size]  
[size=4]Get IIS runnin[/size]

[size=3][color=darkred]\*\*\*PLEASE RATE THIS SOLUTION 1-10\*\*\*[/color][/size]  
[size=3][color=darkred]\*\*\*\*\*\*[/color][/size]  
[size=3][color=darkred]\*\*\*even if you dont use it\*\*\*[/color][/size]  
[size=3][color=darkred]\*\*\*\*\*\*[/color][/size]  
[size=3][color=darkred]\*\*\*i just want feedback if possible\*\*\*[/color][/size]  
[size=3][color=darkred]\*\*\*\*\*\*[/color][/size]  
[size=3][color=darkred]\*\*\*Thankx\*\*\*[/color][/size]  
[size=4][/size]  
[size=4]Jaboy[/size]  
[size=4][/size]  
[size=4][/size]  
[size=4][/size]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 18, 2004, 11:41pm UTC](https://forum.kirupa.com/t/done-real-dynamic-gallery/64610/2 "2004-09-18T23:41:00Z")

</div>

**Throw me a friggin bone here!**  
\*\ ***COME ON!22 views and NO RATINGS?**  
\*\*
