I'm writing a game in actionscript 3, I have a shared object that saves what inventory items you have collected. The data attributes of this shared object are for example:
inventorySO.data.appleInventory = false;
inventorySO.data.branchInventory = false;
inventorySO.data.tamagotchiInventory = false;
I've already worked out how to loop through the data attributes, is there any way that I can trace each data attribute so that my output is:
appleInventory
branchInventory
tamagotchiInventory
and not:
false
false
false
I couldn't see anything in the reference docs or online, so thanks very much to anyone who's able to help!
Romano