what I meen is to get all objects and their properties, is it possible? How to do such thing?
views:
129answers:
2
+1
A:
- Read the SharedObject. The documentation is a great start.
- Loop through the properties. Depending on how you stored them if they are simple, a for...in loop should do it. If you are storing complex types (like an Object inside and Object, etc.), you need to first check if the object is simple or not. If it is not, you need to loop through its properties.
Luckily, since you've tagged this for flex as well, the ObjectUtils class will be handy for things like checking if an Object isSimple() or inspecting an Object's properties via getClassInfo().
e.g.
//assuming nestedObjectFromSO is a nested object read from a SharedObject
trace(ObjectUtil.getClassInfo(nestedObjectFromSO).properties);
Depending on your structure, you might need to write a recursive function that gets the data from nested objects within your SharedObject.
HTH, George
George Profenza
2010-06-06 01:23:58
the next question is how t actually open SOfrom abstractfile?
Blender
2010-06-07 12:06:32
1. Next question wasn't post it yet ;) One thing at a time, right ?2. I don't know what you mean b 'SOfrom abstractfile'. What's an abstractfile ?
George Profenza
2010-06-07 12:32:42
@Ole Jak so this one is answered ? :D
George Profenza
2010-06-07 12:33:17