Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > FileReference (flash.net.FileReference) > size (FileReference.size property) | |||
public size : Number [read-only]
The size of the file on the local disk, in bytes. If the FileReference object has not been populated, a call to get the value of this property returns null.
Availability: ActionScript 1.0; Flash Player 8
The following example retrieves the size of a file selected by the user.
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("size: " + file.size + " bytes");
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse();
browse (FileReference.browse method)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001677.html