Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recordset output best practice

Status
Not open for further replies.

NorthStarDA

IS-IT--Management
Mar 16, 2004
614
US
what is the best way to output resultsets in flash? i am a coldfusion developer getting into flash development specifically with flash remoting and actionscript 2.0. i am familiar with the list and datagrid components but they do not seem to offer what I am trying to do, i want to output records as i would in CF by iterating over the object and displaying the records with whatever formatting/rollovers i specify, maybe underlined with a graphic on the left or something like that. i've been googling for a few hours and am no closer.


=========================================
I have not failed. I've just found 10,000 ways that won't work.
Thomas A. Edison
 
you will have to output results into a text area component to get all of the above
 
this is the method i'm using to output query results from flash remoting, works great except i cannot get rid of the clips made with duplicateMovieClip, i have this code on a keyframe and the list shows up on other keyframes where these clips were not created, and on top of everything else on the stage, how do you get around that with duplicateMovieClip?

using flash pro 8, actionscript 2.0

Code:
function getJobs_Result(result){
	clearResults();
	depth = 1;
	yposition = getProperty(jobItem, _y);
	showingResults = true;
	numResults = result.getLength();
	if(numResults > 10){loopEnd = 10} else {loopEnd = numResults}
	for(i=0;i<loopEnd;i++){
		duplicateMovieClip(jobItem, "jobItem_" add i, depth);
		eval("jobItem_" add i).swapDepths(this);
		setProperty("jobItem_" add i, _y, yposition);
		depth++;
		yposition = yposition+getProperty(jobItem, _height);
		eval("jobItem_" add i).OrderID = result.items[i].OrderID;
		eval("jobItem_" add i).JobTitle = result.items[i].JobTitle;
		var tLocation = result.items[i].City + ", " + result.items[i].State;
		eval("jobItem_" add i).Location = tLocation;
	}
}

=========================================
Don't sweat the petty things and don't pet the sweaty things.
 
in a word removeMovieClip()


or maybe depending on the rest of your code set the visible property to false
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top