A timeline is a tree of elements: the timeline holds layers, each layer holds its
keyframes, and each keyframe holds its script and what is on the stage while it lasts.
A scene’s timeline is in DOMDocument.xml; a symbol’s is in its own file in
LIBRARY/, with the same elements.
<DOMLayer name="[actionscript]" color="#FFFF4F" current="true" isSelected="true" autoNamed="false">
<frames>
<DOMFrame index="0" keyMode="9728">
<Actionscript>
<script><![CDATA[//----------------------------------------------------------
// Very simple preloader
//----------------------------------------------------------
if (this.stage.loaderInfo.bytesLoaded / this.stage.loaderInfo.bytesTotal >=1)
gotoAndStop("connect");]]></script>
</Actionscript>
<elements/>
</DOMFrame>
<DOMFrame index="1" duration="7" keyMode="9728"> …
DOMTimeline
In DOMDocument.xml, <timelines> holds one
<DOMTimeline> for each scene; in a symbol file,
<timeline> holds the symbol’s one <DOMTimeline>.
Its name is the scene’s name (such as Scene 1) or the
symbol’s. Its child <layers> holds the layers. It also has
currentFrame (the frame the editor was on, counted from 0; default 0),
hrefDataBindingsFile (a data bindings file) and guides
(the guides, as text). The explorer lists these in its Timeline settings table, showing
the current frame counted from 1.
DOMLayer
| Attribute | Meaning |
|---|---|
name | The layer’s name, such as [actionscript]. |
color | The outline colour shown for the layer, as #RRGGBB. |
current | true on the layer that was current when the document was saved. |
isSelected | true on selected layers. |
autoNamed | false when the user named the layer (default true). |
layerType | normal (the default), folder, mask or guide. A guided or masked layer is a normal layer whose parent is the guide or mask. |
parentLayerIndex | The position, counted from 0 in the same <layers> list, of the folder, mask or guide layer this one belongs under. |
open | Whether a folder is open (default true). |
locked, visible | Locked (default false), shown (default true). |
outline, useOutlineView | Shown as outlines. |
heightLiteral, heightMultiplier | The row’s height, and how many times the normal height it is (default 1). |
animationType | none, motion object (a layer of a CS4-style motion tween) or IK pose (an armature). |
poseLocations | An armature layer’s pose frames. |
A layer’s child <frames> holds its keyframes.
DOMFrame
Only keyframes are written, one <DOMFrame> each, in order. The
frames between keyframes are covered by the durations.
| Attribute | Meaning |
|---|---|
index | The first frame of the keyframe, counted from 0. Flash shows frame index + 1. |
duration | How many frames it lasts; 1 when absent. |
keyMode | The key mode, a number the binary FLA also stores. |
tweenType | none (the default), motion (a classic tween), shape, motion object (a CS4-style motion tween) or IK pose. |
name, labelType | The frame label, and its kind: name, comment or anchor. |
acceleration | The tween’s ease, −100 to 100 (default 0). |
motionTweenScale, motionTweenSnap, motionTweenOrientToPath, motionTweenSync | A classic tween’s options. |
motionTweenRotate, motionTweenRotateTimes | none, auto, clockwise or counter-clockwise, and the number of turns. |
shapeTweenBlend | distributive or angular. |
useSingleEaseCurve, hasCustomEase | A custom ease, kept in <tweens> (below). |
isMotionObject, visibleAnimationKeyframes, tweenInstanceName | For a CS4-style motion tween. |
isIKPose | A pose of an armature. |
bookmark | A bookmark, as the binary FLA also stores. |
soundName | The sound that starts here: a sound item’s name. |
soundSync | event (the default), start, stop or stream. |
soundEffect | none, left channel, right channel, fade left to right, fade right to left, fade in, fade out or custom. |
soundLoopMode, soundLoop | repeat (that many times, default 1) or loop. |
inPoint44, outPoint44, soundZoomLevel | The sound’s start and end, in samples at 44.1 kHz, and the sound editor’s zoom. |
Key mode
The low byte is the tween kind (0 none, 1 classic motion, 2 shape, 3 motion object, 4
IK pose); 0x0100 orient to path, 0x0200 scale,
0x0400 rotate, 0x0800 sync, 0x1000 snap;
0x2000 and 0x4000 are set but not established. So
9728 (0x2600) is an ordinary keyframe and 22017
(0x5601) a classic motion tween with scale, rotate and snap. The same
numbers are stored in the frame records of a
binary FLA.
So in the example, the keyframe with index="0" is frame 1, and the one
with index="1" duration="7" covers frames 2 to 8. The explorer labels
each script with this frame number.
A frame holds, as children:
<Actionscript>– the frame script, in a<script>element; see ActionScript in FLA. It can carrybreakpointsandoffsets(each a comma-separated list of whole numbers, the lines of the script that have breakpoints, and offsets) andhref(a script kept in a file). The explorer shows the breakpoints in the Keyframes table.<elements>– what is on the stage in this keyframe (below); empty as<elements/>on a scripts layer<MorphShape>– the shape tween, on a keyframe that starts one<tweens>– a custom ease: one<CustomEase target>for each ofposition,rotation,scale,color,filtersorall, holding<Point x y>control points; see custom ease<SoundEnvelope>– a custom sound effect:<SoundEnvelopePoint mark44 level0 level1>, a position in 44.1 kHz samples and the left and right levels; see sound envelopes<motionObjectXML>– a CS4-style motion tween, as its<AnimationCore>XML; see Motion tweens<IKTree>– an armature’s bones and their settings, and<betweenFrameMatrixList>, the matrices of the frames between poses; see Armatures
Elements on the stage
<elements> lists the things on the stage in the keyframe: shapes,
primitives, groups, instances of symbols, bitmaps, video, components and compiled
clips, and text fields. Every kind and its attributes are on the
Elements on the stage page.
Symbol instances
A <DOMSymbolInstance> places a symbol from the library, named by
libraryItemName, with its instance name, a matrix, and for
ActionScript 1.0 and 2.0 its handlers in <Actionscript> (see
ActionScript in FLA). All
its attributes are on the Elements
on the stage page.
Tweens
A tween is stored on the keyframe where it starts, and runs for that keyframe’s duration, to the next keyframe:
- A classic motion tween (
tweenType="motion") moves the keyframe’s one instance to where it is in the next keyframe, with the options in the frame’s attributes and key mode. - A motion object tween, Flash CS4’s new motion tween, keeps its
property curves as
<motionObjectXML>on the frame. - A shape tween stores a
<MorphShape>on the starting keyframe, below.
<MorphShape> has acceleration and
mappingType (distributive, angular vertex,
random distribution or linear walk), and holds:
<morphSegments>– one<MorphSegment>for each matched outline:startPointAandstartPointB, andstrokeIndex1,strokeIndex2,fillIndex1,fillIndex2(−1 for none); its<MorphCurves>each havecontrolPointA,anchorPointA,controlPointB,anchorPointBandisLine<morphHintsList>– shape hints, each<MorphHint>withstartPoint,endPointandkey
A is the start shape and B the end shape. Points are written as two numbers in the
same # hexadecimal form as edges; see
Shapes and edge encoding. These are
the same fields as a binary FLA’s CMorphSegment, CMorphCurve
and CMorphHintItem.
Armatures (inverse kinematics)
A keyframe of an armature layer (animationType="IK pose") holds an
<IKTree>. The notes below are the unofficial schema’s; the explorer
writes every attribute of every element out, one to a line with its note, in its
Animation detail section.
IKTree
| Attribute or child | Meaning |
|---|---|
name, treeName | The armature’s name, and the tree’s name in the IK hierarchy. Both required. |
physicsEnabled | Springs are on (default false). |
exportType | authortime (default) or runtime. |
displayStyle | wire, solid (default) or line. |
connectionIndices, connectionData | The armature’s connections: each a comma-separated list of numbers. |
<IKNode> | The root bone (below). |
<states> | One <IKState> for each pose: duration in frames (required) and the ease attributes. |
<IKContour> | The armature’s contour (below). |
IKNode and ChildNode
A bone is an <IKNode>; its children are <ChildNode>
elements, of the same layout, one inside another down the armature.
| Attribute or child | Meaning |
|---|---|
name, boneName | The node’s name and the bone’s name. Required. |
location | Where the bone is, in the form #x.y, #x.y (hexadecimal, as in edges). Required. |
xArray, yArray, angleArray | The bone’s X coordinates, Y coordinates and angles over the poses, as text. |
referenceID | The bone’s reference number. |
speed | The bone’s speed: 0.0 to 100.0 as Flash writes it (default 100.0), usually 0.0 to 1.0 in archived forms. |
rotationEnabled, rotationConstrained, rotationMin, rotationMax | Whether the joint may rotate (default true), whether that is limited (default false), and the least and greatest angle (floats, default 0.0). |
xTranslationEnabled, xTranslationConstrained, xTranslationMin, xTranslationMax | The same for movement along X (enabled and constrained default false; limits default 0.0). |
yTranslationEnabled, yTranslationConstrained, yTranslationMin, yTranslationMax | The same for movement along Y. |
springStrength, dampingValue | Spring strength and damping (floats, default 0.0). |
nodeType | undefined (default), lsd, ik, shape or symbol. The schema describes them only by name. |
locked, selection attributes | Locked in the editor (default false); the selection attributes every element has. |
<states> | One <State> for each pose: duration in frames (required), x and y (the bone’s place in this state), xRel and yRel (relative to its parent), angle (all floats, default 0.0) and the ease attributes. |
<pins> | Archived pin positions: one <Pin integerPoint> each, in XFL integer-point notation. |
<worldMatrix> | A <Matrix> placing the bone in the world. |
<childNodes> | The <ChildNode> bones below this one. |
Ease attributes of a state
easeIn, easeOut and easeValue are integers from
−100 to 100 (default 0). easeType (default none) is
none, simple quadratic (Simple, Slow), simple cubic
(Medium), simple quartic (Fast), simple quintic (Fastest),
dual quadratic (Stop and Start, Slow), dual cubic (Medium),
dual quartic (Fast) or dual quintic (Fastest).
IKContour
| Attribute or child | Meaning |
|---|---|
interior | Whether the contour is an interior one (default false). |
orientation | counter clockwise (default), clockwise or no area. |
rectLeft, rectTop, rectRight, rectBottom | The contour’s bounding rectangle (integers, default 0). |
fillSelected, strokeHasSelection, strokeFullySelected | Whether the fill is selected, and whether the stroke is partly or wholly selected (default false). |
<dataPoints> | The outline, one <DataPoint integerPoint> each, written x, y as two numbers in decimal or in the # hexadecimal form. |
<matrix> | The contour’s transformation matrix. |
| stroke and fill | The same stroke and fill elements a shape has. |
<IKContainedContour>, <NextContour> | A contour inside this one, and the next contour: each of the same layout as <IKContour>. |
A keyframe of an armature layer can also hold <betweenFrameMatrixList>,
a list of <Matrix> elements, one for each frame between poses.
Motion tweens (AnimationCore)
A CS4-style motion tween keeps its curves in the starting keyframe’s
<motionObjectXML>, which holds one <AnimationCore>.
The schema lists the elements and attributes below with their types and gives no notes
for them, so what each means is established only as far as the
JPEXS exporter below goes; the explorer shows every value as written with those notes, and shows duration and each
timevalue divided by TimeScale as a plain ratio.
| Element | Attributes and children |
|---|---|
<AnimationCore> | TimeScale (double), Version (integer), duration (double); children <TimeMap> (any number), <metadata> and <PropertyContainer> (any number) |
<TimeMap> | strength (double), type (text) |
<metadata> | A <names> list of <name langID value> elements (the motion’s name in each language), and <Settings> with orientToPath, xformPtXOffsetPct, xformPtYOffsetPct and xformPtZOffsetPixels (all doubles) |
<PropertyContainer> | id (text); holds <PropertyContainer> and <Property> elements, nested to any depth |
<Property> | id, enabled, visible, readonly, ignoreTimeMap (all text); holds <Keyframe> elements |
<Keyframe> | timevalue, anchor, previous, next, roving (all text) |
The ids’ values (which group and which property) are not listed in the schema. In
the schema orientToPath is typed as a double, not a flag; the names
xformPt… suggest the transformation point (offsets as percentages and in pixels),
which the schema does not confirm.
What the JPEXS decompiler’s motion exporter writes
The one public source that says more is the code in JPEXS Free Flash Decompiler that
writes motion tweens for Flash CS6 (jindrapetrik/jpexs-decompiler,
libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/MotionTweenDetector.java
and NativeTimeMap.java, read 2026-11-13). It writes AnimationCore for a
symbol it has already rebuilt from SWF frames, and the comments say which parts it
checked against files saved by Flash CS6. What it shows, and no more:
TimeScaleis the frame rate × 1000,Versionis 1, anddurationis (last frame − first frame) × 1000 + 1000. A keyframe’stimevalueis its frame offset × 1000. Sotimevalue÷TimeScaleis seconds, as the explorer’s ratio shows.<TimeMap strength type>:strengthis from −100 to 100 andtypeis one ofQuadratic,DualQuadratic,Cubic,Quartic,Quintic,DualCubic,DualQuartic,DualQuintic,Spring,Bounce,BounceIn. A time map of strength 0 is linear. For a time 0 ≤ t ≤ 1 through the tween, JPEXS’s model of the progress is: Quadratic t + s × t(1 − t); DualQuadratic t + s × (t if t < ½, else 1 − t) × (1 − 2t); for power p = 3, 4, 5 (Cubic, Quartic, Quintic) q = 1 − (1 − t)p, and for the Dual forms q = ½(1 − (1 − 2t)p) up to t = ½ and ½(1 + (2t − 1)p) after it, with progress t + s × (q − t); here s is strength ÷ 100. Spring and the two Bounce types use strength as a count of oscillations or bounces (above 0); their formulas are inNativeTimeMap.progress. These are JPEXS’s fitted models, and its comments say only some strengths were measured against Flash CS6; they are not Adobe’s definition.<Settings>:orientToPathis written 0,xformPtXOffsetPctandxformPtYOffsetPctare the symbol’s registration point andxformPtZOffsetPixelsis 0. WhatorientToPathdoes when it is not 0 is not given by JPEXS (its README says orientToPath recovery is unsupported). Established from 1 real file, a CS4 binary FLA (testdata/fla/cs4/0022_motiontween-cs4.flaof jindrapetrik/flacomdoc, read 2026-11-13): two motion tweens of 30 frames, one withorientToPath="0"and one withorientToPath="1"(the “Orient to path” option). With 0 theRotation_Zproperty has the two keyframes the author set. With 1 Flash replaces it with one keyframe for every frame (timevalue 0, 1000, 2000 … 29000), the property markedignoreTimeMap="1", each value the rotation that follows the path, here about 0 (rounding noise of 1e-13) because the path is nearly straight. So the value is a flag, 1 for on, and it makes Flash write the heading as per-frame rotation keys. Not shown by the file: any value other than 0 and 1.- Property groups and ids:
headContainerholdsBasic_Motion(Motion_X,Motion_Y,Rotation_Z),Transformation(Skew_X,Scale_X,Scale_Y,Skew_Y) andColorswithAdvanced_ColorXform(AdvClr_R_Pct,AdvClr_G_Pct,AdvClr_B_Pct,AdvClr_A_Pct,AdvClr_R_Offset,AdvClr_G_Offset,AdvClr_B_Offset,AdvClr_A_Offset), plus the filter properties itsFilterTweenDetectorwrites. Scale and colour percentages are written as percent numbers and rotation and skew in degrees. These are the ids JPEXS writes, not a complete list of what Flash writes. <Property>: it writesenabled="1",readonly="0",visible="1", andignoreTimeMap="1"for properties it samples frame by frame (its comment: sampled properties ignore the time map). Whatenabled,visibleandreadonlydo is not stated.<Keyframe>:anchor,previousandnextare points written astime,value;rovingis written 0 (what 1 means is not stated). The node types of an armature (nodeType) are not covered by this source.
Custom ease and sound envelopes
A frame with hasCustomEase="true" holds <tweens> with one
<CustomEase> for each property that has its own curve.
target (required) is position, rotation,
scale, color, filters or all (the
curve applies to every property). A curve has at least two <Point>
elements; x and y are floats from 0.0 to 1.0 (default 0.0):
the time through the tween and how far it has got. With
useSingleEaseCurve="true" (the default) one curve serves every property.
A frame with soundEffect="custom" holds <SoundEnvelope>
with <SoundEnvelopePoint> elements: mark44 (a whole number,
default 0) is the point’s position in samples at 44.1 kHz, and level0 and
level1 are the left and right channel levels, whole numbers from 0 to 65535
(default 0). The explorer writes out every point with its time in seconds and each level as a
share of the 0 to 65535 range.