Specifies whether the generated Flash file should be protected or not.

void object->ProtectSWF( boolean swf_protected ) 

Arguments

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

Remarks

Default: the generated Flash animation is always protected.

If a Flash movie is marked as protected it cannot be imported into Macromedia Flash Editor.

PHP Sample Code

The following PHP code illustrates use of the ProtectSWF method.

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

// Let's display an unprotected SWF movie 
$chart->ProtectSWF(false);
$chart->ExportAsResponse();

See Also

IsSWFProtected Method

Applies To: Chart Object