Guest User

Untitled

a guest
May 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. myObjectToParse (ParseMe@173e239)
  2. ----------[0]someBlob (SomeBlob@173e322)|null
  3. ----------[1]someChildren (Array@173e239)
  4. --------------------[0]childFoo (ChildFoo@123e239)
  5. ------------------------------someProperty (Number@173e239) | 45
  6. ------------------------------someOtherProperty (Number@173e239) | 45
  7. --------------------[1]childBar (ChildFoo@123e239)
  8. ------------------------------someStringProperty(String@173e239) | "hello world"
  9.  
  10. public class MySerialized extends ParseMe
  11. {
  12. public var someBlob:SomeBlob;
  13. public var someChildren:Array;
  14.  
  15. public function MySerialized()
  16. {
  17. //populateSomeBlob(); //its null so the export doesn't write it out
  18. populateSomeChildren();
  19. }
  20.  
  21. private function populateSomeChildren()
  22. {
  23. someChildren=new Array(2);
  24. var childFoo:ChildFoo=new ChildFoo();
  25. childFoo.someProperty=45;
  26. childFoo.someOtherProperty=45;
  27. childFoo.someProperty=45;
  28. childFoo.someOtherProperty=45;
  29.  
  30. var childBar=new ChildBar();
  31. childBar.someStringProperty="hello world";
  32.  
  33. someChildren[0]=childFoo;
  34. someChildren[1]=childBar;
  35. }
  36. }
Add Comment
Please, Sign In to add comment