Adobe Extending Flash Professional CS5 Manual do Utilizador Página 290

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 565
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 289
268
EXTENDING FLASH PROFESSIONAL
FLfile object
Last updated 5/2/2011
FLfile.getCreationDate()
Availability
Flash MX 2004 7.2.
Usage
FLfile.getCreationDate(fileOrFolderURI)
Parameters
fileOrFolderURI A string, expressed as a file:/// URI, specifying the file or folder whose creation date and time you
want to retrieve as a hexadecimal string.
Returns
A string containing a hexadecimal number that represents the number of seconds that have elapsed between January
1, 1970 and the time the file or folder was created, or
"00000000" if the file or folder doesn’t exist.
Description
Method; specifies how many seconds have passed between January 1, 1970 and the time the file or folder was created.
This method is used primarily to compare the creation or modification dates of files or folders.
Example
The following example determines whether a file has been modified since it was created:
// Make sure the specified file exists
var fileURI = "file:///C|/MyApplication/MyApp.fla";
var creationTime = FLfile.getCreationDate(fileURI);
var modificationTime = FLfile.getModificationDate(fileURI);
if ( modificationTime > creationTime ) {
alert("The file has been modified since it was created.");
}
else {
alert("The file has not been modified since it was created.");
}
See also
FLfile.getCreationDateObj(), FLfile.getModificationDate()
FLfile.getCreationDateObj()
Availability
Flash MX 2004 7.2.
Usage
FLfile.getCreationDateObj(fileOrFolderURI)
Vista de página 289
1 2 ... 285 286 287 288 289 290 291 292 293 294 295 ... 564 565

Comentários a estes Manuais

Sem comentários