creator (FileReference.creator property)

public creator : String [read-only]

The Macintosh creator type of the file. In Windows, this property is null. 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 Macintosh creator type of a file selected by the user.

import flash.net.FileReference;

var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
    trace("creator: " + file.creator);
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse();

See also

browse (FileReference.browse method)


Flash CS3