I did example
http://www.natavi.co.uk/test/test_loading.html
it does not work in net and works only if  testing is on my pc.

all from this example

import flash.net.FileReference;
var listener:Object = new Object();
listener.onCancel = function(file:FileReference):Void {
   status.text="onCancel";
}

listener.onOpen = function(file:FileReference):Void {
       status.text="onOpen: "
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number,
bytesTotal:Number):Void {
       status.text="onProgress with bytesLoaded: " + bytesLoaded + "
bytesTotal: " + bytesTotal;
}

listener.onComplete = function(file:FileReference):Void {
       status.text="onComplete: " ;
}

listener.onIOError = function(file:FileReference):Void {
   trace("onIOError: " + file.name);
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String <http://mail.google.com/mail/String> = "
http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";;
if(!fileRef.download(url)) {
    status.text="dialog box failed to open.";
}
function cancelDownload(){
fileRef.cancel();
fileRef.removeListener(this);
isDownload=false;
}



2007/1/20, Rákos Attila <[EMAIL PROTECTED]>:


nV>
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002210.html
nV> I tell about this example

This example will work, since in the root of macromedia.com there is a
crossdomain.xml (redirected to adobe.com), which allows unrestricted
access from any domains:

http://www.macromedia.com/crossdomain.xml

Attila

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to