# Source for file actionscript.php

Documentation is available at actionscript.php

    1     <?php
    2     /***********************************************************************************
    3      * actionscript.php
    4      * ----------------
    5      * Author: Steffen Krause (Steffen.krause@muse.de)
    6      * Copyright: (c) 2004 Steffen Krause, Nigel McNie (http://qbnz.com/highlighter)
    7      * Release Version: 1.0.7.3
    8      * CVS Revision Version: $Revision: 1.1 $
    9      * Date Started: 2004/06/20
    10     * Last Modified: $Date: 2006/01/23 09:27:28 $
    11     *
    12     * Actionscript language file for GeSHi.
    13     *
    14     * CHANGES
    15     * -------
    16     * 2004/11/27 (1.0.1)
    17     *  -  Added support for multiple object splitters
    18     * 2004/10/27 (1.0.0)
    19     *  -  First Release
    20     *
    21     * TODO (updated 2004/11/27)
    22     * -------------------------
    23     *
    24     ************************************************************************************
    25     *
    26     *     This file is part of GeSHi.
    27     *
    28     *   GeSHi is free software; you can redistribute it and/or modify
    29     *   it under the terms of the GNU General Public License as published by
    30     *   the Free Software Foundation; either version 2 of the License, or
    31     *   (at your option) any later version.
    32     *
    33     *   GeSHi is distributed in the hope that it will be useful,
    34     *   but WITHOUT ANY WARRANTY; without even the implied warranty of
    35     *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    36     *   GNU General Public License for more details.
    37     *
    38     *   You should have received a copy of the GNU General Public License
    39     *   along with GeSHi; if not, write to the Free Software
    40     *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    41     *
    42     ************************************************************************************/
    42
    43
    44    $language_data = array (
    45        'LANG_NAME' => 'Actionscript',
    46        'COMMENT_SINGLE' => array(1 => '//', 2 => '#'),
    47        'COMMENT_MULTI' => array('/*' => '*/'),
    48        'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    49        'QUOTEMARKS' => array("'", '"'),
    50        'ESCAPE_CHAR' => '\\',
    51        'KEYWORDS' => array(
    52            1 => array(
    53                '#include', 'for', 'foreach', 'if', 'elseif', 'else', 'while', 'do', 'dowhile',
    54                'endwhile', 'endif', 'switch', 'case', 'endswitch', 'return', 'break', 'continue', 'in'
    55                ),
    56            2 => array(
    57                'null', 'false', 'true', 'var',
    58                'default',     'function', 'class',
    59                'new', '_global'
    60                ),
    61            3 => array(
    62                '#endinitclip', '#initclip', '__proto__', '_accProps', '_alpha', '_currentframe',
    63                '_droptarget', '_focusrect', '_framesloaded', '_height', '_highquality', '_lockroot',
    64                '_name', '_parent', '_quality', '_root', '_rotation', '_soundbuftime', '_target', '_totalframes',
    65                '_url', '_visible', '_width', '_x', '_xmouse', '_xscale', '_y', '_ymouse', '_yscale', 'abs',
    66                'Accessibility', 'acos', 'activityLevel', 'add', 'addListener', 'addPage', 'addProperty',
    67                'addRequestHeader', 'align', 'allowDomain', 'allowInsecureDomain', 'and', 'appendChild',
    68                'apply', 'Arguments', 'Array', 'asfunction', 'asin', 'atan', 'atan2', 'attachAudio', 'attachMovie',
    69                'attachSound', 'attachVideo', 'attributes', 'autosize', 'avHardwareDisable', 'background',
    70                'backgroundColor', 'BACKSPACE', 'bandwidth', 'beginFill', 'beginGradientFill', 'blockIndent',
    71                'bold', 'Boolean', 'border', 'borderColor', 'bottomScroll', 'bufferLength', 'bufferTime',
    72                'builtInItems', 'bullet', 'Button', 'bytesLoaded', 'bytesTotal', 'call', 'callee', 'caller',
    73                'Camera', 'capabilities', 'CAPSLOCK', 'caption', 'catch', 'ceil', 'charAt', 'charCodeAt',
    74                'childNodes', 'chr', 'clear', 'clearInterval', 'cloneNode', 'close', 'Color', 'concat',
    75                'connect', 'condenseWhite', 'constructor', 'contentType', 'ContextMenu', 'ContextMenuItem',
    76                'CONTROL', 'copy', 'cos', 'createElement', 'createEmptyMovieClip', 'createTextField',
    77                'createTextNode', 'currentFps', 'curveTo', 'CustomActions', 'customItems', 'data', 'Date',
    78                'deblocking', 'delete', 'DELETEKEY', 'docTypeDecl', 'domain', 'DOWN',
    79                'duplicateMovieClip', 'duration', 'dynamic', 'E', 'embedFonts', 'enabled',
    80                'END', 'endFill', 'ENTER', 'eq', 'Error', 'ESCAPE(Konstante)', 'escape(Funktion)', 'eval',
    81                'exactSettings', 'exp', 'extends', 'finally', 'findText', 'firstChild', 'floor',
    82                'flush', 'focusEnabled', 'font', 'fps', 'fromCharCode', 'fscommand',
    83                'gain', 'ge', 'get', 'getAscii', 'getBeginIndex', 'getBounds', 'getBytesLoaded', 'getBytesTotal',
    84                'getCaretIndex', 'getCode', 'getCount', 'getDate', 'getDay', 'getDepth', 'getEndIndex', 'getFocus',
    85                'getFontList', 'getFullYear', 'getHours', 'getInstanceAtDepth', 'getLocal', 'getMilliseconds',
    86                'getMinutes', 'getMonth', 'getNewTextFormat', 'getNextHighestDepth', 'getPan', 'getProgress',
    87                'getProperty', 'getRGB', 'getSeconds', 'getSelected', 'getSelectedText', 'getSize', 'getStyle',
    88                'getStyleNames', 'getSWFVersion', 'getText', 'getTextExtent', 'getTextFormat', 'getTextSnapshot',
    89                'getTime', 'getTimer', 'getTimezoneOffset', 'getTransform', 'getURL', 'getUTCDate', 'getUTCDay',
    90                'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds',
    91                'getVersion', 'getVolume', 'getYear', 'globalToLocal', 'goto', 'gotoAndPlay', 'gotoAndStop',
    92                'hasAccessibility', 'hasAudio', 'hasAudioEncoder', 'hasChildNodes', 'hasEmbeddedVideo', 'hasMP3',
    93                'hasPrinting', 'hasScreenBroadcast', 'hasScreenPlayback', 'hasStreamingAudio', 'hasStreamingVideo',
    94                'hasVideoEncoder', 'height', 'hide', 'hideBuiltInItems', 'hitArea', 'hitTest', 'hitTestTextNearPos',
    95                'HOME', 'hscroll', 'html', 'htmlText', 'ID3', 'ifFrameLoaded', 'ignoreWhite', 'implements',
    96                'import', 'indent', 'index', 'indexOf', 'Infinity', '-Infinity', 'INSERT', 'insertBefore', 'install',
    97                'instanceof', 'int', 'interface', 'isActive', 'isDebugger', 'isDown', 'isFinite', 'isNaN', 'isToggled',
    98                'italic', 'join', 'Key', 'language', 'lastChild', 'lastIndexOf', 'le', 'leading', 'LEFT', 'leftMargin',
    99                'length', 'level', 'lineStyle', 'lineTo', 'list', 'LN10', 'LN2', 'load', 'loadClip', 'loaded', 'loadMovie',
    100               'loadMovieNum', 'loadSound', 'loadVariables', 'loadVariablesNum', 'LoadVars', 'LocalConnection',
    101               'localFileReadDisable', 'localToGlobal', 'log', 'LOG10E', 'LOG2E', 'manufacturer', 'Math', 'max',
    102               'MAX_VALUE', 'maxChars', 'maxhscroll', 'maxscroll', 'mbchr', 'mblength', 'mbord', 'mbsubstring', 'menu',
    103               'message', 'Microphone', 'min', 'MIN_VALUE', 'MMExecute', 'motionLevel', 'motionTimeOut', 'Mouse',
    104               'mouseWheelEnabled', 'moveTo', 'Movieclip', 'MovieClipLoader', 'multiline', 'muted', 'name', 'names', 'NaN',
    105               'ne', 'NEGATIVE_INFINITY', 'NetConnection', 'NetStream', 'newline', 'nextFrame',
    106               'nextScene', 'nextSibling', 'nodeName', 'nodeType', 'nodeValue', 'not', 'Number', 'Object',
    107               'on', 'onActivity', 'onChanged', 'onClipEvent', 'onClose', 'onConnect', 'onData', 'onDragOut',
    108               'onDragOver', 'onEnterFrame', 'onID3', 'onKeyDown', 'onKeyUp', 'onKillFocus', 'onLoad', 'onLoadComplete',
    109               'onLoadError', 'onLoadInit', 'onLoadProgress', 'onLoadStart', 'onMouseDown', 'onMouseMove', 'onMouseUp',
    110               'onMouseWheel', 'onPress', 'onRelease', 'onReleaseOutside', 'onResize', 'onRollOut', 'onRollOver',
    111               'onScroller', 'onSelect', 'onSetFocus', 'onSoundComplete', 'onStatus', 'onUnload', 'onUpdate', 'onXML',
    112               'or(logischesOR)', 'ord', 'os', 'parentNode', 'parseCSS', 'parseFloat', 'parseInt', 'parseXML', 'password',
    113               'pause', 'PGDN', 'PGUP', 'PI', 'pixelAspectRatio', 'play', 'playerType', 'pop', 'position',
    114               'POSITIVE_INFINITY', 'pow', 'prevFrame', 'previousSibling', 'prevScene', 'print', 'printAsBitmap',
    115               'printAsBitmapNum', 'PrintJob', 'printNum', 'private', 'prototype', 'public', 'push', 'quality',
    116               'random', 'rate', 'registerClass', 'removeListener', 'removeMovieClip', 'removeNode', 'removeTextField',
    117               'replaceSel', 'replaceText', 'resolutionX', 'resolutionY', 'restrict', 'reverse', 'RIGHT',
    118               'rightMargin', 'round', 'scaleMode', 'screenColor', 'screenDPI', 'screenResolutionX', 'screenResolutionY',
    119               'scroll', 'seek', 'selectable', 'Selection', 'send', 'sendAndLoad', 'separatorBefore', 'serverString',
    120               'set', 'setvariable', 'setBufferTime', 'setClipboard', 'setDate', 'setFocus', 'setFullYear', 'setGain',
    121               'setHours', 'setInterval', 'setMask', 'setMilliseconds', 'setMinutes', 'setMode', 'setMonth',
    122               'setMotionLevel', 'setNewTextFormat', 'setPan', 'setProperty', 'setQuality', 'setRate', 'setRGB',
    123               'setSeconds', 'setSelectColor', 'setSelected', 'setSelection', 'setSilenceLevel', 'setStyle',
    124               'setTextFormat', 'setTime', 'setTransform', 'setUseEchoSuppression', 'setUTCDate', 'setUTCFullYear',
    125               'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setVolume',
    126               'setYear', 'SharedObject', 'SHIFT(Konstante)', 'shift(Methode)', 'show', 'showMenu', 'showSettings',
    127               'silenceLevel', 'silenceTimeout', 'sin', 'size', 'slice', 'smoothing', 'sort', 'sortOn', 'Sound', 'SPACE',
    128               'splice', 'split', 'sqrt', 'SQRT1_2', 'SQRT2', 'Stage', 'start', 'startDrag', 'static', 'status', 'stop',
    129               'stopAllSounds', 'stopDrag', 'String', 'StyleSheet(Klasse)', 'styleSheet(Eigenschaft)', 'substr',
    130               'substring', 'super', 'swapDepths', 'System', 'TAB', 'tabChildren', 'tabEnabled', 'tabIndex',
    131               'tabStops', 'tan', 'target', 'targetPath', 'tellTarget', 'text', 'textColor', 'TextField', 'TextFormat',
    132               'textHeight', 'TextSnapshot', 'textWidth', 'this', 'throw', 'time', 'toggleHighQuality', 'toLowerCase',
    133               'toString', 'toUpperCase', 'trace', 'trackAsMenu', 'try', 'type', 'typeof', 'undefined',
    134               'underline', 'unescape', 'uninstall', 'unloadClip', 'unloadMovie', 'unLoadMovieNum', 'unshift', 'unwatch',
    135               'UP', 'updateAfterEvent', 'updateProperties', 'url', 'useCodePage', 'useEchoSuppression', 'useHandCursor',
    136               'UTC', 'valueOf', 'variable', 'version', 'Video', 'visible', 'void', 'watch', 'width',
    137               'with', 'wordwrap', 'XML', 'xmlDecl', 'XMLNode', 'XMLSocket'
    138               )
    139           ),
    140       'SYMBOLS' => array(
    141           '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
    142           ),
    143       'CASE_SENSITIVE' => array(
    144           GESHI_COMMENTS => false,
    145           1 => false,
    146           2 => false,
    147           3 => false,
    148           ),
    149       'STYLES' => array(
    150           'KEYWORDS' => array(
    151               1 => 'color: #b1b100;',
    152               2 => 'color: #000000; font-weight: bold;',
    153               3 => 'color: #0066CC;'
    154               ),
    155           'COMMENTS' => array(
    156               1 => 'color: #808080; font-style: italic;',
    157               2 => 'color: #808080; font-style: italic;',
    158               'MULTI' => 'color: #808080; font-style: italic;'
    159               ),
    160           'ESCAPE_CHAR' => array(
    161               0 => 'color: #000099; font-weight: bold;'
    162               ),
    163           'BRACKETS' => array(
    164               0 => 'color: #66cc66;'
    165               ),
    166           'STRINGS' => array(
    167               0 => 'color: #ff0000;'
    168               ),
    169           'NUMBERS' => array(
    170               0 => 'color: #cc66cc;'
    171               ),
    172           'METHODS' => array(
    173               1 => 'color: #006600;'
    174               ),
    175           'SYMBOLS' => array(
    176               0 => 'color: #66cc66;'
    177               ),
    178           'REGEXPS' => array(
    179               ),
    180           'SCRIPT' => array(
    181               )
    182           ),
    183       'URLS' => array(
    184           1 => '',
    185           2 => '',
    186           3 => ''
    187           ),
    188       'OOLANG' => true,
    189       'OBJECT_SPLITTERS' => array(
    190           1 => '.'
    191           ),
    192       'REGEXPS' => array(
    193           ),
    194       'STRICT_MODE_APPLIES' => GESHI_NEVER,
    195       'SCRIPT_DELIMITERS' => array(),
    196       'HIGHLIGHT_STRICT_BLOCK' => array()
    197   );
    198
    199   ?>

Documentation generated on Thu, 22 Sep 2005 13:47:49 +1200 by phpDocumentor 1.2.3