Professional Documents
Culture Documents
0
AS2
www.actionscriptcheatsheet.com
AS2
Special Types
*
AS2
an property untyped
Top Level
info@seantheflashguy.com void cannot return any value
Null lack of a value.
ActionScript 3.0
2 AS2
Statement summary
2 break
www.actionscriptcheatsheet.com case
info@seantheflashguy.com continue
default
String(val:String) AS2 XML(value:Object) do..while
Properties Properties else
for
length : int ignoreComments : Boolean
for..in
Methods ignoreProcessingInstructions : Boolean
for each..in
ignoreWhitespace : Boolean
charAt(index:Number = 0):String if
prettyIndent : int
charCodeAt(index:Number = 0):Number label
prettyPrinting : Boolean
concat(... args):String return
fromCharCode(... charCodes):String Methods
AS2
super
indexOf(val:String, startIndex:Number = 0):int addNamespace(ns:Object):XML switch
lastIndexOf(val:String, startIndex:Number = 0x7FFFFFFF):int appendChild(child:Object):XML throw
localeCompare(other:String, ... values):int attribute(attributeName:*):XMLList try..catch..finally
match(pattern:*):Array attributes():XMLList while
replace(pattern:*, repl:Object):String child(propertyName:Object):XMLList with
search(pattern:*):int childIndex():int
slice(startIndex:Number = 0, endIndex:Number = 0x7fffffff):String children():XMLList Attribute keyword summary
split(delimiter:*, limit:Number = 0x7fffffff):Array comments():XMLList dynamic
substr(startIndex:Number = 0, len:Number = 0x7fffffff):String contains(value:XML):Boolean final
substring(startIndex:Number = 0, endIndex:Number = 0x7fffffff):String copy():XML AS2 internal
toLocaleLowerCase():String defaultSettings():Object native
toLocaleUpperCase():String descendants(name:Object = *):XMLList override
toLowerCase():String elements(name:Object = *):XMLList private
toUpperCase():String hasComplexContent():Boolean protected
2 valueOf():String hasOwnProperty(p:String):Boolean public
hasSimpleContent():Boolean static
inScopeNamespaces():Array
SyntaxError(message:String = "") Definition keyword summary
insertChildAfter(child1:Object, child2:Object):*
TypeError(message:String = "") insertChildBefore(child1:Object, child2:Object):* ... (rest) parameter
length():int class
2 uint(num:Object) localName():Object const
Methods name():Object extends
toExponential(fractionDigits:uint):String namespace(prefix:String = null):* function
toFixed(fractionDigits:uint):String namespaceDeclarations():Array get
AS2 implements
toPrecision(precision:uint):String nodeKind():String
toString(radix:uint):String normalize():XML interface
valueOf():uint parent():* namespace
prependChild(value:Object):XML package
Constants
processingInstructions(name:String = "*"):XMLList set
MAX_VALUE : uint = 4294967295
2 propertyIsEnumerable(p:String):Boolean var
MIN_VALUE : uint = 0 AS2
removeNamespace(ns:Namespace):XML
replace(propertyName:Object, value:XML):XML
Directive summary
URIError(message:String = "") setChildren(value:Object):XML default xml namespace
setLocalName(name:String):void import
VerifyError(message:String = "") include
setName(name:String):void AS2
setNamespace(ns:Namespace):void use namespace
XMLList(value:Object)
setSettings(... rest):void
Methods Namespace summary
settings():Object
attribute(attributeName:*):XMLList AS3
text():XMLList
attributes():XMLList flash_proxy
toString():String
child(propertyName:Object):XMLList object_proxy
toXMLString():String
children():XMLList
valueOf():XML
comments():XMLList Primary expression keyword
contains(value:XML):Boolean false
copy():XMLList null
descendants(name:Object = *):XMLList this
elements(name:Object = *):XMLList true
hasComplexContent():Boolean
hasOwnProperty(p:String):Boolean
hasSimpleContent():Boolean
isPrototypeOf(theClass:Object):Boolean
length():int
normalize():XMLList
parent():Object
processingInstructions(name:String = "*"):XMLList
propertyIsEnumerable(p:String):Boolean
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
text():XMLList
toString():String
toXMLString():StringvalueOf():XMLList