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

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.

JScript Sample Code

The following JScript 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.SetSeparators(";", true);
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