PDA

View Full Version : Old and New in ActionScript


Madokan
10-03-2003, 06:47 AM
Hi Folks,

Want to have a look behind the curtains:


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



Ausgabe:

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


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:

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
--------------------


Note:
This will work in Flash MX, too.

yours
Matze K.

Madokan
10-03-2003, 06:47 AM
Just a few more:


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
--------------------


yours
Matze K.

Madokan
10-03-2003, 06:48 AM
Another nice method __bytecode__


__bytecode__("88240002006900486F6C7920736869742C2062797465636F64 6520696E2074686520666C612100960B000800060000000000 0000003C96020008001C960500070A00000048129D02001500 960200080126");


Just test it.

Discussion:
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:sss:88432:200309

yours
Matze K.

spacether
01-04-2004, 06:37 PM
No need to upgrade to MX 2004 just yet, I can play with Netstream in MX :)