EasyManua.ls Logo

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH - About XML

MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
830 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
652 Working with External Data
5. View the remote HTML document in a web browser, and click the Upload Image button
in the SWF file.
6. Locate an image file on your hard disk and select Open from the dialog box.
The SWF file uploads the image file to the remote PHP document, and displays it in the
ScrollPane (which adds scroll bars if necessary). If you want to view a previously uploaded
image, you can select the filename from the ComboBox instance on the Stage. If the user
tries to upload an image that isnt an allowed image type (only a JPEG, GIF, or PNG
image is allowed) or the file size is too big (over 200 KB), Flash displays the error message
from the Message movie clip in the Library.
You can find the sample source file for this example, FileUpload.fla, in the Samples folder on
your hard disk.
In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript\FileUpload.
On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/FileUpload.
For more information on local file security, see About local file security and Flash Player
on page 679.
For more information on writing PHP, go to www.php.net/.
About XML
Extensible Markup Language (XML) is becoming the standard for exchanging structured data
in Internet applications. You can integrate data in Flash with servers that use XML technology
to build sophisticated applications, such as chat or brokerage systems.
In XML, as with HTML, you use tags to specify, or mark up, a body of text. In HTML, you
use predefined tags to indicate how text should appear in a web browser (for example, the
<b>
tag indicates that text should be bold). In XML, you define tags that identify the type of a
piece of data (for example,
<password>VerySecret</password>). XML separates the
structure of the information from the way it appears, so the same XML document can be used
and reused in different environments.

Table of Contents

Related product manuals