Packageflash.filesystem
Classpublic class File
InheritanceFile Inheritance Object

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0

A File object represents a path to a file or directory. This can be an existing file or directory, or it can be one that does not yet exist; for instance, it can represent the path to a file or directory that you plan to create.



Public Properties
 PropertyDefined By
  AIR-only nativePath : String
The full path in the host operating system representation.
File
  AIR-only url : String
The URL for this file path.
File
Public Methods
 MethodDefined By
  
AIR-only File(path:String = null)
The constructor function for the File class.
File
 Inherited
_init():*
[static]
_init
 Inherited
AS3
 Inherited
init():*
[static]
init
  
[static] Native dummy function.
File
  
Native dummy function.
File
 Inherited
AS3
 Inherited
AS3
Protected Methods
 MethodDefined By
 Inherited
[static]
protected
 Inherited
_setPropertyIsEnumerable(o:*, V:String, enumerable:Boolean):void
[static]
protected
Public Constants
 ConstantDefined By
 Inheritedlength : int = 1
[static]
length
Property Detail
AIR-only nativePathproperty
nativePath:String

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0

The full path in the host operating system representation.


Implementation
    public function get nativePath():String
    public function set nativePath(value:String):void
AIR-only urlproperty 
url:String

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0

The URL for this file path.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
AIR-only File()Constructor
public function File(path:String = null)

Language Version : ActionScript 3.0
Runtime Versions : AIR 1.0

The constructor function for the File class.

Parameters
path:String (default = null) — The path to the file. You can specify the path by using either a URL or native path (platform-specific) notation.
Method Detail
AVM-only isDummy()method
public static function isDummy():Boolean

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Native dummy function.

Returns
Boolean
AVM-only isLocalDummy()method 
public function isLocalDummy():Boolean

Language Version : ActionScript 3.0
Runtime Versions : RedTamarin 0.4

Native dummy function.

Returns
Boolean