Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myObjectToParse (ParseMe@173e239)
- ----------[0]someBlob (SomeBlob@173e322)|null
- ----------[1]someChildren (Array@173e239)
- --------------------[0]childFoo (ChildFoo@123e239)
- ------------------------------someProperty (Number@173e239) | 45
- ------------------------------someOtherProperty (Number@173e239) | 45
- --------------------[1]childBar (ChildFoo@123e239)
- ------------------------------someStringProperty(String@173e239) | "hello world"
- public class MySerialized extends ParseMe
- {
- public var someBlob:SomeBlob;
- public var someChildren:Array;
- public function MySerialized()
- {
- //populateSomeBlob(); //its null so the export doesn't write it out
- populateSomeChildren();
- }
- private function populateSomeChildren()
- {
- someChildren=new Array(2);
- var childFoo:ChildFoo=new ChildFoo();
- childFoo.someProperty=45;
- childFoo.someOtherProperty=45;
- childFoo.someProperty=45;
- childFoo.someOtherProperty=45;
- var childBar=new ChildBar();
- childBar.someStringProperty="hello world";
- someChildren[0]=childFoo;
- someChildren[1]=childBar;
- }
- }
Add Comment
Please, Sign In to add comment