sprite Element

The sprite element allows creating movie clips in ActiveSWF projects. Also movie clips can be loaded into ActiveSWF project from external images or Flash movies.
The sprite element supports loading external images in WMF format and conversion of them to Flash movie clips in vector format.
External raster images are converted to Flash movie clips with only specified raster image embedded.

Syntax

<sprite id="objectId" [src="url"] [lockroot="lockRoot"]>
  <content>
    <!-- Binary content in Base64 format -->
  </content>
  <styles>
    <!-- Defining styles -->
    ...
  </styles>
  <objects>
    <!-- Defining objects -->
    ...
  </objects>
  <layers>
    <!-- Showing and modifying objects -->
    ...
  </layers>
</sprite>

Attributes

Name

Description

Value type

Optional

Default Value

id

Object identifier

id

no

-

src

External rester image or vector WMF image or SWF movie file name may be specified here to be embeded into sprite.

Use following notation for src attribute:
For resources located in local filesystem: "C:\My folder\myflashmovie.swf"
For web resources use HTTP URLs: "http://mysite.com/myimage.gif"

If both src attribute and content element are specified, content is ignored.

string

yes

-

lockroot

When embedding external SWF movie into sprite enables/disables root movie access from ActionScript using _root variable in embedded sprite.

boolean

yes

true

Parent Elements

objects collection

Children Elements

content element, styles collection, objects collection, layers collection,

See Also

XML Schema Reference, objects collection.