Root objects cannot be renamed or deleted.
For example, if a path using the slash (/) is used to create a File object, the application
folder is mapped.
Applications can be granted access to additional directories by specifying virtual directory
mappings for File object paths.
This is done by specifying a
Application.xml file, as shown in the following example:
<JSEngine>
<FileObject>
<VirtualDirectory>/videos;C:\myvideos</VirtualDirectory>
<VirtualDirectory>/fcsapps;C:\Program Files\fcs\applications</
VirtualDirectory>
</FileObject>
</JSEngine>
This example specifies two additional directory mappings in addition to the default
application directory. Any path specified with /videos/xyz/vacation.flv maps to c:/
myvideos/xyz/vaction.flv. Similarly, /fcapps/conference maps to c:/Program Files/fcs/
applications/conference. Any path that does not match this mapping resolves to the
default application folder. For example, if c:/myapps/filetest is the application directory,
then /streams/hello.flv maps to c:/myapps/filetest/streams/hello.flv.
The File object invokes the
following File class methods fail:
File.copyTo()
File.flush()
File.list()
File.mkdir()
File.open()
File.read()
getGlobal()
File.remove()
File.renameTo()
File.write()
64
Server-Side ActionScript Language Reference
tag within the JSEngine section in the
FileObject
Application.onStatus
event handler to report errors when the
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?