Friday, April 1, 2011

ActionScript, select local video and audio settings


Systems.showSettings(tabID) method can be used to show the specified flash panel settings.

tabID=0, Privacy
tabID =1, local Storage
tabId=2, Microphone
tabID=3, Camera

Example:
For video setting:
Design a symbol local_video_label using flash CS5. Add following action in symbol:
onClipEvent(load){
this.onRelease = function():Void
{
System.showSettings(3);
}
}

For audio setting:
Design a symbol local_audio_label using flash CS5. Add following action in symbol:
onClipEvent(load){
this.onRelease = function():Void
{
System.showSettings(2);
}
}
Reference:
showSettings (System.showSettings method)
http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00001577.html

No comments:

Post a Comment