Code: Select all
import fl.controls.List;
import fl.data.DataProvider;
var PropertyList:Array = sfs.roomManager.getRoomList()
Map.pList.dataProvider = new DataProvider(PropertyList);
trace(PropertyList);
The array of rooms is working as its supposed to but I cannot use the array with the list component. No matter what I do the output in flash shows a reference error: ReferenceError: Error #1069: Property label not found on com.smartfoxserver.v2.entities.MMORoom and there is no default value. I've tried to change the labelField that the list component uses but it doesn't make a difference. When I used PropertyList.push("Test"); it added a comma and the word test after the entire array: [Room: The Map, Id: 0, GroupId: default]. So it's like its treating everything in the [] as one piece of info instead of 3 difference pieces in one chunk. Anyway I have no idea what to do I've tried searching the forums and on Google but I cant find anyone asking the same question. I would use the smartfoxbits roomlist component but I do not want to use the connector component. Any help would be greatly appreciated