The library holds everything a document can place on the stage more than once: symbols
drawn in Flash, and imported bitmaps, sounds, videos, fonts and compiled clips. Symbols
are files of their own in LIBRARY/, listed by <Include>
in DOMDocument.xml’s <symbols>. The other items are
elements in DOMDocument.xml itself, in <media> and
<fonts>, and point at their data in bin/. An item’s
name includes its library folder, such as
Assets/Other/minimap.png.
Symbol items
Each symbol file in LIBRARY/ has the root element
<DOMSymbolItem>:
| Attribute or child | Meaning |
|---|---|
name | The symbol’s name, with its folder path. |
itemID | Its identifier, the same as in the <Include> that lists it. |
symbolType | graphic, button or ik container; a movie clip when the attribute is absent. |
lastModified, sourceLastModified | When it, and its source, last changed, as numbers. |
scaleGridLeft, scaleGridRight, scaleGridTop, scaleGridBottom | The 9-slice scaling guides, in pixels, each a float with default 0.0 (0 when there are none). |
hasValidCenterPoint, transformCenterPoint | The symbol’s transformation point. |
isFlexComponent, isSpriteSubclass | Flex component settings. |
lastUniqueIdentifier | The last identifier given out inside the symbol. |
| linkage attributes | See below. |
<timeline> | The symbol’s own <DOMTimeline>, laid out like a scene’s; see Timelines, layers and frames. |
<dataBindingXML> | Data binding settings, as XML. |
A component’s file has the root <DOMComponentItem> instead: the same,
with <parametersAsXML> (its parameters), <classProperties>,
<tasks> (<Task description> with a script), a
<customIcon> bitmap, and attributes for its tooltip, description,
ActionScript class, minimum player and ActionScript version, and the SWF files of its
custom user interface and live preview in bin/.
Bitmap items
A <DOMBitmapItem> in <media> is an imported
image:
| Attribute | Meaning |
|---|---|
name | The item’s name, with its folder path. |
href | A file name for the item. |
bitmapDataHRef | The file in bin/ with the bitmap in Flash’s form, such as M 31 1372941248.dat; see Bitmaps in bin/. |
frameLeft, frameTop, frameRight, frameBottom | The bounds in twips: divide by 20 for pixels. |
isJPEG | true when the .dat file is a JPEG. |
compressionType, originalCompressionType | photo (JPEG, the default) or lossless when published. |
quality, useImportedJPEGData, useDeblocking | The JPEG quality; publish the imported JPEG as it is (default true); deblocking. |
allowSmoothing | Smooth the bitmap when scaled. |
| media attributes | See below. |
The explorer shows up to 48 bitmaps of a document, each titled with its name and the size in pixels that the bounds give.
Sound items, video and fonts
A <DOMSoundItem> in <media> is an imported
sound:
| Attribute | Meaning |
|---|---|
soundDataHRef | Its file in bin/. |
format | The rate, size and channels as words, such as 22kHz 16bit Stereo (rates written 5kHz, 11kHz, 22kHz or 44kHz). |
sampleCount | The length in samples. |
dataLength | For a compressed sound (an imported MP3), the length of its data. |
exportFormat, exportBits, exportNative | How it is compressed when published (below); exportNative publishes it as imported, such as an MP3 unchanged. |
cacheFormat, cachedSampleCount | The uncompressed copy Flash keeps of a compressed sound. |
deviceSoundHRef, use8kSampleRate | A device sound for Flash Lite; publish at 8 kHz. |
The .dat file is the samples with no header: PCM, little-endian, as
format says, or for a compressed sound its MP3 frames. The explorer plays
both.
The publish settings, as the XFL schema’s notes give them.
exportBits is 0 for uncompressed, 18 for Speex, 2 + the code size for
ADPCM, and for MP3 the bit rate: 6 for 8 kbit/s, 7 for 16, 8 for 20, 9 for 24, 10 for
32, 11 for 48, 12 for 56, 13 for 64, 14 for 80, 15 for 112, 16 for 128, 17 for 160.
exportFormat adds 1 for stereo; 2 for 5.5 kHz, 6 for 11 kHz, 10 for 22 kHz
and 14 for 44 kHz; for MP3 4 for best quality. Without the two attributes the sound
uses the document’s publish setting (a binary FLA writes −1 for this). The number that
picks the codec itself is not given there, and is not established. The explorer writes
each sound’s setting out.
A <DOMVideoItem> is an imported video: videoDataHRef
(its file in bin/), videoType (no media,
jpeg media, h263 media, screen share media,
vp6 media, vp6 alpha media, screen v2 video
packet, avc video packet, count media type,
unknown; the codec: a binary FLA stores it as the number 0 to 8 in the
same order, with any other number meaning unknown, as the JPEXS FLA
converter writes them), fps,
width, height, length (seconds),
rate, bits and channels of its sound,
isSpecial, and a bundled device video. Its .dat file has the
same layout as a binary FLA’s video
stream; the explorer shows its fields, lists every index entry of the two tracks,
and, when an entry reads as a Sorenson Spark (H.263) picture, decodes the first and the
last picture of each track. A <DOMVideoItem> also has
hasBundledDeviceVideo (true when a device video for Flash Lite
is bundled with it; default false) and bundledSourceFilepath
(the file that video came from).
<DOMCompiledClipItem>– a compiled clip or component, in<media>:linkageClassNameandactionscriptClassname its class,swfScmHRefnames the SWF that holds it inbin/, and a<SwcItem>child gives the SWC it came from (swcPath,playerVersion,actionscriptVersion,hashKeyand its stage size).<DOMFontItem>– a font symbol, in<fonts>:fontis the font’s name,sizeits size,idits number,embedRangesthe ranges of characters to embed andembeddedCharactersany others; it can carry linkage.<DOMFolderItem>– a library folder, in<folders>:name,itemID,isExpanded.
Common media attributes
Bitmap, sound and video items share name, itemID,
sourcePlatform (windows or macintosh),
sourceExternalFilepath (the file it was imported from),
sourceLastImported, externalFileCRC32 and
externalFileSize, and the accessibility attributes.
ActionScript linkage
A symbol exported for ActionScript has linkageExportForAS="true" and a
class name in linkageClassName. When the SWF is published, the symbol
becomes an instance of that class. The class itself is not in the document: Flash
looks for an .as file of that name on the class path (so
game.Enemy would be game/Enemy.as), and when there is none it
generates a class that simply extends linkageBaseClass. A compiled clip’s
class is already compiled, inside its SWF.
The explorer lists every linkage class in its Classes table, with the symbol it
belongs to, its base class and the .as file it would be in. See
ActionScript in FLA.
Compiled clips and components
A <DOMCompiledClipItem> and a <DOMComponentItem> have
further attributes, all optional. Defaults are the schema’s.
| Attribute | Type, default | Meaning |
|---|---|---|
swfScmHRef, swfScmSourceFilename | text | The compiled clip’s SWF, as a file in bin/, and the file name it came from. (The schema gives the names and no notes.) |
definitionScmHRef, definitionScmSourceFilename | text | The same for the component’s definition file. |
customUIScmHRef, customUIScmSourceFilename | text | The same for its custom user interface, going by the name; not described in the schema. |
livePreviewScmHRef, livePreviewScmSourceFilename | text | The same for its live preview. |
livePreview11ScmHRef, livePreview11ScmSourceFilename, persistLivePreview11 | text; boolean (false) | A second live preview file (the “11” in the name is not explained), and whether it is kept; not described in the schema. |
movieRectLeft, movieRectTop, movieRectRight, movieRectBottom | integer (0) | A rectangle of the compiled SWF (its edges as integers; the unit is not stated in the schema). |
requiredMinimumPlayerVersion, requiredMinimumPlayerVersionName | integer (0); text | The lowest Flash Player the component needs, as a number and as a name. |
requiredMinimumASVersion | integer (0) | The lowest ActionScript version it needs. |
parametersAreLocked, parametersAreNew | boolean (false) | Whether its parameters cannot be edited, and whether they are new. |
displayAsComponent | boolean (false) | Whether the clip shows as a component in the library. |
customIconID | integer (0) | The number of its custom icon. |
editFrameIndex | integer (1) | The frame opened for editing. |
rootSymbolLinkageID | text | The linkage identifier of the clip’s root symbol. |
symbolDescription, descriptionType | text; none (default), reference or text | The component’s description, and whether it is a reference or text. |
tooltip, actionscriptClass | text | The tooltip and the ActionScript class. |
The children of a compiled clip:
<classProperties>– the class’s properties, as text.<customIcon>– one<CustomIcon>for each icon:href(its file),widthandheight,frameLeft,frameTop,frameRightandframeBottom(its bounds; left and top default to 0),rowByteCount(bytes in a row of pixels),colorDepth(bits a pixel) andisTransparent(defaultfalse). An indexed icon has a<colorTable>of up to 256<ColorItem>elements, each withcolor(#RRGGBB) andalpha(0 to 1, default 1).<SwcItem>– the SWC the clip came from, withname,version(both required),implementation,isTopLevel(defaultfalse),intrinsicClassandintrinsicScript(these two named for the class and script the SWC item stands for); and three lists, each of further items of the same kind:<assetMap>holds<AssetMapItem key>, each with one<SwcItem>;<includesList>holds<IncludesItem>and<exportAfterList>holds<ExportAfterItem>. The schema describes none of these further.
The explorer lists each of these in the detail column of the library table, with the custom icons’ sizes and colour counts and the number of SWC items and their lists.