object problem
hi
how are you guys ? i hope you all fine ..
here ..
iam having problem with object , i want to make the object properties arrays ..
am gonna explain the code that will be better
first i want to create object
a:Object = new Object()
a.itemname = itemnamevar
a.itemprice = itempricevar
this the object and the itemnamevar and the itempricevar are also object (2 text boxes) so the variables contents
itemnamevar = item.text
itempricevar = int(price.text)
so when i enter the name and the price for the customers it will be only one place
and it is going to change every time
for ( i:string in a){
...
trace() // here they gonna change every time , i mean after entring another price and name
}
so .. i need to put these in array , but i realy dont know how to this in object class
thank you
