Показать сообщение отдельно
Старый 26.02.2009, 17:02
ladon вне форума Посмотреть профиль Отправить личное сообщение для ladon Найти все сообщения от ladon
  № 4  
Ответить с цитированием
ladon

Регистрация: May 2006
Сообщений: 125
FLfile.read()
Availability
Flash MX 2004 7.2.
Usage
FLfile.read()
Parameters
fileOrFolderURI A string, expressed as a file:/// URI, specifying the file or folder whose
attributes you want to retrieve.
Returns
The contents of the specified file as a string, or null if the read fails.
Description
Method; returns the contents of the specified file as a string, or null if the read fails.
Examples
The following example reads the file mydata.txt and, if successful, displays an alert box with
the contents of the file.
Код:
var fileURI = "file:///c|/temp/mydata.txt";
var str = FLfile.read( fileURI);
if (str) {
alert( fileURL + " contains: " + str);
}
The following example reads the ActionScript code from a class file and stores it in the code
variable:
Код:
var classFileURI = "file:///C|/MyApplication/TextCarousel.as";
var code = FLfile.read(classFileURI);