C# Class SwfDotNet.IO.Tags.ScriptLimitTag

ScriptLimit tag is used to define the execution environment of the Flash Player, limiting the resources available when executing actions.

It can be used to limit the maximum recursion depth and limit the time a sequence of actions can execute for. This provides a rudimentary mechanism for people viewing a movie to regain control of the Flash Player should a script fail.

This tag was introduced in Flash 7.

Inheritance: BaseTag
Show file Open project: bladecoding/SwfExport Class Usage Examples

Public Methods

Method Description
ReadData ( byte version, BufferedBinaryReader binaryReader ) : void

see base class

ScriptLimitTag ( ) : System

Creates a new ScriptLimitTag instance.

ScriptLimitTag ( ushort recursion, ushort timeout ) : System

Creates a new ScriptLimitTag instance.

Serialize ( XmlWriter writer ) : void

Serializes the specified writer.

UpdateData ( byte version ) : void

see base class

Method Details

ReadData() public method

see base class
public ReadData ( byte version, BufferedBinaryReader binaryReader ) : void
version byte
binaryReader SwfDotNet.IO.Utils.BufferedBinaryReader
return void

ScriptLimitTag() public method

Creates a new ScriptLimitTag instance.
public ScriptLimitTag ( ) : System
return System

ScriptLimitTag() public method

Creates a new ScriptLimitTag instance.
public ScriptLimitTag ( ushort recursion, ushort timeout ) : System
recursion ushort Recursion depth. That's the maximum depth, in the range 1..65535, that a sequence of actions can recurse to.
timeout ushort Specified timeout. That's the maximum time, in seconds, that a sequence of actions will execute before the Flash Player present a dialog box asking whether the script should be terminated.
return System

Serialize() public method

Serializes the specified writer.
public Serialize ( XmlWriter writer ) : void
writer System.Xml.XmlWriter Writer.
return void

UpdateData() public method

see base class
public UpdateData ( byte version ) : void
version byte
return void