:disgust;
HELP anyone, please.
I'm trying to get flash to read a list. The flash and cfm files are in the
same directory. If I cut and paste the output from the cfm file into .txt file,
flash has no problem reading it! What's going on?
Here's my code on the coldfusion side:
<cfquery name="Recordset1" datasource="Staffinfo">
SELECT LASTNAME, FIRSTNAME
FROM stafflist
ORDER BY lastname
</cfquery>
<!--- create an array --->
<cfset myArray = ArrayNew(1)>
<!--- loop through query, append names successively to last element --->
<cfloop query = "Recordset1">
<cfset temp = ArrayAppend(myArray, "#lastName#")>
</cfloop>
<!--- show the resulting array as a list --->
<cfset myList = ArrayToList(myArray, ",")>
<!--- sort that array descending alphabetically --->
<cfset myAlphaArray = ArraySort(myArray, "textnocase", "desc")>
<!--- show the resulting alphabetized array as a list --->
<cfset myAlphaList = ArrayToList(myArray, ",")>
vars=<cfoutput>#myList#</cfoutput>
Here's my cold on the Flash Side:
myVars=new LoadVars();
thevars="variables.cfm";
myVars.load(thevars);
myVars.onLoad=function(){
trace(myVars.vars);
}
button_btn.onRelease=function(){
trace(myVars.vars);
}[h]Text[/h][h]Text[/h][Q]Text[/Q][h]Text[/h][h]Text[/h]