pashminakazi commented on issue #867:
URL: https://github.com/apache/royale-asjs/issues/867#issuecomment-645305379
@aharui
I have replaced **mx:LinkButton** with
```
<mx:DownloadButton styleName="htmlLink" id="downloadButton"
label="{data.at_Name}"
toolTip="Save File"
click="btnDownload_clickHandler(data.at_Name,data.at_Bytes,data.at_Status)"/>
```
```
private function
btnDownload_clickHandler(name:String,file:mx.utils.ByteArray,status:String):void
{
if(status!= "0") {
downloadButton.defaultFileName = name;
}
else
Alert.show("File has been Removed.");
}
```

but it doesn't download the file
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]