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.

JSP Sample Code

The following JSP 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.SetDataFromTxtFile("C:\\myData.txt");
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