PDA

View Full Version : coldfusion to flash help


seeFresh
10-28-2005, 01:53 PM
I'm not sure what forum this should go in ... and I know I should probably go to a coldfusion board, but I figure someone here would know about it. I mean, its amazing how smart so many people are on this board. Anyway, here goes.

I know xml, asp.net, perl, php, javascript, etc....but the one thing I don't know is coldfusion. I need one script of coldfusion for a flash program. This guy wants to put one of my programs on his server. The program uses sendAndLoad to send a directory name to a script (usually asp.net on my server) and then the script sends back a list of files in that directory. In this format:

numFiles=4&files=file1.jpg||file2.jpg||file3.jpg||file4.jpg

Can anyone help with a simple coldfusion script for this?

thanks

seeFresh
10-30-2005, 09:33 PM
bumpitybump

jnmdevelopment
11-16-2005, 01:23 AM
here ya go, quick and easy using coldfusion tags.

<cfparam name="variables.mydir" default="C:\inetpub\wwwroot">
<cfdirectory directory="#variables.mydir#" action="list" name="getdir">
<cfset mylistout = 'numFiles=#getdir.recordcount#&files='>
<cfoutput>
<cfloop list="#valuelist(getdir.name)#" index="i">
<cfset mylistout = mylistout&i&'||'>
</cfloop>
</cfoutput>
<cfdump var="#mylistout#">