13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

Working with video<br />

About configuring FLV files for hosting on a server<br />

Flash Player 9 and later, Adobe AIR 1.0 and later<br />

Wh<strong>en</strong> you work with FLV files, you might have to configure your server to work with the FLV file format.<br />

Multipurpose Internet Mail Ext<strong>en</strong>sions (MIME) is a standardized data specification that lets you s<strong>en</strong>d non-ASCII files<br />

over Internet connections. Web browsers and e-mail cli<strong>en</strong>ts are configured to interpret numerous MIME types so that<br />

they can s<strong>en</strong>d and receive video, audio, graphics, and formatted text. To load FLV files from a web server, you might<br />

need to register the file ext<strong>en</strong>sion and MIME type with your web server, so you should check your web server<br />

docum<strong>en</strong>tation. The MIME type for FLV files is video/x-flv. The full information for the FLV file type is as follows:<br />

Mime Type: video/x-flv<br />

File ext<strong>en</strong>sion: .flv<br />

Required parameters: none<br />

Optional parameters: none<br />

Encoding considerations: FLV files are binary files; some applications might require the application/octet-stream<br />

subtype to be set<br />

Security issues: none<br />

Published specification: www.adobe.com/go/video_file_format<br />

Microsoft changed the way streaming media is handled in Microsoft Internet Information Services (IIS) 6.0 web server<br />

from earlier versions. Earlier versions of IIS do not require any modification to stream Flash Video. In IIS 6.0, the<br />

default web server that comes with Windows 2003, the server requires a MIME type to recognize that FLV files are<br />

streaming media.<br />

Wh<strong>en</strong> SWF files that stream external FLV files are placed on Microsoft Windows Server® 2003 and are viewed in a<br />

browser, the SWF file plays correctly, but the FLV video does not stream. This issue affects all FLV files placed on<br />

Windows Server 2003, including files you make with earlier versions of the Flash authoring tool, and the Macromedia<br />

Flash Video Kit for Dreamweaver MX 2004 from Adobe. These files work correctly if you test them on other operating<br />

systems.<br />

For information about configuring Microsoft Windows 2003 and Microsoft IIS Server 6.0 to stream FLV video, see<br />

www.adobe.com/go/tn_19439.<br />

About targeting local FLV files on the Macintosh<br />

Flash Player 9 and later, Adobe AIR 1.0 and later<br />

If you attempt to play a local FLV from a non-system drive on an Apple® Macintosh® computer by using a path that<br />

uses a relative slash (/), the video will not play. Non-system drives include, but are not limited to, CD-ROMs,<br />

partitioned hard disks, removable storage media, and connected storage devices.<br />

Note: The reason for this failure is a limitation of the operating system, not a limitation in Flash Player or AIR.<br />

For an FLV file to play from a non-system drive on a Macintosh, refer to it with an absolute path using a colon-based<br />

notation (:) rather than slash-based notation (/). The following list shows the differ<strong>en</strong>ce in the two kinds of notation:<br />

Slash-based notation: myDrive/myFolder/myFLV.flv<br />

Colon-based notation: (Mac OS®) myDrive:myFolder:myFLV.flv<br />

Last updated 6/6/2012<br />

505

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!