Actionscript 官方文档

Resource

Related

Global

Constants

  • -Infinity
  • Infinity
  • NaN
  • undefined

Functions

  • Array
  • Boolean
  • decodeURI
  • decodeURIComponent
  • encodeURI
  • encodeURIComponent
  • escape
  • int
  • isFinite
  • isNaN
  • isXMLName
  • Number
  • Object
  • parseFloat
  • parseInt
  • String
  • trace
  • uint
  • unescape
  • Vector
  • XML
  • XMLList

OO

arguments

  • The Object class is at the root of the ActionScript runtime class hierarchy.
  • callee:Function
  • length:Number

Boolean

  • Boolean()
  • toString():String
  • valueOf():Boolean

Function

  • apply()
  • call()

Namespace

  • Namespace()
  • prefix
  • toString()
  • uri
  • valueOf()

Object

  • hasOwnProperty()
  • isPrototypeOf()
  • Object()
  • propertyIsEnumerable()
  • setPropertyIsEnumerable()
  • toLocaleString()

Array

Array

  • The Array class lets you access and manipulate arrays.
  • Array()
  • concat():Array
  • every():Boolean
  • filter():Array
  • forEach():void
  • indexOf():int
  • join():String
  • lastIndexOf():int
  • map():Array
  • pop():*
  • push():uint
  • reverse():Array
  • shift():*
  • slice():Array
  • some():Boolean
  • sort():Array
  • sortOn():Array
  • splice():Array
  • toLocaleString():String
  • unshift():uint

Date

Properties

  • The Date class represents date and time information.
  • dateUTC
  • day
  • dayUTC
  • fullYear
  • fullYearUTC
  • hours
  • hoursUTC
  • milliseconds
  • millisecondsUTC
  • minutes
  • minutesUTC
  • month
  • monthUTC
  • seconds
  • secondsUTC
  • time
  • timezoneOffset

Methods

  • Date()
  • getDate()
  • getDay()
  • getFullYear()
  • getHours()
  • getMilliseconds()
  • getMinutes()
  • getMonth()
  • getSeconds()
  • getTime()
  • getTimezoneOffset()
  • getUTCDate()
  • getUTCDay()
  • getUTCFullYear()
  • getUTCHours()
  • getUTCMilliseconds()
  • getUTCMinutes()
  • getUTCMonth()
  • getUTCSeconds()
  • parse()
  • setDate()
  • setFullYear()
  • setHours()
  • setMilliseconds()
  • setMinutes()
  • setMonth()
  • setSeconds()
  • setTime()
  • setUTCDate()
  • setUTCFullYear()
  • setUTCHours()
  • setUTCMilliseconds()
  • setUTCMinutes()
  • setUTCMonth()
  • setUTCSeconds()
  • toDateString()
  • toJSON()
  • toLocaleDateString()
  • toLocaleTimeString()
  • toTimeString()
  • toUTCString()
  • UTC()

Error

Error

  • The VerifyError class represents an error that occurs when a malformed or corrupted SWF file is encountered.
  • Error(message:String = "", id:int = 0)
  • errorID : int
  • getStackTrace():String
  • message : String
  • name : String

DefinitionError

EvalError

ArgumentError

RangeError

ReferenceError

SecurityError

SyntaxError

TypeError

URIError

VerifyError

XML

XML Properties

  • ignoreComments
  • ignoreProcessingInstructions
  • ignoreWhitespace
  • prettyIndent
  • prettyPrinting

XML Methods

  • addNamespace()
  • appendChild()
  • attribute()
  • attributes()
  • child()
  • childIndex()
  • children()
  • comments()
  • contains()
  • copy()
  • defaultSettings()
  • descendants()
  • elements()
  • hasComplexContent()
  • hasSimpleContent()
  • inScopeNamespaces()
  • insertChildAfter()
  • insertChildBefore()
  • length()
  • localName()
  • name()
  • namespaceDeclarations()
  • nodeKind()
  • normalize()
  • parent()
  • prependChild()
  • processingInstructions()
  • removeNamespace()
  • replace()
  • setChildren()
  • setLocalName()
  • setName()
  • setNamespace()
  • setSettings()
  • settings()
  • text()
  • toXMLString()
  • XML()

XMLList

int

int

  • The int class lets you work with the data type representing a 32-bit signed integer.
  • int()
  • MAX_VALUE
  • MIN_VALUE
  • toExponential()
  • toFixed()
  • toPrecision()

Math

Methods

  • The Math class contains methods and constants that represent common mathematical functions and values.
  • abs()
  • acos()
  • asin()
  • atan()
  • atan2()
  • ceil()
  • cos()
  • exp()
  • floor()
  • log()
  • max()
  • min()
  • pow()
  • random()
  • round()
  • sin()
  • sqrt()
  • tan()

Constants

  • E
  • LN10
  • LN2
  • LOG10E
  • LOG2E
  • PI
  • SQRT1_2
  • SQRT2

Number

Methods

  • A data type representing an IEEE-754 double-precision floating-point number.
  • Number()

Constants

  • NEGATIVE_INFINITY
  • POSITIVE_INFINITY

QName

QName

  • QName objects represent qualified names of XML elements and attributes.
  • localName
  • QName()

RegExp

Properties

  • The RegExp class lets you work with regular expressions, which are patterns that you can use to perform searches in strings and to replace text in strings.
  • dotall
  • extended
  • ignoreCase
  • lastIndex
  • multiline
  • source

Methods

  • exec()
  • RegExp()
  • test()

String

String

  • The String class is a data type that represents a string of characters.
  • charAt()
  • charCodeAt()
  • concat()
  • fromCharCode()
  • indexOf()
  • lastIndexOf()
  • localeCompare()
  • match()
  • search()
  • slice()
  • split()
  • String()
  • substr()
  • substring()
  • toLocaleLowerCase()
  • toLocaleUpperCase()
  • toLowerCase()
  • toUpperCase()

uint

uint

  • The uint class provides methods for working with a data type representing a 32-bit unsigned integer.
  • uint()

Vector

Vector

  • The Vector class lets you access and manipulate a vector — an array whose elements all have the same data type.
  • every()
  • filter()
  • forEach()
  • join()
  • map()
  • pop
  • reverse()
  • shift()
  • some()
  • sort()
  • splice()
  • unshift()
  • Vector()