Altes und Neues in ActionScript (Flash MX 2004)

Matthias Kannengiesser

Erfahrenes Mitglied
Hi Folks,

Wer von Euch genauer wissen will, was für Neuerungen sich in ActionScript breit gemacht haben, sollte es mal mit folgenden Codezeilen versuchen:

PHP:
ASSetPropFlags(_global, null, 8, 1);
for (i in _global) {
	trace(i);
	for (j in eval(i).prototype) {
		trace("\t\t" + j);
	}
}


Ausgabe:
PHP:
XMLUI
CustomActions
MMSave
Cookie
TextSnapshot
		setSelectColor
		findText
		hitTestTextNearPos
		getSelectedText
		getText
		getSelected
		setSelected
		getCount
PrintJob
MovieClipLoader
URIError
		toString
		message
		name
TypeError
		toString
		message
		name
SyntaxError
		toString
		message
		name
ReferenceError
		toString
		message
		name
EvalError
		toString
		message
		name
System
Accessibility
Video
Stage
TextFormat
TextField
Button
		getDepth
		enabled
		useHandCursor
Key
Mouse
Selection
LoadVars
XML
		namespaceURI
		localName
		prefix
		previousSibling
		parentNode
		nodeValue
		nodeType
		nodeName
		nextSibling
		lastChild
		firstChild
		childNodes
		attributes
		getPrefixForNamespace
		getNamespaceForPrefix
		toString
		hasChildNodes
		appendChild
		insertBefore
		removeNode
		cloneNode
		addRequestHeader
		getBytesTotal
		getBytesLoaded
		onData
		onLoad
		sendAndLoad
		send
		load
		parseXML
		createTextNode
		createElement
XMLNode
		namespaceURI
		localName
		prefix
		previousSibling
		parentNode
		nodeValue
		nodeType
		nodeName
		nextSibling
		lastChild
		firstChild
		childNodes
		attributes
		getPrefixForNamespace
		getNamespaceForPrefix
		toString
		hasChildNodes
		appendChild
		insertBefore
		removeNode
		cloneNode
Sound
Math
Array
String
Date
Boolean
Number
o
profile
clearInterval
setInterval
isFinite
isNaN
updateAfterEvent
trace
parseFloat
parseInt
unescape
escape
ASSetNative
ASSetPropFlags
AsSetupError
Error
		toString
		name
		message
ContextMenu
ContextMenuItem
LocalConnection
SharedObject
Microphone

oder

PHP:
function allInfo(name) {
	var ziel = eval(name);
	var CR = "\n";
	var sep = "--------------------";
	ASSetPropFlags(ziel, null, 8, 1);
	trace("info: " + name + CR + sep);
	for (p in ziel) {
		trace(p);
	}
	trace(sep + CR);
}

// Einzelne Objekte (Begutachten)
allInfo("_global");
allInfo("system");
allInfo("video.prototype");
allInfo("microphone.prototype");
allInfo("localConnection.prototype");
allInfo("netConnection.prototype");
allInfo("netStream.prototype");

Ausgabe:
PHP:
info: _global
--------------------
XMLUI
CustomActions
MMSave
Cookie
TextSnapshot
PrintJob
MovieClipLoader
URIError
TypeError
SyntaxError
ReferenceError
EvalError
System
Accessibility
Video
Stage
TextFormat
TextField
Button
Key
Mouse
Selection
LoadVars
XML
XMLNode
Sound
Math
Array
String
Date
Boolean
Number
o
profile
clearInterval
setInterval
isFinite
isNaN
updateAfterEvent
trace
parseFloat
parseInt
unescape
escape
ASSetNative
ASSetPropFlags
AsSetupError
Error
ContextMenu
ContextMenuItem
LocalConnection
SharedObject
Microphone
Camera
NetStream
NetConnection
Color
AsBroadcaster
XMLSocket
MovieClip
Infinity
NaN
Function
Object
FWEndCommand
MMEndCommand
FWJavascript
MMExecute
ASconstructor
ASnative
--------------------

info: system
--------------------
setClipboard
security
exactSettings
showSettings
Product
capabilities
__proto__
constructor
--------------------

info: video.prototype
--------------------
clear
attachVideo
__proto__
constructor
--------------------

info: microphone.prototype
--------------------
setUseEchoSuppression
setGain
setRate
setSilenceLevel
__proto__
constructor
--------------------

info: localConnection.prototype
--------------------
domain
close
send
connect
__proto__
constructor
--------------------

info: netConnection.prototype
--------------------
addHeader
call
close
connect
__proto__
constructor
--------------------

info: netStream.prototype
--------------------
setBufferTime
send
attachVideo
attachAudio
close
seek
pause
receiveVideo
receiveAudio
play
publish
__proto__
constructor
--------------------

Hinweis:
Diese stammen noch aush Flash MX Zeiten und laufen noch einwandfrei.

Liebe Grüsse
Matze K.
 
Neues unter der Lupe:

PHP:
info: PrintJob.prototype
--------------------
send
addPage
start
__proto__
constructor
--------------------

info: XMLUI
--------------------
cancel
accept
set
get
__proto__
constructor
--------------------

info: TextSnapshot.prototype
--------------------
setSelectColor
findText
hitTestTextNearPos
getSelectedText
getText
getSelected
setSelected
getCount
__proto__
constructor
--------------------

info: MovieClipLoader.prototype
--------------------
_listeners
removeListener
addListener
broadcastMessage
unloadClip
getProgress
loadClip
__proto__
constructor
--------------------

info: URIError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

info: TypeError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

info: SyntaxError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

info: ReferenceError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

info: EvalError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

info: System
--------------------
setClipboard
security
exactSettings
showSettings
Product
capabilities
__proto__
constructor
--------------------

info: System.capabilities
--------------------
language
os
manufacturer
windowlessDisable
localFileReadDisable
avHardwareDisable
playerType
isDebugger
hasScreenBroadcast
hasScreenPlayback
hasPrinting
hasEmbeddedVideo
hasStreamingVideo
hasStreamingAudio
version
serverString
hasAudio
hasMP3
hasAudioEncoder
hasVideoEncoder
screenResolutionX
screenResolutionY
screenDPI
screenColor
pixelAspectRatio
hasAccessibility
__proto__
constructor
--------------------

info: Accessibility
--------------------
updateProperties
sendEvent
isActive
__proto__
constructor
--------------------

info: Video.prototype
--------------------
clear
attachVideo
__proto__
constructor
--------------------

info: Stage
--------------------
_listeners
removeListener
addListener
broadcastMessage
showMenu
width
height
scaleMode
align
__proto__
constructor
--------------------

info: TextField
--------------------
StyleSheet
getFontList
__proto__
constructor
prototype
--------------------

info: TextField.prototype
--------------------
_listeners
removeListener
addListener
broadcastMessage
replaceText
getDepth
setNewTextFormat
getNewTextFormat
removeTextField
setTextFormat
getTextFormat
replaceSel
__proto__
constructor
--------------------

info: Sound.prototype
--------------------
getBytesTotal
getBytesLoaded
loadSound
setPosition
getPosition
setDuration
getDuration
start
attachSound
stop
setVolume
setTransform
setPan
getVolume
getTransform
getPan
__proto__
constructor
--------------------

info: Array
--------------------
NUMERIC
RETURNINDEXEDARRAY
UNIQUESORT
DESCENDING
CASEINSENSITIVE
__proto__
constructor
prototype
--------------------

info: String
--------------------
fromCharCode
__proto__
constructor
prototype
--------------------

info: String.prototype
--------------------
substr
split
substring
slice
lastIndexOf
indexOf
concat
charCodeAt
charAt
toLowerCase
toUpperCase
toString
valueOf
__proto__
constructor
--------------------

info: Error.prototype
--------------------
toString
name
message
__proto__
constructor
--------------------

info: ContextMenu.prototype
--------------------
hideBuiltInItems
copy
__proto__
constructor
--------------------

info: ContextMenuItem.prototype
--------------------
copy
__proto__
constructor
--------------------

info: LocalConnection.prototype
--------------------
domain
close
send
connect
__proto__
constructor
--------------------

info: SharedObject.prototype
--------------------
clear
setFps
getSize
close
flush
send
connect
__proto__
constructor
--------------------

info: Microphone
--------------------
names
get
prototype
__proto__
constructor
--------------------

info: Microphone.prototype
--------------------
setUseEchoSuppression
setGain
setRate
setSilenceLevel
__proto__
constructor
--------------------

info: Camera
--------------------
names
get
prototype
__proto__
constructor
--------------------

info: Camera.prototype
--------------------
setCursor
setLoopback
setMotionLevel
setKeyFrameInterval
setQuality
setMode
__proto__
constructor
--------------------

info: NetStream.prototype
--------------------
setBufferTime
send
attachVideo
attachAudio
close
seek
pause
receiveVideo
receiveAudio
play
publish
__proto__
constructor
--------------------

info: NetConnection.prototype
--------------------
addHeader
call
close
connect
__proto__
constructor
--------------------

info: AsBroadcaster
--------------------
initialize
removeListener
addListener
broadcastMessage
prototype
__proto__
constructor
--------------------

info: MovieClip.prototype
--------------------
getTextSnapshot
createTextField
clear
endFill
lineStyle
curveTo
lineTo
moveTo
beginGradientFill
beginFill
createEmptyMovieClip
getSWFVersion
getInstanceAtDepth
getNextHighestDepth
stopDrag
startDrag
removeMovieClip
duplicateMovieClip
gotoAndStop
gotoAndPlay
prevFrame
nextFrame
stop
play
setMask
getDepth
attachVideo
attachAudio
getBytesLoaded
getBytesTotal
getBounds
hitTest
globalToLocal
localToGlobal
swapDepths
attachMovie
loadMovie
loadVariables
unloadMovie
getURL
meth
_lockroot
tabIndex
enabled
useHandCursor
__proto__
constructor
--------------------

info: Function.prototype
--------------------
apply
call
__proto__
constructor
--------------------

info: Object
--------------------
registerClass
__proto__
constructor
prototype
--------------------

info: Object.prototype
--------------------
toLocaleString
isPropertyEnumerable
isPrototypeOf
hasOwnProperty
toString
valueOf
addProperty
unwatch
watch
constructor
--------------------

Hinweis
Dies sind einige weitere interessante Objekte unter die Lupe genommen.
 
Zuletzt bearbeitet:

Neue Beiträge

Zurück