Actionscript:
-
for each(var prop:String in describeType(DisplayObject).factory.accessor.@name){
-
trace(prop);
-
}
-
/* outputs
-
scaleY
-
mouseX
-
mouseY
-
mask
-
rotation
-
alpha
-
transform
-
blendMode
-
x
-
root
-
loaderInfo
-
width
-
z
-
rotationX
-
scale9Grid
-
filters
-
rotationY
-
y
-
stage
-
scaleZ
-
parent
-
accessibilityProperties
-
scrollRect
-
rotationZ
-
height
-
name
-
opaqueBackground
-
blendShader
-
cacheAsBitmap
-
visible
-
scaleX
-
*/
I First saw describeType() at senocular's AS3 Tip of the Day on Kirupa.
One Comment
heh, fun little trick!