beautypg.com

Flfile.copy() – Adobe Extending Flash Professional CS5 User Manual

Page 286

background image

264

EXTENDING FLASH PROFESSIONAL

FLfile object

Last updated 5/2/2011

FLfile.copy()

Availability
Flash MX 2004 7.2.

Usage

FLfile.copy(fileURI, copyURI)

Parameters

fileURI

A string, expressed as a file:/// URI, that specifies the file you want to copy.

copyURI

A string, expressed as a file:/// URI, that specifies the location and name of the copied file.

Returns
A Boolean value of

true

if successful;

false

otherwise.

Description
Method; copies a file from one location to another. This method returns

false

if copyURI already exists.

Method

Description

FLfile.copy()

Copies a file.

FLfile.createFolder()

Creates one or more folders.

FLfile.exists()

Determines the existence of a file or folder.

FLfile.getAttributes()

Finds out whether a file is writable, read-only, hidden, visible, or
a system folder.

FLfile.getCreationDate()

Specifies how many seconds have passed between January 1,
1970 and the time the file or folder was created.

FLfile.getCreationDateObj()

Gets the date a file or folder was created.

FLfile.getModificationDate()

Specifies how many seconds have passed between January 1,
1970 and the time the file or folder was last modified.

FLfile.getModificationDateObj()

Gets the date a file or folder was last modified.

FLfile.getSize()

Gets the size of a file.

FLfile.listFolder()

Lists the contents of a folder.

FLfile.platformPathToURI()

Converts a filename in a platform-specific format to a file:///

URI.

FLfile.read()

Reads the contents of a file.

FLfile.remove()

Deletes a file or folder.

FLfile.setAttributes()

Makes a file or folder read-only, writable, hidden, or visible.

FLfile.uriToPlatformPath()

Converts a filename expressed as a file:/// URI to a platform-
specific format.

FLfile.write()

Creates, writes to, or appends to a file.

This manual is related to the following products: