Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-03-2003, 06:47 AM   #1
Madokan
Registered User
 
Madokan's Avatar
 
Join Date: Jul 2001
Posts: 244
Lightbulb Old and New in ActionScript

Hi Folks,

Want to have a look behind the curtains:

PHP Code:
ASSetPropFlags(_globalnull81);
for (
i in _global) {
    
trace(i);
    for (
j in eval(i).prototype) {
        
trace("\t\t" j);
    }


Ausgabe:
PHP Code:
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 Code:
function allInfo(name) {
    var 
ziel = eval(name);
    var 
CR "\n";
    var 
sep "--------------------";
    
ASSetPropFlags(zielnull81);
    
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 Code:
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
--------------------

infosystem
--------------------
setClipboard
security
exactSettings
showSettings
Product
capabilities
__proto__
constructor
--------------------

infovideo.prototype
--------------------
clear
attachVideo
__proto__
constructor
--------------------

infomicrophone.prototype
--------------------
setUseEchoSuppression
setGain
setRate
setSilenceLevel
__proto__
constructor
--------------------

infolocalConnection.prototype
--------------------
domain
close
send
connect
__proto__
constructor
--------------------

infonetConnection.prototype
--------------------
addHeader
call
close
connect
__proto__
constructor
--------------------

infonetStream.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 is offline   Reply With Quote
Old 10-03-2003, 06:47 AM   #2
Madokan
Registered User
 
Madokan's Avatar
 
Join Date: Jul 2001
Posts: 244
Default

Just a few more:

PHP Code:
infoPrintJob.prototype
--------------------
send
addPage
start
__proto__
constructor
--------------------

infoXMLUI
--------------------
cancel
accept
set
get
__proto__
constructor
--------------------

infoTextSnapshot.prototype
--------------------
setSelectColor
findText
hitTestTextNearPos
getSelectedText
getText
getSelected
setSelected
getCount
__proto__
constructor
--------------------

infoMovieClipLoader.prototype
--------------------
_listeners
removeListener
addListener
broadcastMessage
unloadClip
getProgress
loadClip
__proto__
constructor
--------------------

infoURIError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

infoTypeError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

infoSyntaxError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

infoReferenceError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

infoEvalError.prototype
--------------------
toString
message
name
__constructor__
__proto__
--------------------

infoSystem
--------------------
setClipboard
security
exactSettings
showSettings
Product
capabilities
__proto__
constructor
--------------------

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

infoAccessibility
--------------------
updateProperties
sendEvent
isActive
__proto__
constructor
--------------------

infoVideo.prototype
--------------------
clear
attachVideo
__proto__
constructor
--------------------

infoStage
--------------------
_listeners
removeListener
addListener
broadcastMessage
showMenu
width
height
scaleMode
align
__proto__
constructor
--------------------

infoTextField
--------------------
StyleSheet
getFontList
__proto__
constructor
prototype
--------------------

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

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

infoString
--------------------
fromCharCode
__proto__
constructor
prototype
--------------------

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

infoError.prototype
--------------------
toString
name
message
__proto__
constructor
--------------------

infoContextMenu.prototype
--------------------
hideBuiltInItems
copy
__proto__
constructor
--------------------

infoContextMenuItem.prototype
--------------------
copy
__proto__
constructor
--------------------

infoLocalConnection.prototype
--------------------
domain
close
send
connect
__proto__
constructor
--------------------

infoSharedObject.prototype
--------------------
clear
setFps
getSize
close
flush
send
connect
__proto__
constructor
--------------------

infoMicrophone
--------------------
names
get
prototype
__proto__
constructor
--------------------

infoMicrophone.prototype
--------------------
setUseEchoSuppression
setGain
setRate
setSilenceLevel
__proto__
constructor
--------------------

infoCamera
--------------------
names
get
prototype
__proto__
constructor
--------------------

infoCamera.prototype
--------------------
setCursor
setLoopback
setMotionLevel
setKeyFrameInterval
setQuality
setMode
__proto__
constructor
--------------------

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

infoNetConnection.prototype
--------------------
addHeader
call
close
connect
__proto__
constructor
--------------------

infoAsBroadcaster
--------------------
initialize
removeListener
addListener
broadcastMessage
prototype
__proto__
constructor
--------------------

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

infoObject
--------------------
registerClass
__proto__
constructor
prototype
--------------------

infoObject.prototype
--------------------
toLocaleString
isPropertyEnumerable
isPrototypeOf
hasOwnProperty
toString
valueOf
addProperty
unwatch
watch
constructor
-------------------- 
yours
Matze K.
Madokan is offline   Reply With Quote
Old 10-03-2003, 06:48 AM   #3
Madokan
Registered User
 
Madokan's Avatar
 
Join Date: Jul 2001
Posts: 244
Default

Another nice method __bytecode__

ActionScript Code:
__bytecode__("88240002006900486F6C7920736869742C2062797465636F646520696E2074686520666C612100960B0008000600000000000000003C96020008001C960500070A00000048129D02001500960200080126");

Just test it.

Discussion:
http://chattyfig.figleaf.com/cgi-bin...s:88432:200309

yours
Matze K.
Madokan is offline   Reply With Quote
Old 01-04-2004, 06:37 PM   #4
spacether
Registered User
 
Join Date: Jun 2002
Posts: 148
Default

No need to upgrade to MX 2004 just yet, I can play with Netstream in MX
spacether is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.