Certified HTML Designer Learning Resources Flash for Audio

Learning Resources
 

Flash for Audio


Embed audio in HTML by


For the tag, few attributes are included within the tag itself.

The rest of the attributes are to be included using a special tag as the content of the element i.e. between the opening tag and the closing tag.

is an empty element of the form and is used to set attributes to the element.


For the element all the attributes are defined within the opening tag itself.
 

Attibutes for AUDIO EMBED     
• WIDTH - HEIGHT

   

This attribute specifies the width (in pixels) of the Audio Control Panel. The optimal width to use is 144 pixels. Internet Explorer yields a reasonable panel and Navigator a Standard panel with this value.

If a value less than optimal is used the control panel is chopped off in Navigator. Similar behaviour is noticed even if the attribute is not used at all.

If a value greater than optimal is used a blank area is inserted to the right.

   

This attribute specifies the height (in pixels) of the Audio Control Panel. The optimal width to use is 60 pixels. Internet Explorer yields a reasonable panel and Navigator a Standard panel with this value.

If a value less than optimal is used the control panel is chopped off in Navigator. Similar behaviour is noticed even if the attribute is not used at all.

If a value greater than optimal is used a blank area is inserted at the top.
• AUDIO URL

   

This attribute specifies the URI of the audio file to be loaded.
• ALIGNMENT

   

This attributes specifies how the control panel should be aligned. Aligning control panel is similar to aligning images.

Possible options are Left, Right, Top, Bottom, Center, Baseline, Texttop, Middle, Absmiddle, Absbottom.
• IDENTITY for the element for being used in scripts

   

This attribute creates an identity to the element so that it can be referenced using a scripting language.
• Show/Hide Control Panel

   

This attribute instructs the browser whether or not to display the audio control panel.

TRUE - hide, FALSE - display. The default value is false if this attribute is omitted.
• Enabling/Disabling AUTOSTART on Loading

   

This attribute instructs the browser whether or not to start playing the sound track immediately on loading in the browser.

TRUE - play, FALSE - do not play.

The default value is true for internet explorer and false for navigator (if this attribute is omitted). On Macintosh machines the default value is false for both browsers.
• LOOP/PLAYCOUNT : Playing the audio track indefinitely

   

This attribute (works only in Navigator) specifies whether the audio track should be played repeatedly or should it be stopped after playing once or the specified number of times.

TRUE - play indefinitely, FALSE - stop after reaching the end of the track. A NUMER - play that many number of times.

The default value is false if this attribute is omitted.

   

This attribute (works only in Internet Explorer) specifies the number of times the audio track should be played. The track would be played as many times as the number specifies.

The default value is infinite number of times if this attribute is omitted.
• Background Music
Including background music in your web pages can be achieved by using the following combination of attributes

autostart="true", hidden="true"

The loop="__" or playcount="__" attribute may be used according to the duration for which you want the background music to be played.
• VOLUME LEVEL

   

This attribute (works only in Navigator) specifies the volume level at which the audio track should be played.

The value for this attribute can range from 0 to 100. The default value is 50.
• STARTING POINT

   

This attribute (works only in Navigator) indicates the spot on the track from where the file is to be played. The spot is to be specified in minutes (part of minutes in seconds) from the beginning of the track.

The audio track will start playing from that point immediately on download (when autostart is set to true) or when you hit the play button for the first time.

An error message is returned if a time longer than the soundtrack length is specified.
• ENDING POINT

   

This attribute (supported only by Navigator) indicates the spot on the track at which the file should stop playing. The spot is to be specified in minutes (part of minutes in seconds) from the beginning of the track.

An error message is returned if a time longer than the soundtrack length is specified.
• PLUGINSPACE/PLUGINURL : location of the player SOFTWARE for download if needed

   

This attribute (supported only by Navigator) specifies the location of the plug-in software needed to run the sound file.

   

This attribute (supported only by Navigator) specifies the location of the software needed to install the specified plug-in.
• LINKING the Control to a URL

   

This attribute (works only in Internet Explorer) indicates the destination of the url related to the audio control.

This is the destination to which the user is taken when the user clicks on the "Open this link" option on the menu related to audio control panel.

 

 For Support