EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Modificationdate (Filereference.modificationdate Property); Name (Filereference.name Property)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
FileReference (flash.net.FileReference) 569
modificationDate (FileReference.modificationDate
property)
public modificationDate : Date [read-only]
The date that the file on the local disk was last modified. 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
Example
The following example retrieves the
modificationDate of a file selected by the user.
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("modificationDate: " + file.modificationDate);
}
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse();
See also
browse (FileReference.browse method)
name (FileReference.name property)
public name : String [read-only]
The name of the file on the local disk. If the FileReference object has not been populated, a
call to get the value of this property returns
null.
All the properties of a FileReference object are populated by calling
browse(). Unlike other
FileReference properties, if you call
download(), the name property is populated when
onSelect is invoked.
Availability: ActionScript 1.0; Flash Player 8
Example
The following example retrieves the name of a file selected by the user.
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("name: " + file.name);

Table of Contents

Related product manuals