Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
mc_mask.onRelease = function(){
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void
{ trace("onSelect: " + file.name); }
listener.onCancel = function(file:FileReference):Void
{ trace("onCancel"); }
listener.onOpen = function(file:FileReference):Void
{ trace("onOpen: " + file.name); }
listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void
{ trace("onProgress with bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal); }
listener.onComplete = function(file:FileReference):Void
{ trace("onComplete: " + file.name); }
listener.onIOError = function(file:FileReference):Void
{ trace("onIOError: " + file.name); }
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String = images[currImg];
if(!fileRef.download(url))
{ trace("dialog box failed to open."); }
}