Appearance
hm5-types (source format) / LibrarySymbol
Interface: LibrarySymbol
A Library symbol. Symbols are ONE kind (owner 2026-11-20: the old slot / skin kinds are gone; dress-up = slotProfile).
Properties
| Property | Type | Description |
|---|---|---|
contentEdit? | object | owner 2026-11-01: a temporary symbol holding a mesh object's or a group's content while it is edited in place (double-click; hidden from the Library); endContentEdit moves the art back and removes it |
contentEdit.elementId | string | - |
contentEdit.layerId | string | - |
entryScript? | string | "custom" above: the script asset run as its entry |
exportAs? | "vector" | "bitmap" | "auto" | Publish / runtime export (owner 2026-10-30): its vector art as atlas pictures ("bitmap") or as vector paths drawn by the player ("vector"); absent / "auto" = vector when its SVG is 50 KB or less. |
exportId? | string | Export id: the name scripts instantiate this symbol by. Publish ships a symbol that has one even when nothing in the root scene reaches it; without one it ships only when reached. |
folder? | string | Library folder ("/"-separated path, e.g. "Characters/Hero"), as in Flash's Library panel; absent = the library root. Organisation only — nothing renders or exports differently. |
frameBase? | 0 | 1 | owner 2026-11-05: the number the editor shows for its FIRST frame — 0 or 1 (absent = 1). Display only (timeline ruler, frame boxes, Properties, actions typed as numbers); frames are always stored 0-based. frameBaseOf. |
id | string | - |
imageEdit? | object | owner 2026-11-06: a temporary symbol holding a Library image while it is edited (Library double-click, or a bitmap object double-clicked on the canvas): one bitmap layer, one frame, the picture's imageTransform = where its top-left sits relative to the image's original top-left. endImageEdit writes the picture back into the image (every use) and removes it. Hidden from the Library. |
imageEdit.assetId | string | - |
independentClock? | boolean | owner 2026-10-25: true = every instance plays on its own clock, not the parent timeline's (keeps playing when the parent stops; the editor only shows its first frame, a player shows the real thing). Absent = synced to the parent (loop / first frame / reverse / speed apply). |
loadLevel? | LoadLevel | Publish (owner 2026-10-30): when its art loads — "first" before the animation starts, "auto" in the background after it started, "lazy" when the timeline / a script needs it. Absent = "first"; art inside an unset nested symbol follows the symbol it is in. |
name | string | - |
perspective? | Perspective | the perspective the 3D objects inside it use (Library → Details…, centre in the symbol's coordinates); an instance's innerPersp overrides it; absent = the enclosing one (finally the scene's). Not used while preserve3d is on (its 3D shares the enclosing space). |
pictureEdit? | object | owner 2026-11-19: a temporary symbol showing a document picture (BitmapImage, Library › bitmap layers → Edit Picture) on one bitmap layer, one frame, so it can be edited when no bitmap layer shows it. The keyframe shows THE picture itself (never a copy: document ownKeyframePicture), so every edit is the picture's at once; endPictureEdit only removes the symbol. Hidden from the Library. |
pictureEdit.imageId | string | - |
plugins? | PluginData | data for plugins (owner 2026-11-16): plugin name → its own data (PluginData), e.g. a physics body's settings shared by every instance; an instance's own plugins sit beside it (a plugin decides how the two combine). Absent = none. |
preserve3d? | "keep" | "sort" | preserve 3D (owner 2026-11-08, plan R9 — CSS preserve-3d): the 3D objects inside share the enclosing 3D space — an instance's own turn composes with theirs and ONE perspective projects them all (a cube, a carousel); "sort" also draws them far to near, "keep" keeps the layer order. Absent = flattened (Flash: drawn flat, then turned as one card). |
psd? | PsdSource | the Photoshop file this symbol was imported from (gap plan #18, 2026-11-24): Library › "Update from PSD…" reads a new version of it and swaps the pixels of the pieces it made (BitmapSubLayer.psd, Layer.psd) — bones, weights, meshes, keys stay. Meaning: document ops/psdUpdate.ts. Absent = not imported from a PSD. |
publishEntry? | PublishEntry | Publish of this symbol ALONE (owner 2026-11-17: Ctrl+Shift+Enter preview, Export "Complete web page" of it): its own entry script choice; absent = the document's (DocumentSettings.publishEntry). |
scale9? | Scale9 | 9-slice scaling (Library → Details…): an instance's scale stretches only the middle between these cut lines (symbol space); absent = plain scaling |
scenes | Scene[] | symbols contain full multi-scene timelines |
scripts? | ScriptRef[] | scripts (Behaviours) every instance gets, in order (owner 2026-10-26); absent = none |
separateFile? | boolean | Publish (owner 2026-10-30, Library → Details…): published as its own JSON (<file>_<symbol>.json with its own media) that the main file only names; art only it uses is not in the main file. Absent = in the file that uses it. |
slotProfile? | SlotProfile | a SLOT PROFILE (owner 2026-11-20, plan 2026-11-19-mesh-slot-bone-puppet-plan 流程二): edited as a mind map, not a timeline — the symbol has one scene, one layer and one keyframe whose elements are the ITEMS, placed where the mind map shows them; this holds the circles (categories) and each item's name. Objects on stage show an item through ElementBase.slot. Never placed as an instance. Absent = a symbol. |
stopAtEnd? | boolean | play once and hold the last frame instead of looping — in a player (its own clock) and for instances synced to their parent; absent = loops. Set in Properties / the Playback panel while editing it. |
values? | ValueRow[] | its VALUES (owner 2026-11-22): the named Inputs / Refs / Formulas of this symbol's timeline, in Values panel order; an instance gives its Inputs values through SymbolInstanceElement.vars (by input NAME). Meaning: document values.ts. Absent = none. |