Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function SystemClass(jsonObject:Object)
- {
- // this is what we are working with
- /* {"helloworld":[{"puppetclass":{"name":"helloworld","id":1}}],"baseapps":[{"puppetclass":{"name":"baseapps","id":4}}]}
- */
- super();
- if (jsonObject){
- for each (var module:Object in jsonObject)
- {
- trace(module._name);
- for each (var classobj:Object in module)
- {
- // we need a better way of putting the class id in.
- //classes.addItem({name:classobj.puppetclass.name,id:classobj.puppetclass.id, environment:classobj.});
- classes.addItem(classobj);
- }
- //environment = jsonObject.environment as String;
- //parameters = jsonObject.parameters as Array;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement