Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function getData(node:Object, model:Object=null):Object
- {
- if (node is Office) {
- return {children:{label:node.name, label:node.address}};
- }
- }
- return {children:{label:node.name, body:node.address}}
- var obj:Object = new Object();
- obj.children = new Object();
- obj.children.label = node.name;
- obj.children.body = node.address;
- return obj;
- var myobject = {
- 'prop1': 100,
- 'prop2': {
- 'a': 1
- }
- }
- trace( myobject.prop1 ); // 100
- trace( myobject.prop2.a ); // 1
- return {children:{label:node.name, label:node.address}};
Add Comment
Please, Sign In to add comment