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/”;
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]