Detecting Audio Capabilities : System.Capabilities : Development Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Development » System.Capabilities »

 

Detecting Audio Capabilities


 
package {
    import flash.display.Sprite;
    import flash.system.Capabilities;
    public class Main extends Sprite {
        
        public function Main() {
            if (Capabilities.hasAudio) {
                trace ("Audio OK!");
            else {
                trace("Audio not available");
            }
            if (Capabilities.hasStreamingAudio) {
                trace ("Streaming OK!");
            else {
                trace("Streaming not available");
            }
        }
    }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Development
» System.Capabilities