Determines whether the generated Flash file will be protected or not.

boolean object->IsSWFProtected( ) 

Arguments

object
Required. A Chart object.

Return Value

If the generated Flash file will be protected, this method returns true; otherwise, it returns false.

PHP Sample Code

The following PHP example sets the data and loads the graphics settings of a given chart object. Then it disables the SWF protection if it is enabled.

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

// If the Flash movie is protected, disable protection 
if( $chart->IsSWFProtected() )
  $chart->ProtectSWF(false);

$chart->ExportAsResponse();

See Also

ProtectSWF Method

Applies To: Chart Object