This example demonstrates using alternate media for the PDF version
of the module. Flash elements cannot be inserted into PDF files. In this case, the Web-ready Flash file
will be displayed when viewing the module online and the second element, a still shot from the animation, will be used for the PDF version.
The location of the Flash file. It must be a URL value. If the Flash file is stored
alongside the module, the file name itself can be used (e.g. "file.flv").
Starting with version 0.6, the CNXML language does not permit URLs that contain
ampersand (&) characters (i.e., http://cnx.org/example?i=1&p=2).
Check all object src URLs and replace any ampersands with the entity
reference "&". More information can be found on the
The MIME type of the Flash file, e.g., "application/x-shockwave-flash" or "video/x-flv". This requried value tells each
visitor's browser what sort of information is contained
in the Flash file.
A list of common Internet media MIME types can be found
Specifies whether this object should be displayed in the online or PDF version of the content, or be used as the default media object.
If there is no default media object present, then the <media> element will only be displayed for the version(s) specified.
default - This element is used for both PDF and online versions unless another, version-specific element is present (default).
pdf - This element is used only for the PDF version of the content.
online - This element is used only for the online version of the content.
window - Creates a separate rectangular window.
opaque - Makes the movie hide everything on the page behind it.
transparent - Makes the background of the HTML page shows through all transparent portions of the movie.
Sets the quality of the Flash file.
low - Sets the quality of the Flash file to low.
autolow - Automatically sets the quality of the Flash file to the lowest setting where playback speed does not suffer too much but preserves quality.
autohigh - Automatically sets the quality of the Flash file to the highest setting where quality does not suffer too much.
medium - Sets the quality of the Flash file to medium.
high - Sets the quality of the Flash file to high.
Toggles video file looping.
true - Loops the video.
false - Does not loop the video (default).
Sets the scale for the Flash file.
default - Uses the default scaling of the Flash file (default).
noorder - Scales the movie to fill the specified area, without distortion but possibly with some cropping.
exactfit - Makes the entire movie visible in the specified area without trying to preserve the original aspect ratio.
Sets the background color of the Flash file. Takes a 6-character hexadecimal code (a-f, A-F, 0-9).
Used to pass parameters into the Flash media's FlashVars property.
Sets the height of the Flash media in pixels.
Sets the width of the Flash media in pixels.
The URL of a file containing a long description of the Flash file.
Not all readers will be able to see your included media in
their browser, either due to blindness, low-vision, or an
environment that doesn't support the media. Some media are
too complex to describe fully in a few words using the "alt"
attribute, however. For media like charts and graphs that are
important for understanding the material, use "longdesc" to point
to a Web file that contains a full explanation of the media.
A unique identifier, whose value must begin with a letter and contain only letters,
numbers, hyphens, underscores, colons, and/or periods (no spaces).