Ming (flash)
PHP Manual

SWFMovie->output()

(PHP 4 >= 4.3.3)

SWFMovie->output() — Dumps your lovingly prepared movie out

说明

SWFMovie
int output ([ int $compression ] )
Warning

本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。

Dumps the SWFMovie.

Don't forget to send the Content-Type HTTP header file before using this function, in order to display the movie in a browser.

参数

compression

The compression level can be a value between 0 and 9, defining the SWF compression similar to gzip compression.

This parameter is only available as of Flash MX (6).

返回值

Return the number of bytes written or FALSE on error.

范例

Example#1 Displaying your $movie in a browser

<?php
header
('Content-type: application/x-shockwave-flash'); 
$movie->output();
?>

参见


Ming (flash)
PHP Manual