dp.sh.Brushes.ActionScript2 = function()
{
	var funcs = 	'onClipEvent trace gotoAndPlay gotoAndStop eval escape call Boolean isNumber isString '+
					'clearInterval clearTimeout duplicateMovieClip createEmptyMovieClip loadMovie Number Object '+
					'removeMovieClip setInterval startDrag stopDrag String substring stop play';
					
	var keywords =	'add and Break case catch class continue default delete do MovieClipLoader '+
					'dynamic else eq extends false finally for function get '+
					'if implements import in instanceof interface new not null on '+
					'or private public return set static super switch this var Void void while with '+
					'Boolean bytes String '+
					'Number MovieClip protected short use ';

	this.regexList = [
		{ regex: dp.sh.RegexLib.SingleLineCComments,				css: 'comment' },			// one line comments
		{ regex: dp.sh.RegexLib.MultiLineCComments,					css: 'comment' },			// multiline comments
		{ regex: dp.sh.RegexLib.DoubleQuotedString,					css: 'string' },			// double quoted strings
		{ regex: dp.sh.RegexLib.SingleQuotedString,					css: 'string' },			// single quoted strings
		{ regex: new RegExp('^\\s*#.*', 'gm'),						css: 'preprocessor' },
		{ regex: new RegExp(this.GetKeywords(funcs), 'gmi'),		css: 'func' },// preprocessor tags like #region and #endregion
		{ regex: new RegExp(this.GetKeywords(keywords), 'gm'),		css: 'keyword' }			// keywords
		];

	this.CssClass = 'dp-c';
}

dp.sh.Brushes.ActionScript2.prototype	= new dp.sh.Highlighter();
dp.sh.Brushes.ActionScript2.Aliases	= ['as2', 'actionscript2'];
