/*
 * AS3 Syntax
 * @author Mark Walters
 * http://www.digitalflipbook.com
 * 
 * JsMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://www.smallsharptools.com/
*/

dp.sh.Brushes.AS3=function()
{
var definitions='class interface package void delete Null new var';
var keywords='Array Boolean Date decodeURI decodeURIComponent encodeURI encodeURIComponent escape '+
'int isFinite isNaN isXMLName Number Object parseFloat parseInt '+
'MovieClip .x .y Sprite width height visible enabled rotation '+
'graphics drawRect drawCiecle lineto curveto moveto '+
'Bitmap BitmapData dispose '+
'String trace uint unescape XML XMLList '+
'Infinity -Infinity NaN undefined '+
'as instanceof is typeof '+
'break case catch continue default do each else finally for if in '+
'label return super switch throw try while with '+
'dynamic final internal native override private protected public static '+
'...rest const extends function get implements namespace set '+
'import include use '+
'false null this true '+
'System useCodePage stage stageWidth stageHeight '+
'Event ENTER_FRAME MouseEvent events display utils mx geom delta '+
'MouseEvent MOUSE_DOWN MOUSE_UP MOUSE_OVER MOUSE_MOVE MOUSE_WHEEL '+
'addEventListener removeEventListener '+
'Loader URLLoader LoaderContext load URLLoaderDataFormat VARIABLES dataFormat URLVariables method URLRequest data '+
'ApplicationDomain currentDomain applicationDomain URLRequestMethod POST GET '+
'Class getDefinitionByName'
;

this.regexList=[
				{regex:dp.sh.RegexLib.SingleLineCComments,css:'comment'},
				{regex:dp.sh.RegexLib.MultiLineCComments,css:'blockcomment'},
				{regex:dp.sh.RegexLib.DoubleQuotedString,css:'string'},
				{regex:dp.sh.RegexLib.SingleQuotedString,css:'string'},
				{regex:new RegExp('^\\s*#.*','gm'),css:'preprocessor'},
				{regex:new RegExp(this.GetKeywords(definitions),'gm'),css:'definition'},
				{regex:new RegExp(this.GetKeywords(keywords),'gm'),css:'keyword'},
				{regex:new RegExp('gm'),css:'variable'}
				];

this.CssClass='dp-as';
this.Style=
'.dp-as .comment { color: #999999; }'+
'.dp-as .blockcomment { color: #3f5fbf; }'+
'.dp-as .string { color: #009933; }'+
'.dp-as .preprocessor { color: #0033ff; }'+
'.dp-as .definition { color: #ff3366; font-weight: normal; }'+
'.dp-as .keyword { color: ##3399ff; font-weight: normal; }'+
'.dp-as .variable { color: #6699cc; }';
}

dp.sh.Brushes.AS3.prototype=new dp.sh.Highlighter();
dp.sh.Brushes.AS3.Aliases=['as','actionscript','ActionScript','as3','AS3'];