"Save As" in flash
"Save As" in flash
Out of context: Reply #8
- Started
- Last post
- 18 Responses
- dbloc0
import flash.net.FileReference;
var fileRef:FileReference = new FileReference();var cm:ContextMenu = new ContextMenu();
cm.customItems.push(new ContextMenuItem("Download Image", saveAs));function saveAs() {
fileRef.download(_root._url);
}
this.menu = cm;
cm.hideBuiltInItems();
function doSomething(){}
cm.customItems.push(Functioned);