capabilities.hasAudio Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
capabilities.hasAudio Property Flash 6

indicates whether the Player supports audio playback read/write
System.capabilities.hasAudio

Description

The Boolean hasAudio property is true for Flash Players that support audio playback, and false for Players that cannot play sounds. While all desktop versions of Flash support sound, not all handheld or set-top device versions necessarily do. Movies can use this property to provide alternative content, such as subtitles, when sound is not available.

Note that hasAudio indicates only whether the Flash Player supports audio playback, not whether the computer actually has audio enabled (i.e., has a sound card, speakers turned on, volume on, etc.).

The corresponding server string for hasAudio is A, with possible values of t (true) and f (false). See capabilities.serverString for details.

See Also

capabilities.hasAudioEncoder, capabilities.hasMP3



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net