Next, we'll add some components as children to control playback. To play a sound file, pass the URL (or a object) to the soundSource property: player.soundSource = "" A SoundPlayer component with controls skinned with MetalWorksMobileThemeįirst, let's create a SoundPlayer component and add it to the display list: var player:SoundPlayer = new SoundPlayer() SoundPlayer is a subclass of LayoutGroup, so its children may be positioned and sized using layouts. Media player controls may be added as children to display information such as the current time or to control playback by seeking or pausing the audio. Sound files may be loaded from a URL or any Sound object may be passed in. The SoundPlayer class provides audio playback capabilities using a object.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |