Changeset 270
- Timestamp:
- 03/22/10 14:04:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/EditorAS.as
r269 r270 72 72 } 73 73 74 private var ref:FileReference = new FileReference();74 //private var ref:FileReference = new FileReference(); 75 75 76 76 private function saveSpec():void { 77 77 // Alert.show(xmlEditor.cmdSpec.toXml()); 78 ref.save(xmlEditor.cmdSpec.toXml(), "test.xml");78 //ref.save(xmlEditor.cmdSpec.toXml(), "test.xml"); 79 79 80 //var item:ItemDescription = new ItemDescription();81 //item.description = xmlEditor.cmdSpec.headerDescription;82 //item.name = xmlEditor.cmdSpec.headerName;83 //item.isProfile = xmlEditor.cmdSpec.isProfile;84 //item.groupName = xmlEditor.cmdSpec.groupName;85 //uploadService.addEventListener(UploadCompleteEvent.UPLOAD_COMPLETE, handleSaveComplete);86 //if (item.isProfile) {87 //uploadService.submitProfile(item, xmlEditor.cmdSpec.toXml());88 //} else {89 //uploadService.submitComponent(item, xmlEditor.cmdSpec.toXml());90 //}80 var item:ItemDescription = new ItemDescription(); 81 item.description = xmlEditor.cmdSpec.headerDescription; 82 item.name = xmlEditor.cmdSpec.headerName; 83 item.isProfile = xmlEditor.cmdSpec.isProfile; 84 item.groupName = xmlEditor.cmdSpec.groupName; 85 uploadService.addEventListener(UploadCompleteEvent.UPLOAD_COMPLETE, handleSaveComplete); 86 if (item.isProfile) { 87 uploadService.submitProfile(item, xmlEditor.cmdSpec.toXml()); 88 } else { 89 uploadService.submitComponent(item, xmlEditor.cmdSpec.toXml()); 90 } 91 91 } 92 92
Note: See TracChangeset
for help on using the changeset viewer.