Specifies whether the generated Flash file should be compressed or not (Flash MX required).

void object->CompressSWF( boolean swf_compressed )

Arguments

object
Required. A Chart object.
swf_compressed
Required. A boolean value that specifies whether the Flash file is compressed or not.

Remarks

Default: the generated Flash animation is not compressed.

Flash 6 (MX) or higher is required for playing back the compressed movie.

PHP Sample Code

The following PHP code illustrates use of the CompressSWF method in an PHP page.

$chart->SetSeparators( ";", true );
$chart->SetDataFromQuery();
$chart->LoadStyle( "C:\myStyle.scs" );

//Let's display an compressed SWF movie 
$chart->CompressSWF( true );
$chart->ExportAsResponse();

See Also

IsSWFCompressed Method

Applies To: Chart Object