FileReference (flash.net.FileReference)
555
mc.lineTo(0, 0);
mcFmt = new TextFormat();
mcFmt.align = "center";
mcFmt.bold = true;
mc.createTextField("mcTxt", depth, 0, 0, width, height);
mc.mcTxt.text = "Call JS Function";
mc.mcTxt.setTextFormat(mcFmt);
return mc;
}
For the previous example to work properly, you should be copy and paste the following code
into the containing HTML page. Unless the HTML page is hosted on a server, your browser
may alert you with a security warning.
<script>
function sayHello(name) {
alert(">> Hello " + name + ".");
return ">> Hi Flash.";
}
</script>
FileReference (flash.net.FileReference)
Object
|
+-flash.net.FileReference
public class
FileReference
extends Object
The FileReference class provides a means to upload and download files between a user's
computer and a server. An operating-system dialog box prompts the user to select a file to
upload or a location for download. Each FileReference object refers to a single file on the
user's hard disk and has properties that contain information about the file's size, type, name,
creation date, modification date, and creator type (Macintosh only).
FileReference instances are created in two ways:
■
When you use the
new
operator with the FileReference constructor:
var
myFileReference = new FileReference();
■
When you call
FileReferenceList.browse()
, which creates an array of FileReference
objects
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...