Changeset 85 for gssim_ui/branches


Ignore:
Timestamp:
09/14/11 12:13:08 (14 years ago)
Author:
mcichenski
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/editors/experiment/FileManager.mxml

    r84 r85  
    156156                        private function openFile(event:ResultEvent):void{ 
    157157                                var downloadRequest:URLRequest = new URLRequest(parentApplication.gsSimStudioModel.openUrl); 
    158                                 //var file : FileReference = new FileReference(); 
    159                                 //file.download(downloadRequest); 
    160                                 navigateToURL(downloadRequest, "_blank"); 
     158                                var file : FileReference = new FileReference(); 
     159                                try{ 
     160                                file.download(downloadRequest); 
     161                                } 
     162                                catch (err: Error) 
     163                                { 
     164                                        Alert.show(err.toString()); 
     165                                } 
     166                                //navigateToURL(downloadRequest, "_blank"); 
    161167                        } 
    162168                         
Note: See TracChangeset for help on using the changeset viewer.