KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actionscript3.php 28KB

11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. <?php
  2. /*************************************************************************************
  3. * actionscript3.php
  4. * ----------------
  5. * Author: Jordi Boggiano (j.boggiano@seld.be)
  6. * Copyright: (c) 2007 Jordi Boggiano (http://www.seld.be/), Benny Baumann (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2007/11/26
  9. *
  10. * ActionScript3 language file for GeSHi.
  11. *
  12. * All keywords scraped from the Flex 2.0.1 Documentation
  13. *
  14. * The default style is based on FlexBuilder2 coloring, with the addition of class, package, method and
  15. * constant names that are highlighted to help identifying problem when used on public pastebins.
  16. *
  17. * For styling, keywords data from 0 to 1 (accessible through .kw1, etc.) are described here :
  18. *
  19. * 1 : operators
  20. * 2 : 'var' keyword
  21. * 3 : 'function' keyword
  22. * 4 : 'class' and 'package' keywords
  23. * 5 : all flash.* class names plus Top Level classes, mx are excluded
  24. * 6 : all flash.* package names, mx are excluded
  25. * 7 : valid flash method names and properties (there is no type checks sadly, for example String().x will be highlighted as 'x' is valid, but obviously strings don't have a x property)
  26. * 8 : valid flash constant names (again, no type check)
  27. *
  28. *
  29. * CHANGES
  30. * -------
  31. * 2007/12/06 (1.0.7.22)
  32. * - Added the 'this' keyword (oops)
  33. *
  34. * TODO (updated 2007/11/30)
  35. * -------------------------
  36. *
  37. *************************************************************************************
  38. *
  39. * This file is part of GeSHi.
  40. *
  41. * GeSHi is free software; you can redistribute it and/or modify
  42. * it under the terms of the GNU General Public License as published by
  43. * the Free Software Foundation; either version 2 of the License, or
  44. * (at your option) any later version.
  45. *
  46. * GeSHi is distributed in the hope that it will be useful,
  47. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  48. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49. * GNU General Public License for more details.
  50. *
  51. * You should have received a copy of the GNU General Public License
  52. * along with GeSHi; if not, write to the Free Software
  53. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  54. *
  55. ************************************************************************************/
  56. $language_data = array (
  57. 'LANG_NAME' => 'ActionScript 3',
  58. 'COMMENT_SINGLE' => array(1 => '//'),
  59. 'COMMENT_MULTI' => array('/*' => '*/'),
  60. 'COMMENT_REGEXP' => array(
  61. //Regular expressions
  62. 2 => "/(?<=[\\s^])(s|tr|y)\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])*(?<!\s)\\/[msixpogcde]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])(m|q[qrwx]?)?\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/[msixpogc]*(?=[\\s$\\.\\,\\;\\)])/iU",
  63. ),
  64. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  65. 'QUOTEMARKS' => array("'", '"'),
  66. 'ESCAPE_CHAR' => '\\',
  67. 'KEYWORDS' => array(
  68. 1 => array(
  69. 'with', 'while', 'void', 'undefined', 'typeof', 'try', 'true',
  70. 'throw', 'this', 'switch', 'super', 'set', 'return', 'public', 'protected',
  71. 'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in',
  72. 'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do',
  73. 'delete', 'default', 'continue', 'catch', 'case', 'break', 'as',
  74. 'extends', 'override'
  75. ),
  76. 2 => array(
  77. 'var'
  78. ),
  79. 3 => array(
  80. 'function'
  81. ),
  82. 4 => array(
  83. 'class', 'package'
  84. ),
  85. 6 => array(
  86. 'flash.xml', 'flash.utils', 'flash.ui', 'flash.text',
  87. 'flash.system', 'flash.profiler', 'flash.printing', 'flash.net',
  88. 'flash.media', 'flash.geom', 'flash.filters', 'flash.external',
  89. 'flash.events', 'flash.errors', 'flash.display',
  90. 'flash.accessibility'
  91. ),
  92. 7 => array(
  93. 'zoom', 'year', 'y', 'xmlDecl', 'x', 'writeUnsignedInt',
  94. 'writeUTFBytes', 'writeUTF', 'writeShort', 'writeObject',
  95. 'writeMultiByte', 'writeInt', 'writeFloat', 'writeExternal',
  96. 'writeDynamicProperty', 'writeDynamicProperties', 'writeDouble',
  97. 'writeBytes', 'writeByte', 'writeBoolean', 'wordWrap',
  98. 'willTrigger', 'width', 'volume', 'visible', 'videoWidth',
  99. 'videoHeight', 'version', 'valueOf', 'value', 'usingTLS',
  100. 'useRichTextClipboard', 'useHandCursor', 'useEchoSuppression',
  101. 'useCodePage', 'url', 'uri', 'uploadCompleteData', 'upload',
  102. 'updateProperties', 'updateAfterEvent', 'upState', 'unshift',
  103. 'unlock', 'unload', 'union', 'unescapeMultiByte', 'unescape',
  104. 'underline', 'uncompress', 'type', 'ty', 'tx', 'transparent',
  105. 'translate', 'transformPoint', 'transform', 'trackAsMenu', 'track',
  106. 'trace', 'totalMemory', 'totalFrames', 'topLeft', 'top',
  107. 'togglePause', 'toXMLString', 'toUpperCase', 'toUTCString',
  108. 'toTimeString', 'toString', 'toPrecision', 'toLowerCase',
  109. 'toLocaleUpperCase', 'toLocaleTimeString', 'toLocaleString',
  110. 'toLocaleLowerCase', 'toLocaleDateString', 'toFixed',
  111. 'toExponential', 'toDateString', 'timezoneOffset', 'timerComplete',
  112. 'timer', 'time', 'threshold', 'thickness', 'textWidth',
  113. 'textSnapshot', 'textInput', 'textHeight', 'textColor', 'text',
  114. 'test', 'target', 'tan', 'tabStops', 'tabIndexChange', 'tabIndex',
  115. 'tabEnabledChange', 'tabEnabled', 'tabChildrenChange',
  116. 'tabChildren', 'sync', 'swfVersion', 'swapChildrenAt',
  117. 'swapChildren', 'subtract', 'substring', 'substr', 'styleSheet',
  118. 'styleNames', 'strength', 'stopPropagation',
  119. 'stopImmediatePropagation', 'stopDrag', 'stopAll', 'stop', 'status',
  120. 'startDrag', 'start', 'stageY', 'stageX', 'stageWidth',
  121. 'stageHeight', 'stageFocusRect', 'stage', 'sqrt', 'split', 'splice',
  122. 'source', 'soundTransform', 'soundComplete', 'sortOn', 'sort',
  123. 'songName', 'some', 'socketData', 'smoothing', 'slice', 'size',
  124. 'sin', 'silent', 'silenceTimeout', 'silenceLevel', 'showSettings',
  125. 'showRedrawRegions', 'showDefaultContextMenu', 'show', 'shortcut',
  126. 'shiftKey', 'shift', 'sharpness', 'sharedEvents', 'shadowColor',
  127. 'shadowAlpha', 'settings', 'setUseEchoSuppression', 'setUTCSeconds',
  128. 'setUTCMonth', 'setUTCMinutes', 'setUTCMilliseconds', 'setUTCHours',
  129. 'setUTCFullYear', 'setUTCDate', 'setTimeout', 'setTime',
  130. 'setTextFormat', 'setStyle', 'setSilenceLevel', 'setSettings',
  131. 'setSelection', 'setSelected', 'setSelectColor', 'setSeconds',
  132. 'setQuality', 'setPropertyIsEnumerable', 'setProperty', 'setPixels',
  133. 'setPixel32', 'setPixel', 'setNamespace', 'setName',
  134. 'setMotionLevel', 'setMonth', 'setMode', 'setMinutes',
  135. 'setMilliseconds', 'setLoopback', 'setLoopBack', 'setLocalName',
  136. 'setKeyFrameInterval', 'setInterval', 'setHours', 'setFullYear',
  137. 'setEmpty', 'setDirty', 'setDate', 'setCompositionString',
  138. 'setClipboard', 'setChildren', 'setChildIndex',
  139. 'setAdvancedAntiAliasingTable', 'serverString', 'separatorBefore',
  140. 'sendToURL', 'send', 'selectionEndIndex', 'selectionBeginIndex',
  141. 'selectable', 'select', 'seek', 'securityError', 'securityDomain',
  142. 'secondsUTC', 'seconds', 'search', 'scrollV', 'scrollRect',
  143. 'scrollH', 'scroll', 'screenResolutionY', 'screenResolutionX',
  144. 'screenDPI', 'screenColor', 'scenes', 'scaleY', 'scaleX',
  145. 'scaleMode', 'scale9Grid', 'scale', 'save', 'sandboxType',
  146. 'sameDomain', 'running', 'round', 'rotation', 'rotate', 'root',
  147. 'rollOver', 'rollOut', 'rightToRight', 'rightToLeft', 'rightPeak',
  148. 'rightMargin', 'right', 'rewind', 'reverse', 'resume', 'restrict',
  149. 'resize', 'reset', 'requestHeaders', 'replaceText',
  150. 'replaceSelectedText', 'replace', 'repeatCount', 'render',
  151. 'removedFromStage', 'removed', 'removeNode', 'removeNamespace',
  152. 'removeEventListener', 'removeChildAt', 'removeChild',
  153. 'relatedObject', 'registerFont', 'registerClassAlias', 'redOffset',
  154. 'redMultiplier', 'rect', 'receiveVideo', 'receiveAudio',
  155. 'readUnsignedShort', 'readUnsignedInt', 'readUnsignedByte',
  156. 'readUTFBytes', 'readUTF', 'readShort', 'readObject',
  157. 'readMultiByte', 'readInt', 'readFloat', 'readExternal',
  158. 'readDouble', 'readBytes', 'readByte', 'readBoolean', 'ratios',
  159. 'rate', 'random', 'quality', 'push', 'publish', 'proxyType',
  160. 'prototype', 'propertyIsEnumerable', 'progress',
  161. 'processingInstructions', 'printAsBitmap', 'print',
  162. 'previousSibling', 'preventDefault', 'prevScene', 'prevFrame',
  163. 'prettyPrinting', 'prettyIndent', 'preserveAlpha', 'prependChild',
  164. 'prefix', 'pow', 'position', 'pop', 'polar', 'playerType', 'play',
  165. 'pixelSnapping', 'pixelDissolve', 'pixelBounds', 'pixelAspectRatio',
  166. 'perlinNoise', 'pause', 'parseXML', 'parseInt', 'parseFloat',
  167. 'parseCSS', 'parse', 'parentNode', 'parentDomain',
  168. 'parentAllowsChild', 'parent', 'parameters', 'paperWidth',
  169. 'paperHeight', 'pan', 'paletteMap', 'pageWidth', 'pageHeight',
  170. 'overState', 'outsideCutoff', 'os', 'orientation', 'open',
  171. 'opaqueBackground', 'onPlayStatus', 'onMetaData', 'onCuePoint',
  172. 'offsetPoint', 'offset', 'objectID', 'objectEncoding', 'numLock',
  173. 'numLines', 'numFrames', 'numChildren', 'normalize', 'noise',
  174. 'nodeValue', 'nodeType', 'nodeName', 'nodeKind', 'noAutoLabeling',
  175. 'nextValue', 'nextSibling', 'nextScene', 'nextNameIndex',
  176. 'nextName', 'nextFrame', 'netStatus', 'navigateToURL',
  177. 'namespaceURI', 'namespaceDeclarations', 'namespace', 'names',
  178. 'name', 'muted', 'multiline', 'moveTo', 'mouseY', 'mouseX',
  179. 'mouseWheelEnabled', 'mouseWheel', 'mouseUp', 'mouseTarget',
  180. 'mouseOver', 'mouseOut', 'mouseMove', 'mouseLeave',
  181. 'mouseFocusChange', 'mouseEnabled', 'mouseDown', 'mouseChildren',
  182. 'motionTimeout', 'motionLevel', 'monthUTC', 'month',
  183. 'modificationDate', 'mode', 'minutesUTC', 'minutes', 'min',
  184. 'millisecondsUTC', 'milliseconds', 'method', 'message', 'merge',
  185. 'menuSelect', 'menuItemSelect', 'maxScrollV', 'maxScrollH',
  186. 'maxLevel', 'maxChars', 'max', 'matrixY', 'matrixX', 'matrix',
  187. 'match', 'mask', 'mapPoint', 'mapBitmap', 'map', 'manufacturer',
  188. 'macType', 'loopback', 'loop', 'log', 'lock', 'localeCompare',
  189. 'localY', 'localX', 'localToGlobal', 'localName',
  190. 'localFileReadDisable', 'loaderURL', 'loaderInfo', 'loader',
  191. 'loadPolicyFile', 'loadBytes', 'load', 'liveDelay', 'link',
  192. 'lineTo', 'lineStyle', 'lineGradientStyle', 'level',
  193. 'letterSpacing', 'length', 'leftToRight', 'leftToLeft', 'leftPeak',
  194. 'leftMargin', 'left', 'leading', 'lastIndexOf', 'lastIndex',
  195. 'lastChild', 'language', 'labels', 'knockout', 'keyUp',
  196. 'keyLocation', 'keyFrameInterval', 'keyFocusChange', 'keyDown',
  197. 'keyCode', 'kerning', 'join', 'italic', 'isXMLName',
  198. 'isPrototypeOf', 'isNaN', 'isFocusInaccessible', 'isFinite',
  199. 'isEmpty', 'isDefaultPrevented', 'isDebugger', 'isBuffering',
  200. 'isAttribute', 'isAccessible', 'ioError', 'invert', 'invalidate',
  201. 'intersects', 'intersection', 'interpolate', 'insideCutoff',
  202. 'insertChildBefore', 'insertChildAfter', 'insertBefore', 'inner',
  203. 'init', 'info', 'inflatePoint', 'inflate', 'indexOf', 'index',
  204. 'indent', 'inScopeNamespaces', 'imeComposition', 'ime',
  205. 'ignoreWhitespace', 'ignoreWhite', 'ignoreProcessingInstructions',
  206. 'ignoreComments', 'ignoreCase', 'identity', 'idMap', 'id3',
  207. 'httpStatus', 'htmlText', 'hoursUTC', 'hours', 'hitTestTextNearPos',
  208. 'hitTestState', 'hitTestPoint', 'hitTestObject', 'hitTest',
  209. 'hitArea', 'highlightColor', 'highlightAlpha', 'hideObject',
  210. 'hideBuiltInItems', 'hide', 'height', 'hasVideoEncoder', 'hasTLS',
  211. 'hasStreamingVideo', 'hasStreamingAudio', 'hasSimpleContent',
  212. 'hasScreenPlayback', 'hasScreenBroadcast', 'hasProperty',
  213. 'hasPrinting', 'hasOwnProperty', 'hasMP3', 'hasIME', 'hasGlyphs',
  214. 'hasEventListener', 'hasEmbeddedVideo', 'hasDefinition',
  215. 'hasComplexContent', 'hasChildNodes', 'hasAudioEncoder', 'hasAudio',
  216. 'hasAccessibility', 'gridFitType', 'greenOffset', 'greenMultiplier',
  217. 'graphics', 'gotoAndStop', 'gotoAndPlay', 'globalToLocal', 'global',
  218. 'getUTCSeconds', 'getUTCMonth', 'getUTCMinutes',
  219. 'getUTCMilliseconds', 'getUTCHours', 'getUTCFullYear', 'getUTCDay',
  220. 'getUTCDate', 'getTimezoneOffset', 'getTimer', 'getTime',
  221. 'getTextRunInfo', 'getTextFormat', 'getText', 'getStyle',
  222. 'getStackTrace', 'getSelectedText', 'getSelected', 'getSeconds',
  223. 'getRemote', 'getRect', 'getQualifiedSuperclassName',
  224. 'getQualifiedClassName', 'getProperty', 'getPrefixForNamespace',
  225. 'getPixels', 'getPixel32', 'getPixel', 'getParagraphLength',
  226. 'getObjectsUnderPoint', 'getNamespaceForPrefix', 'getMonth',
  227. 'getMinutes', 'getMilliseconds', 'getMicrophone', 'getLocal',
  228. 'getLineText', 'getLineOffset', 'getLineMetrics', 'getLineLength',
  229. 'getLineIndexOfChar', 'getLineIndexAtPoint', 'getImageReference',
  230. 'getHours', 'getFullYear', 'getFirstCharInParagraph',
  231. 'getDescendants', 'getDefinitionByName', 'getDefinition', 'getDay',
  232. 'getDate', 'getColorBoundsRect', 'getClassByAlias', 'getChildIndex',
  233. 'getChildByName', 'getChildAt', 'getCharIndexAtPoint',
  234. 'getCharBoundaries', 'getCamera', 'getBounds', 'genre',
  235. 'generateFilterRect', 'gain', 'fullYearUTC', 'fullYear',
  236. 'fullScreen', 'fscommand', 'fromCharCode', 'framesLoaded',
  237. 'frameRate', 'frame', 'fps', 'forwardAndBack', 'formatToString',
  238. 'forceSimple', 'forEach', 'fontType', 'fontStyle', 'fontSize',
  239. 'fontName', 'font', 'focusRect', 'focusOut', 'focusIn', 'focus',
  240. 'flush', 'floor', 'floodFill', 'firstChild', 'findText', 'filters',
  241. 'filter', 'fillRect', 'fileList', 'extension', 'extended', 'exp',
  242. 'exec', 'exactSettings', 'every', 'eventPhase', 'escapeMultiByte',
  243. 'escape', 'errorID', 'error', 'equals', 'enumerateFonts',
  244. 'enterFrame', 'endian', 'endFill', 'encodeURIComponent',
  245. 'encodeURI', 'enabled', 'embedFonts', 'elements',
  246. 'dynamicPropertyWriter', 'dropTarget', 'drawRoundRect', 'drawRect',
  247. 'drawEllipse', 'drawCircle', 'draw', 'download', 'downState',
  248. 'doubleClickEnabled', 'doubleClick', 'dotall', 'domain',
  249. 'docTypeDecl', 'doConversion', 'divisor', 'distance', 'dispose',
  250. 'displayState', 'displayMode', 'displayAsPassword', 'dispatchEvent',
  251. 'description', 'describeType', 'descent', 'descendants',
  252. 'deltaTransformPoint', 'delta', 'deleteProperty', 'delay',
  253. 'defaultTextFormat', 'defaultSettings', 'defaultObjectEncoding',
  254. 'decodeURIComponent', 'decodeURI', 'decode', 'deblocking',
  255. 'deactivate', 'dayUTC', 'day', 'dateUTC', 'date', 'dataFormat',
  256. 'data', 'd', 'customItems', 'curveTo', 'currentTarget',
  257. 'currentScene', 'currentLabels', 'currentLabel', 'currentFrame',
  258. 'currentFPS', 'currentDomain', 'currentCount', 'ctrlKey', 'creator',
  259. 'creationDate', 'createTextNode', 'createGradientBox',
  260. 'createElement', 'createBox', 'cos', 'copyPixels', 'copyChannel',
  261. 'copy', 'conversionMode', 'contextMenuOwner', 'contextMenu',
  262. 'contentType', 'contentLoaderInfo', 'content', 'containsRect',
  263. 'containsPoint', 'contains', 'constructor', 'connectedProxyType',
  264. 'connected', 'connect', 'condenseWhite', 'concatenatedMatrix',
  265. 'concatenatedColorTransform', 'concat', 'computeSpectrum',
  266. 'compress', 'componentY', 'componentX', 'complete', 'compare',
  267. 'comments', 'comment', 'colors', 'colorTransform', 'color', 'code',
  268. 'close', 'cloneNode', 'clone', 'client', 'click', 'clearTimeout',
  269. 'clearInterval', 'clear', 'clamp', 'children', 'childNodes',
  270. 'childIndex', 'childAllowsParent', 'child', 'checkPolicyFile',
  271. 'charCount', 'charCodeAt', 'charCode', 'charAt', 'changeList',
  272. 'change', 'ceil', 'caretIndex', 'caption', 'capsLock', 'cancelable',
  273. 'cancel', 'callee', 'callProperty', 'call', 'cacheAsBitmap', 'c',
  274. 'bytesTotal', 'bytesLoaded', 'bytesAvailable', 'buttonMode',
  275. 'buttonDown', 'bullet', 'builtInItems', 'bufferTime',
  276. 'bufferLength', 'bubbles', 'browse', 'bottomScrollV', 'bottomRight',
  277. 'bottom', 'borderColor', 'border', 'bold', 'blurY', 'blurX',
  278. 'blueOffset', 'blueMultiplier', 'blockIndent', 'blendMode',
  279. 'bitmapData', 'bias', 'beginGradientFill', 'beginFill',
  280. 'beginBitmapFill', 'bandwidth', 'backgroundColor', 'background',
  281. 'b', 'available', 'avHardwareDisable', 'autoSize', 'attributes',
  282. 'attribute', 'attachNetStream', 'attachCamera', 'attachAudio',
  283. 'atan2', 'atan', 'asyncError', 'asin', 'ascent', 'artist',
  284. 'areSoundsInaccessible', 'areInaccessibleObjectsUnderPoint',
  285. 'applyFilter', 'apply', 'applicationDomain', 'appendText',
  286. 'appendChild', 'antiAliasType', 'angle', 'alwaysShowSelection',
  287. 'altKey', 'alphas', 'alphaOffset', 'alphaMultiplier', 'alpha',
  288. 'allowInsecureDomain', 'allowDomain', 'align', 'album',
  289. 'addedToStage', 'added', 'addPage', 'addNamespace', 'addHeader',
  290. 'addEventListener', 'addChildAt', 'addChild', 'addCallback', 'add',
  291. 'activityLevel', 'activity', 'active', 'activating', 'activate',
  292. 'actionScriptVersion', 'acos', 'accessibilityProperties', 'abs'
  293. ),
  294. 8 => array(
  295. 'WRAP', 'VERTICAL', 'VARIABLES',
  296. 'UTC', 'UPLOAD_COMPLETE_DATA', 'UP', 'UNLOAD', 'UNKNOWN',
  297. 'UNIQUESORT', 'TOP_RIGHT', 'TOP_LEFT', 'TOP', 'TIMER_COMPLETE',
  298. 'TIMER', 'TEXT_NODE', 'TEXT_INPUT', 'TEXT', 'TAB_INDEX_CHANGE',
  299. 'TAB_ENABLED_CHANGE', 'TAB_CHILDREN_CHANGE', 'TAB', 'SYNC',
  300. 'SUBTRACT', 'SUBPIXEL', 'STATUS', 'STANDARD', 'SQUARE', 'SQRT2',
  301. 'SQRT1_2', 'SPACE', 'SOUND_COMPLETE', 'SOCKET_DATA', 'SHOW_ALL',
  302. 'SHIFT', 'SETTINGS_MANAGER', 'SELECT', 'SECURITY_ERROR', 'SCROLL',
  303. 'SCREEN', 'ROUND', 'ROLL_OVER', 'ROLL_OUT', 'RIGHT', 'RGB',
  304. 'RETURNINDEXEDARRAY', 'RESIZE', 'REPEAT', 'RENDER',
  305. 'REMOVED_FROM_STAGE', 'REMOVED', 'REMOTE', 'REGULAR', 'REFLECT',
  306. 'RED', 'RADIAL', 'PROGRESS', 'PRIVACY', 'POST', 'POSITIVE_INFINITY',
  307. 'PORTRAIT', 'PIXEL', 'PI', 'PENDING', 'PAGE_UP', 'PAGE_DOWN', 'PAD',
  308. 'OVERLAY', 'OUTER', 'OPEN', 'NaN', 'NUM_PAD', 'NUMPAD_SUBTRACT',
  309. 'NUMPAD_MULTIPLY', 'NUMPAD_ENTER', 'NUMPAD_DIVIDE',
  310. 'NUMPAD_DECIMAL', 'NUMPAD_ADD', 'NUMPAD_9', 'NUMPAD_8', 'NUMPAD_7',
  311. 'NUMPAD_6', 'NUMPAD_5', 'NUMPAD_4', 'NUMPAD_3', 'NUMPAD_2',
  312. 'NUMPAD_1', 'NUMPAD_0', 'NUMERIC', 'NO_SCALE', 'NO_BORDER',
  313. 'NORMAL', 'NONE', 'NEVER', 'NET_STATUS', 'NEGATIVE_INFINITY',
  314. 'MULTIPLY', 'MOUSE_WHEEL', 'MOUSE_UP', 'MOUSE_OVER', 'MOUSE_OUT',
  315. 'MOUSE_MOVE', 'MOUSE_LEAVE', 'MOUSE_FOCUS_CHANGE', 'MOUSE_DOWN',
  316. 'MITER', 'MIN_VALUE', 'MICROPHONE', 'MENU_SELECT',
  317. 'MENU_ITEM_SELECT', 'MEDIUM', 'MAX_VALUE', 'LOW', 'LOG2E', 'LOG10E',
  318. 'LOCAL_WITH_NETWORK', 'LOCAL_WITH_FILE', 'LOCAL_TRUSTED',
  319. 'LOCAL_STORAGE', 'LN2', 'LN10', 'LITTLE_ENDIAN', 'LINK',
  320. 'LINEAR_RGB', 'LINEAR', 'LIGHT_COLOR', 'LIGHTEN', 'LEFT', 'LCD',
  321. 'LAYER', 'LANDSCAPE', 'KOREAN', 'KEY_UP', 'KEY_FOCUS_CHANGE',
  322. 'KEY_DOWN', 'JUSTIFY', 'JAPANESE_KATAKANA_HALF',
  323. 'JAPANESE_KATAKANA_FULL', 'JAPANESE_HIRAGANA', 'Infinity', 'ITALIC',
  324. 'IO_ERROR', 'INVERT', 'INSERT', 'INPUT', 'INNER', 'INIT',
  325. 'IME_COMPOSITION', 'IGNORE', 'ID3', 'HTTP_STATUS', 'HORIZONTAL',
  326. 'HOME', 'HIGH', 'HARDLIGHT', 'GREEN', 'GET', 'FULLSCREEN', 'FULL',
  327. 'FOCUS_OUT', 'FOCUS_IN', 'FLUSHED', 'FLASH9', 'FLASH8', 'FLASH7',
  328. 'FLASH6', 'FLASH5', 'FLASH4', 'FLASH3', 'FLASH2', 'FLASH1', 'F9',
  329. 'F8', 'F7', 'F6', 'F5', 'F4', 'F3', 'F2', 'F15', 'F14', 'F13',
  330. 'F12', 'F11', 'F10', 'F1', 'EXACT_FIT', 'ESCAPE', 'ERROR', 'ERASE',
  331. 'ENTER_FRAME', 'ENTER', 'END', 'EMBEDDED', 'ELEMENT_NODE', 'E',
  332. 'DYNAMIC', 'DOWN', 'DOUBLE_CLICK', 'DIFFERENCE', 'DEVICE',
  333. 'DESCENDING', 'DELETE', 'DEFAULT', 'DEACTIVATE', 'DATA',
  334. 'DARK_COLOR', 'DARKEN', 'CRT', 'CONTROL', 'CONNECT', 'COMPLETE',
  335. 'COLOR', 'CLOSE', 'CLICK', 'CLAMP', 'CHINESE', 'CHANGE', 'CENTER',
  336. 'CASEINSENSITIVE', 'CAPTURING_PHASE', 'CAPS_LOCK', 'CANCEL',
  337. 'CAMERA', 'BUBBLING_PHASE', 'BOTTOM_RIGHT', 'BOTTOM_LEFT', 'BOTTOM',
  338. 'BOLD_ITALIC', 'BOLD', 'BLUE', 'BINARY', 'BIG_ENDIAN', 'BEVEL',
  339. 'BEST', 'BACKSPACE', 'AUTO', 'AT_TARGET', 'ASYNC_ERROR', 'AMF3',
  340. 'AMF0', 'ALWAYS', 'ALPHANUMERIC_HALF', 'ALPHANUMERIC_FULL', 'ALPHA',
  341. 'ADVANCED', 'ADDED_TO_STAGE', 'ADDED', 'ADD', 'ACTIVITY',
  342. 'ACTIONSCRIPT3', 'ACTIONSCRIPT2'
  343. ),
  344. //FIX: Must be last in order to avoid conflicts with keywords present
  345. //in other keyword groups, that might get highlighted as part of the URL.
  346. //I know this is not a proper work-around, but should do just fine.
  347. 5 => array(
  348. 'uint', 'int', 'arguments', 'XMLSocket', 'XMLNodeType', 'XMLNode',
  349. 'XMLList', 'XMLDocument', 'XML', 'Video', 'VerifyError',
  350. 'URLVariables', 'URLStream', 'URLRequestMethod', 'URLRequestHeader',
  351. 'URLRequest', 'URLLoaderDataFormat', 'URLLoader', 'URIError',
  352. 'TypeError', 'Transform', 'TimerEvent', 'Timer', 'TextSnapshot',
  353. 'TextRenderer', 'TextLineMetrics', 'TextFormatAlign', 'TextFormat',
  354. 'TextFieldType', 'TextFieldAutoSize', 'TextField', 'TextEvent',
  355. 'TextDisplayMode', 'TextColorType', 'System', 'SyntaxError',
  356. 'SyncEvent', 'StyleSheet', 'String', 'StatusEvent', 'StaticText',
  357. 'StageScaleMode', 'StageQuality', 'StageAlign', 'Stage',
  358. 'StackOverflowError', 'Sprite', 'SpreadMethod', 'SoundTransform',
  359. 'SoundMixer', 'SoundLoaderContext', 'SoundChannel', 'Sound',
  360. 'Socket', 'SimpleButton', 'SharedObjectFlushStatus', 'SharedObject',
  361. 'Shape', 'SecurityPanel', 'SecurityErrorEvent', 'SecurityError',
  362. 'SecurityDomain', 'Security', 'ScriptTimeoutError', 'Scene',
  363. 'SWFVersion', 'Responder', 'RegExp', 'ReferenceError', 'Rectangle',
  364. 'RangeError', 'QName', 'Proxy', 'ProgressEvent',
  365. 'PrintJobOrientation', 'PrintJobOptions', 'PrintJob', 'Point',
  366. 'PixelSnapping', 'ObjectEncoding', 'Object', 'Number', 'NetStream',
  367. 'NetStatusEvent', 'NetConnection', 'Namespace', 'MovieClip',
  368. 'MouseEvent', 'Mouse', 'MorphShape', 'Microphone', 'MemoryError',
  369. 'Matrix', 'Math', 'LocalConnection', 'LoaderInfo', 'LoaderContext',
  370. 'Loader', 'LineScaleMode', 'KeyboardEvent', 'Keyboard',
  371. 'KeyLocation', 'JointStyle', 'InvalidSWFError',
  372. 'InterpolationMethod', 'InteractiveObject', 'IllegalOperationError',
  373. 'IOErrorEvent', 'IOError', 'IMEEvent', 'IMEConversionMode', 'IME',
  374. 'IExternalizable', 'IEventDispatcher', 'IDynamicPropertyWriter',
  375. 'IDynamicPropertyOutput', 'IDataOutput', 'IDataInput', 'ID3Info',
  376. 'IBitmapDrawable', 'HTTPStatusEvent', 'GridFitType', 'Graphics',
  377. 'GradientType', 'GradientGlowFilter', 'GradientBevelFilter',
  378. 'GlowFilter', 'Function', 'FrameLabel', 'FontType', 'FontStyle',
  379. 'Font', 'FocusEvent', 'FileReferenceList', 'FileReference',
  380. 'FileFilter', 'ExternalInterface', 'EventPhase', 'EventDispatcher',
  381. 'Event', 'EvalError', 'ErrorEvent', 'Error', 'Endian', 'EOFError',
  382. 'DropShadowFilter', 'DisplayObjectContainer', 'DisplayObject',
  383. 'DisplacementMapFilterMode', 'DisplacementMapFilter', 'Dictionary',
  384. 'DefinitionError', 'Date', 'DataEvent', 'ConvolutionFilter',
  385. 'ContextMenuItem', 'ContextMenuEvent', 'ContextMenuBuiltInItems',
  386. 'ContextMenu', 'ColorTransform', 'ColorMatrixFilter', 'Class',
  387. 'CapsStyle', 'Capabilities', 'Camera', 'CSMSettings', 'ByteArray',
  388. 'Boolean', 'BlurFilter', 'BlendMode', 'BitmapFilterType',
  389. 'BitmapFilterQuality', 'BitmapFilter', 'BitmapDataChannel',
  390. 'BitmapData', 'Bitmap', 'BevelFilter', 'AsyncErrorEvent', 'Array',
  391. 'ArgumentError', 'ApplicationDomain', 'AntiAliasType',
  392. 'ActivityEvent', 'ActionScriptVersion', 'AccessibilityProperties',
  393. 'Accessibility', 'AVM1Movie'
  394. )
  395. ),
  396. 'SYMBOLS' => array(
  397. '(', ')', '[', ']', '{', '}', '!', '%', '&', '*', '|', '/', '<', '>', '^', '-', '+', '~', '?', ':', ';', '.', ','
  398. ),
  399. 'CASE_SENSITIVE' => array(
  400. GESHI_COMMENTS => false,
  401. 1 => true,
  402. 2 => true,
  403. 3 => true,
  404. 4 => true,
  405. 5 => true,
  406. 6 => true,
  407. 7 => true,
  408. 8 => true
  409. ),
  410. 'STYLES' => array(
  411. 'KEYWORDS' => array(
  412. 1 => 'color: #0033ff; font-weight: bold;',
  413. 2 => 'color: #6699cc; font-weight: bold;',
  414. 3 => 'color: #339966; font-weight: bold;',
  415. 4 => 'color: #9900cc; font-weight: bold;',
  416. 5 => 'color: #004993;',
  417. 6 => 'color: #004993;',
  418. 7 => 'color: #004993;',
  419. 8 => 'color: #004993;'
  420. ),
  421. 'COMMENTS' => array(
  422. 1 => 'color: #009900; font-style: italic;',
  423. 2 => 'color: #009966; font-style: italic;',
  424. 'MULTI' => 'color: #3f5fbf;'
  425. ),
  426. 'ESCAPE_CHAR' => array(
  427. 0 => ''
  428. ),
  429. 'BRACKETS' => array(
  430. 0 => 'color: #000000;'
  431. ),
  432. 'STRINGS' => array(
  433. 0 => 'color: #990000;'
  434. ),
  435. 'NUMBERS' => array(
  436. 0 => 'color: #000000; font-weight:bold;'
  437. ),
  438. 'METHODS' => array(
  439. 0 => 'color: #000000;',
  440. ),
  441. 'SYMBOLS' => array(
  442. 0 => 'color: #000066; font-weight: bold;'
  443. ),
  444. 'REGEXPS' => array(
  445. ),
  446. 'SCRIPT' => array(
  447. )
  448. ),
  449. 'URLS' => array(
  450. 1 => '',
  451. 2 => '',
  452. 3 => '',
  453. 4 => '',
  454. 5 => 'http://www.google.com/search?q={FNAMEL}%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:{FNAMEL}.html',
  455. 6 => '',
  456. 7 => '',
  457. 8 => ''
  458. ),
  459. 'OOLANG' => false,//Save some time as OO identifiers aren't used
  460. 'OBJECT_SPLITTERS' => array(
  461. // commented out because it's not very relevant for AS, as all properties, methods and constants are dot-accessed.
  462. // I believe it's preferable to have package highlighting for example, which is not possible with this enabled.
  463. // 0 => '.'
  464. ),
  465. 'REGEXPS' => array(
  466. ),
  467. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  468. 'SCRIPT_DELIMITERS' => array(),
  469. 'HIGHLIGHT_STRICT_BLOCK' => array()
  470. );
  471. ?>