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 Adobe Flash Editor.

JSP Sample Code

The following JSP code illustrates use of the ProtectSWF method.

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