PDA

View Full Version : Create a dynamic text list



neas
May 12th, 2009, 08:32 PM
Hi,
I wanted to create a running list based on button functions for a menu I am designing.
A function for hotdog purchase is below.


function hotdog(evt:MouseEvent) {
var responderhotdog = new Responder(insertHotdog_Result);
//Call the insert titles function
myService.call("Purchase.insertPurchase", responderhotdog, "", "Customer", "Name", "101", "1", "1", "4", "Hot Dog");
foodorder.text = "Hot Dog";
}

foodorder.text will put that one word into the text field, but I wanted a running list of the items, and then a button to clear it. Any ideas?
Thanks,
neas