# psych-plus-haxelib/flxanimate architecture

> Architecture diagram of the GitHub repository psych-plus-haxelib/flxanimate, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/psych-plus-haxelib/flxanimate
- Repository: https://github.com/psych-plus-haxelib/flxanimate

## Overview

FlxAnimate is a HaxeFlixel runtime plugin for loading Adobe Animate texture atlases and spritesheets and playing them as animations. The principal workflow starts when a game supplies an exported asset path to FlxAnimate for atlas use, or constructs FlxAnimateFrames from a spritesheet. The tree also shows animation/timeline, motion, rendering-effect, and format-parsing subsystems. No source excerpts were provided, so relationships beyond the README-documented entry points are omitted; subsystem contents are identified from paths, not inspected behavior.

Main entry points: [`flxanimate/FlxAnimate.hx`](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/FlxAnimate.hx) (FlxAnimate), [`flxanimate/frames/FlxAnimateFrames.hx`](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/frames/FlxAnimateFrames.hx) (Spritesheet frames)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime playback"]
  node_animate["FlxAnimate<br/>[FlxAnimate.hx]"]
  node_frames["Spritesheet frames"]
end

subgraph group_animation["Animation model"]
  node_timeline["Timeline<br/>[FlxTimeline.hx]"]
  node_anim["Animation<br/>[FlxAnim.hx]"]
  node_layer["Animation layers<br/>[FlxLayer.hx]"]
  node_element["Animation elements<br/>[FlxElement.hx]"]
  node_keyframe["Keyframes<br/>[FlxKeyFrame.hx]"]
  node_symbol["Symbols<br/>[FlxSymbol.hx]"]
  node_symbol_dict["Symbol dictionary"]
  node_label["Animation labels<br/>[FlxLabel.hx]"]
  node_sound["Sound mixer<br/>[SoundMixer.hx]"]
  node_tween["Tween manager<br/>[TweenManager.hx]"]
  node_classic_params["Classic parameters<br/>[ClassicParams.hx]"]
  node_ease["Easing functions<br/>[BaseEase.hx]"]
end

subgraph group_render["Rendering effects"]
  node_filter_renderer["Filter renderer"]
  node_filter["Filter types<br/>[BevelFilter.hx]"]
  node_color_effects["Color effects<br/>[FlxColorEffect.hx]"]
  node_matrix["Color matrix<br/>[ColorMatrix.hx]"]
end

subgraph group_formats["Asset formats"]
  node_atlas_data["Animation data<br/>[AnimationData.hx]"]
  node_sprite_data["Sprite map data<br/>[SpriteMapData.hx]"]
  node_json_parser["JSON parser<br/>[JsonParser.hx]"]
  node_property_list["Property lists<br/>[PropertyList.hx]"]
  node_zip["ZIP support<br/>[Zip.hx]"]
end

node_game(("HaxeFlixel game"))

node_game -->|"instantiates for atlas"| node_animate
node_game -->|"constructs spritesheet frames"| node_frames

click node_animate "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/FlxAnimate.hx"
click node_frames "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/frames/FlxAnimateFrames.hx"
click node_atlas_data "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/data/AnimationData.hx"
click node_sprite_data "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/data/SpriteMapData.hx"
click node_json_parser "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/format/JsonParser.hx"
click node_property_list "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/format/PropertyList.hx"
click node_timeline "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxTimeline.hx"
click node_anim "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxAnim.hx"
click node_layer "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxLayer.hx"
click node_element "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxElement.hx"
click node_keyframe "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxKeyFrame.hx"
click node_symbol "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxSymbol.hx"
click node_symbol_dict "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxSymbolDictionary.hx"
click node_label "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxLabel.hx"
click node_sound "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/SoundMixer.hx"
click node_tween "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/TweenManager.hx"
click node_classic_params "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/ClassicParams.hx"
click node_ease "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/easing/BaseEase.hx"
click node_filter_renderer "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/display/FlxAnimateFilterRenderer.hx"
click node_filter "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/filters/BevelFilter.hx"
click node_color_effects "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/effects/FlxColorEffect.hx"
click node_matrix "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/ColorMatrix.hx"
click node_zip "https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/zip/Zip.hx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_animate,node_frames toneBlue
class node_timeline,node_anim,node_layer,node_element,node_keyframe,node_symbol,node_symbol_dict,node_label,node_sound,node_tween,node_classic_params,node_ease toneAmber
class node_filter_renderer,node_filter,node_color_effects,node_matrix toneMint
class node_atlas_data,node_sprite_data,node_json_parser,node_property_list,node_zip toneRose
class node_game toneIndigo
```

## Components

### Runtime playback

- [FlxAnimate](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/FlxAnimate.hx): `flxanimate/FlxAnimate.hx`
- [Spritesheet frames](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/frames/FlxAnimateFrames.hx): `flxanimate/frames/FlxAnimateFrames.hx`

### Animation model

- [Timeline](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxTimeline.hx): `flxanimate/animate/FlxTimeline.hx`
- [Animation](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxAnim.hx): `flxanimate/animate/FlxAnim.hx`
- [Animation layers](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxLayer.hx): `flxanimate/animate/FlxLayer.hx`
- [Animation elements](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxElement.hx): `flxanimate/animate/FlxElement.hx`
- [Keyframes](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxKeyFrame.hx): `flxanimate/animate/FlxKeyFrame.hx`
- [Symbols](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxSymbol.hx): `flxanimate/animate/FlxSymbol.hx`
- [Symbol dictionary](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxSymbolDictionary.hx): `flxanimate/animate/FlxSymbolDictionary.hx`
- [Animation labels](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/FlxLabel.hx): `flxanimate/animate/FlxLabel.hx`
- [Sound mixer](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/animate/SoundMixer.hx): `flxanimate/animate/SoundMixer.hx`
- [Tween manager](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/TweenManager.hx): `flxanimate/motion/TweenManager.hx`
- [Classic parameters](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/ClassicParams.hx): `flxanimate/motion/ClassicParams.hx`
- [Easing functions](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/easing/BaseEase.hx): `flxanimate/motion/easing/BaseEase.hx`

### Rendering effects

- [Filter renderer](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/display/FlxAnimateFilterRenderer.hx): `flxanimate/display/FlxAnimateFilterRenderer.hx`
- [Filter types](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/filters/BevelFilter.hx): `flxanimate/filters/BevelFilter.hx`
- [Color effects](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/effects/FlxColorEffect.hx): `flxanimate/effects/FlxColorEffect.hx`
- [Color matrix](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/motion/ColorMatrix.hx): `flxanimate/motion/ColorMatrix.hx`

### Asset formats

- [Animation data](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/data/AnimationData.hx): `flxanimate/data/AnimationData.hx`
- [Sprite map data](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/data/SpriteMapData.hx): `flxanimate/data/SpriteMapData.hx`
- [JSON parser](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/format/JsonParser.hx): `flxanimate/format/JsonParser.hx`
- [Property lists](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/format/PropertyList.hx): `flxanimate/format/PropertyList.hx`
- [ZIP support](https://github.com/psych-plus-haxelib/flxanimate/blob/master/flxanimate/zip/Zip.hx): `flxanimate/zip/Zip.hx`

### Other components

- **HaxeFlixel game**

## Connections

- HaxeFlixel game → FlxAnimate: instantiates for atlas (evidence: `README.md`)
- HaxeFlixel game → Spritesheet frames: constructs spritesheet frames (evidence: `README.md`)
