Frames 

 No Frames

Previous Element
Move

Next Element
MovieAttributes


Movie

All RVML files must have a single root movie element. This contains all information relating to a single SWF movie. Each MovieElement has up to 6 sections defining the structure and content for the movie:
  • An optional DataSources element are used to group all external data sources used in the document
  • An optional Components element are used specify the external components to be included in the movie
  • Zero or more Repository elements used to define external resources to be used in the compilation of the SWF movie.
  • An optional ImportSymbols element are used to group all external symbols that are imported into the movie at runtime
  • An optional Definitions element are used to group all internally defined symbols in the movie
  • An optional ExportSymbols element are used to specify those elements of the movie that may be imported by other movies
  • An optional InitClip element containing the ActionScript initialization of symbols and their corresponding classes
  • A single Timeline element defining the movie resulting from the interaction between all local and imported symbols in a series of Frames.
The visible stage of the movie is defined as the rectangle from (0,0) to ( width, height) and all elements partially or completely outside this coordinate space will be clipped.

Attributes

version The lowest SWF version of the movie. SWF players produced by Macromedia increased in capability and complexity from early versions and most platforms now support a version of 5 or greater. The highest possible version should be selected as many file and ActionScript features are only available in later versions. This documentation will detail the lowest supported version for each RVML element however for ActionScript information please consult Macromedia information. If the ActionScript defined in the file is not applicable for the specified version an error will be created during processing of the script.
Values4
5
6
7
8
Default Value7
width The width of the movie in pixels. Will be overridden if a sizeShape attribute is specified. The largest legal width is greater than 53,000,000 however the maximum supported by any player is more likely to be around 3000.
From Value0
To Value53,687,091
Default Value800
height The height of the movie in pixels. Will be overridden if a sizeShape attribute is specified.The largest legal width is greater than 53,000,000 however the maximum supported by any player is more likely to be around 3000.
TypeInteger
From Value0
To Value53,687,091
Default Value600
sizeShape Optional attribute specifying the symbol name of a Shape symbol from which to derive the width and height attributes. This may be particularly useful for ImageShape symbols whose size is unknown.
TypeString
rate The frame rate of the movie. This is the number of frames per second that the movie displays. Typical values are between 12 and 30 for movies which contain any animated element. All movie clips inherit their frame rate from this value. While it can go as high as 255 normal frame rates vary from 1 to 30. High frame rates may result in the player dropping frames to keep up.
TypeInteger
From Value1
To Value255
Default Value12
backgroundColor The color specified as an RGB tuple or a color name. The first number of the tuple represents the red intensity, the second green, and the third blue. A minimum value of 0 for each color results in black and a max value of 255 for each color results in white. Alternatively the color can be specified by name using the color names defined in the SVG specification.
Value Template rgb(Color, Color, Color)
From Value0
To Value255
Value Range Any SVG color name supported in the SVG1.1 specification.
compressed Only applicable when the movie version is 6 or greater. Setting this attribute results in the SWF file being automatically compressed on output with the potential to significantly reduce the size of the resulting SWF movie.
Valuesno
yes
Default Valueno
enableDebug Only applicable when the movie version is 6 or greater. Setting this attribute' allows the SWF movie to be debugged using an active copy of Macromedia Flash MX. Due to the nature of the facility provided by Macromedia ActionScript debugging cannot be carried out as a debug symbol file cannot be created. However the state of all defined elements can be queries at run-time as can the output of ActionScript trace statements. An empty password is provided for the debugger.
Valuesno
yes
Default Valueno
fileAccess In Flash 8, the security model of the Flash player changed so that an SWF could either freely access the internet or local resources but not both (without additional configuration). This attribute defines the security access for the resulting SWF for Version 8 movies and above.
Values
local
Access is permitted to local resources
network
Access is permitted to network resources
Default Valuelocal

Child Elements

Title
Desc
Metadata
DataSources
MovieAttributes
ActionScriptSettings
Components
Repository
ImportSymbols
Definitions
ExportSymbols
InitClipActions
Timeline

Parent Elements

None

Examples

ADPCM Sound Example
Simple MP3 Sound Example
ActionScriptSettings Example
Animate simple symbols on timeline
Button Example
Button DragTarget Example
Button Sound Example
CArcs Example
Circle Examples
Example Of MovieClip classes
Example Of MovieClip classes and scripted animations
Color Specification Example
Timeline Color Transformations
Quadratic Curve Example
Elliptical Arcs Example
Examples of Elliptical Arcs and Circular Arcs
SVG Arc Example in RVML
EditField Examples
EditField Transformations
Defines simple symbol for export
Raw MP3 Example
Font Manipulation Examples
HTML Support in EditFields
Font Range Examples
ActionScript on the Timeline
Color Gradient Examples
ImageFill Examples
ImageShape Example
Import and Export a Symbol
Importing symbols at runtime
Line Style Z-Ordering
Line Style and Scaling
MorphShape Example
Dynamic MovieClip Clipping
Polygon Example
Simple Polyline Example
Rectangle Example
Timeline Replace Examples
Text Segments Example
Shape Fill Examples
Shape Origin Example
Shape Transform Examples
Sound Envelope Example
Square to Circle Morph Example
Clipping and Text Clipping Example
Simple MP3 Sound From URL Example
User-Defined Font Example
Video Example

Previous Element
Move

Next Element
MovieAttributes