-
Gross Pecululatarian
All this undocumented object stuff is getting to me, so I did a test. I tried this:
for(i in Microphone.prototype){
trace(i);
}
and got this:
muted
useEchoSuppression
gain
rate
silenceTimeOut
silenceLevel
name
activityLevel
index
activity level seemed interesting, so I tried:
_root.onEnterFrame = function(){
_root.x = myMic.activityLevel;
}
And x reflected the voloume of sound!
So all we have to do to find these objects is to guess names
I'm off to guess webcam names!!
-
Gross Pecululatarian
Ok, it seems to crash after about 8 minutes, that might be why it's undocumented
-
Undocumented
Try this:
// list all the predefined objects and functions
ASSetPropFlags(_global, null, 8, 1);
for (i in _global) {
trace(i);
for(j in eval(i).prototype){
trace("\t\t" + j);
}
}
-
Clever Bastard, I thought I was smart!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|