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
myFileReference = new FileReference();
When you call
FileReferenceList.browse()
objects
operator with the FileReference constructor:
new
var
, which creates an array of FileReference
FileReference (flash.net.FileReference)
555
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?