Symbols

Symbols and instances

A symbol is artwork you make once and use as often as you like. Each use is an instance. Change the symbol and every instance changes with it; move, scale, tint or animate an instance and the symbol stays the same.

Symbol types

TypeBest forTimeline
GraphicCharacter parts, props, lip-sync mouths: anything animated in step with the main timelinePlays in sync with the timeline it is placed on, so you see its animation as you scrub
Movie ClipSelf-contained loops, and anything that needs filters or 3D rotationPlays on its own clock, independent of the timeline it is placed on
ButtonThings to click in a movie or game, such as menu choices and dress-up optionsFour frames: Up, Over, Down and Hit (see Button symbols)

Some rules of thumb for choosing:

The type you give the symbol is a starting point. Each instance has its own Type in the Properties panel, so one symbol can be placed as a graphic in one spot and as a movie clip in another.

Note

On the stage, a movie clip shows its first frame while you edit and scrub. Its own timeline plays while the document plays (Enter) and when you export, and with Control › Enable Simple Frame Actions on it follows the stop() and goto calls in its frame scripts (see Frame scripts). Use graphic symbols when you want to see the animation frame by frame as you scrub.

Create a symbol

From artwork on the stage

  1. Select the artwork.
  2. Choose Modify › Convert to Symbol... (F8), or right-click it and choose Convert to Symbol.
  3. Give the symbol a name, choose its type, and click a square in the Registration grid to set where its origin will be. The origin is the point the instance rotates and scales around by default.
Convert to Symbol dialog with a name field, a type list and a 3 by 3 registration grid

The selected artwork is replaced by an instance of the new symbol. Phoenix remembers the type and registration you chose for next time. Names must be unique in the library.

From scratch

Choose Insert › New Symbol... (Ctrl+F8), or New Symbol... on the Library panel's right-click menu, then name it and pick its type. Phoenix opens the empty symbol, with one layer and one empty keyframe, so you can draw in it. It is added to the library; drag it onto the stage to use it.

From an animation on the timeline

To turn frames you have already animated into a graphic or movie clip:

  1. Select the layers that hold the animation and choose Edit › Timeline › Copy Layers (or Cut Layers to take them out of the scene).
  2. Choose Insert › New Symbol..., name it and pick its type.
  3. In the new symbol, choose Edit › Timeline › Paste Layers. The layers come in with every frame and setting. Delete the symbol's empty Layer 1 if you like.
  4. Go back to the scene and drag the symbol from the library onto the stage.

For part of one layer, copy just those frames instead (Edit › Timeline › Copy Frames, Ctrl+Alt+C), click frame 1 in the new symbol and choose Paste Frames (Ctrl+Alt+V). Frames copied from several layers paste into the selected layer and the ones below it, so add layers to the symbol first.

The registration point

Every symbol has an origin, its registration point, shown as a small crosshair when you edit the symbol. It is the point an instance is placed by: Reg X and Reg Y in the Properties panel are where it sits. The Registration grid in Convert to Symbol puts it at a corner, the middle of an edge or the center of the artwork. To move it later, edit the symbol and move the artwork itself the other way: the crosshair stays where it is.

Edit a symbol

There are two ways to open a symbol:

Edit in place
Double-click an instance on the stage, or choose Edit › Edit in Place. The rest of the stage stays visible but dims, so you can draw the symbol in context.
Edit on its own
Choose Edit › Edit Symbols (Ctrl+E), double-click the symbol in the library, or pick it from the Edit Symbols list on the edit bar above the stage, just left of the stage controls.
A flower character symbol open for editing in place, with the other characters dimmed and the edit bar reading Scene 1 then fLOWER_01
Editing a symbol in place. The edit bar shows the path from the scene into the symbol.

Inside a symbol you have its own timeline and layers, and all the tools work as usual. A crosshair marks the symbol's origin.

To go back, double-click an empty part of the stage, click the Back arrow or a name in the edit bar, or press Ctrl+E (which reads Edit Document while you are inside a symbol). Symbols can contain other symbols, and the edit bar shows each level you have opened.

The right-click menu on an instance has both ways in: Edit Symbol opens it on its own, Edit in Place in context. Groups open in place the same way, by double-clicking them. Phoenix edits symbols in the document's own window; there is no separate window for one symbol.

Whatever you change inside a symbol changes every instance of it, in every scene. To change one instance only, change its properties on the stage, or duplicate the symbol and swap that instance to the copy.

Button symbols

A button's timeline has four frames, one for each state:

FrameStateShows
1UpThe button as it sits, with the pointer elsewhere. This is also what the stage shows while you edit.
2OverWhile the pointer is over it. With no frame 2, the Up frame stays.
3DownWhile it is pressed. With no frame 3, the Up frame stays.
4HitNever shown. Its artwork is the area that answers the pointer. Leave it empty and the Up frame's artwork is the area instead.
A button symbol open for editing: a hat badge on the stage, and a timeline four frames long with keyframes on frame 1 and frame 4 and an empty layer keyed on every frame
A button open for editing. Its timeline ends after frame 4; the keyframe on frame 4 of the top layer draws the hit area.
  1. Convert artwork to a symbol of type Button, or make a new one, and open it.
  2. Frame 1 is the Up state. Press F6 on frames 2 and 3 to add keyframes for Over and Down, and change the artwork on each: a lighter color, a pressed-in look.
  3. On frame 4, add a keyframe and draw a filled shape over the area that should be clickable. For a text button, a filled rectangle behind the words makes the whole area clickable.

The timeline does not name the four frames, so a frame label on each can help you keep track.

On the stage, buttons show their Up frame and do not react to the pointer, so you can select and move them. To try them, choose Control › Test Movie (Ctrl+Enter): the buttons light up under the pointer and run their scripts when clicked. What a click does is written in ActionScript, on the button instance or on the frame; see ActionScript and Test Movie.

Instance properties

Select an instance to see its settings on the Object tab of the Properties panel. What it shows depends on the instance's type:

Object tab for a movie clip instance named head: Instance, Position and Size, Color Effect, Display with Visible checked, Filters, and 3D Position and View
A movie clip instance
Object tab for a button instance with an empty instance name box: Instance, Position and Size, Color Effect, Display and Filters
A button instance
Instance name
For movie clips and buttons, a name that scripts can use to find the instance. It is in the header at the top of the tab; graphics have none.
Symbol and Swap...
The symbol this instance shows. Swap... replaces it, keeping the instance's position, transform and effects.
Type
Whether this instance acts as a graphic, movie clip or button, independent of the symbol's own type. The tab changes to match.
Position and Size
X, Y, width and height. The chain button keeps width and height in proportion.
Template
The words, colors and choices a template symbol leaves to each instance. Shown only for such symbols.
Color Effect
Brightness, tint, alpha or advanced color for this instance. See Color effects.
Display
The blend mode, Visible and the registration point; see Display below.
Filters
Drop shadows, blurs, glows and more, for movie clips and buttons. See Filters.
3D Position and View
For movie clips: the depth (Z) and the document's perspective angle and vanishing point, set with the 3D tools.
Looping
For graphics: which of the symbol's frames play, below.

There is no Cache as Bitmap or Export as Bitmap setting on the tab. A file that has them keeps them when you save.

Looping for graphics

A graphic instance plays its symbol's frames in step with the timeline it is on. The Looping section controls how:

OptionPlays
LoopFrom the first frame to the end, then starts again
Play OnceTo the end, then holds the last frame
Single FrameHolds one frame, which is how you switch mouth shapes or hand poses
Loop ReverseBackward to frame 1, then starts again from the end
Play Once ReverseBackward to frame 1, then holds it
Ping PongForward to the end, then backward, and again

First sets the frame of the symbol to start from. Last sets where playing stops or turns around: the loops run between First and Last, and the Play Once options hold on Last. Leave Last at 0 to play to the symbol's end.

The count starts at the instance's keyframe. A graphic placed on frame 10 of the scene shows its own frame First on frame 10, the next one on frame 11, and so on, for as long as the scene's span lasts: if the span is shorter than the symbol, the rest never shows. A new keyframe on the scene's layer starts the count again, so to carry on a cycle across keyframes, set First on the new keyframe to where it left off. A classic or motion tween between two keyframes keeps counting, so a walk cycle keeps walking while the tween moves it.

A movie clip has none of these settings. It plays from its first frame when it appears and keeps looping on its own clock, however long the span it sits on, until a script stops it. That is why a movie clip's animation shows when the document plays or exports, but not while you scrub.

Display

The Object tab's Display section has the instance's blend mode, and for a movie clip or button, Visible: turned off, the instance is not drawn, though it stays on the stage for scripts. Reg X and Reg Y place the instance by its registration point rather than by the corner of its bounds.

The Frame Picker

When a symbol holds a set of poses, such as mouth shapes, the Frame Picker is the fastest way to choose between them. Open it from Window › Frame Picker, select a graphic instance, and click a thumbnail to show that frame. Each thumbnail is captioned with its frame number and the frame's label, if it has one. The list beside Create Keyframe sets the instance's looping option. Check Create Keyframe to put each choice on a new keyframe at the playhead, which makes lip sync a matter of stepping through the timeline and clicking. To key a whole line of dialogue from a recording at once, see Lip sync, or try it step by step in the Lip sync tutorial. To swap hands and mouths by picture and loop a blink, follow the Hands and faces with the Frame Picker tutorial.

Swap Symbol

Swap Symbol dialog: a preview of a head symbol above a Duplicate Symbol button, and a list of symbols with head in bold

Modify › Symbol › Swap Symbol..., Swap... on the Object tab, or Swap Symbol... on the stage's right-click menu lists every symbol with a preview. The current one is shown in bold. Pick another and click OK, or double-click it. Select several instances first to swap them all at once.

Duplicate Symbol... makes a copy of the selected symbol to swap to, asking for its name, which is handy when one instance needs a variation.

Swapping is how you change a character's outfit or a prop without redoing its animation: the instance keeps its position, transform and effects.

Duplicate a symbol

To copy a symbol without swapping anything, right-click it in the Library panel and choose Duplicate. The copy is named after it with copy (then copy 2 and so on), and has its own timeline: change it and the original stays as it was. To rename it, right-click it and choose Rename, or press F2.

Bitmaps swap the same way: select one or more bitmaps on the stage and choose Modify › Bitmap › Swap Bitmap..., or click Swap... in the Properties panel. The new bitmap takes the old one's place, scale and rotation.

Templates

A symbol can be a template: one lower third, title card or sign that each instance fills in with its own words and colors. (To start whole documents from a saved layout, see document templates instead.) Its named parts are its fields:

Select an instance and fill them in under Template in the Properties panel, where each field shows as a box, a color, a frame or an image to browse for. Modify › Symbol › Template Fields... (also on the stage's right-click menu) fills in several selected instances at once. A field left empty shows what the symbol has. Fields inside nested symbols count too, and an outer instance's values win over an inner one's. Letter animators on a text field animate the words an instance gives it.

The Template Fields dialog with name set to Ada Lovelace, role to Mathematician, and bar (color) to #30A060, with a Pick button
Template Fields for one instance of a lower third.
Two lower thirds on a blue stage from the same symbol: Ada Lovelace, Mathematician with a green bar, and Grace Hopper, Computer scientist with an orange bar
One symbol, two instances, each with its own words and color.

To make many versions at once, put the values in a spreadsheet saved as CSV: the first row names the fields, and each row after it is one version. A file column names each output; a slider takes a frame number, and an image a path read from the CSV's folder. File › Export › Render from Data... renders the movie once a row, as MP4, MOV, GIF or a PNG sequence, every instance's fields filled from the row (an empty cell leaves each instance's own value). The same works from the command line: Phoenix render lower-third.fla --data people.csv --out renders/. To render the rows in the background while you work, click Add Data... in Window › Render Queue.

file,name,role,bar
ada,Ada Lovelace,Mathematician,#2060C0
grace,Grace Hopper,Rear Admiral,#C02040

Fit what it is given

A longer name needs a longer bar, and a lower third held on screen longer should not slow its slide in. Two things make a template fit:

Two lower thirds from one symbol: Your Name on a short dark plate, and Ada Lovelace, Countess in Georgia on a plate and green bar stretched to fit, with a gold medal and a red live light
The plate and bar are pinned to the name's width; the lower one has a font, Gold picked from a list and Live ticked.

Templates are Phoenix's own: another app opening the FLA file shows each instance as the symbol is drawn. File › Export › Export FLA for Other Apps writes the values in: each instance shows a copy of its symbol with its words, fonts and colors, and its sliders as graphics held on their frames, one copy for each different set of values. Pinned parts are moved or stretched to where they show beside each instance's words, with a keyframe more where that changes along the span, and an instance of a symbol with responsive time shows a copy laid out for its span, the original held on each frame it shows, so the start and the ending keep their speed there too. Image fields show the symbol's own bitmap there.

Break apart an instance

Modify › Break Apart (Ctrl+B) replaces an instance with a copy of the artwork from the frame it shows, with its color effect applied. The symbol itself is not changed.

9-slice scaling

A symbol with 9-slice scale guides, such as a panel or a button frame, keeps its corners at their own size when a movie clip instance of it is stretched: the edges stretch one way and the middle both. Phoenix draws this on the stage and in exports, including on instances that are rotated or skewed, or that have a color effect, filters or a blend mode. Graphic instances of the symbol scale as a whole.

  1. Right-click the symbol in the library and choose Properties....
  2. Check Enable guides for 9-slice scaling and click OK. The guides start a third of the way in from each edge of the art.
  3. Edit the symbol (double-click it in the library, or an instance on the stage). The four guides show as dashed lines.
  4. With the Selection tool, drag each guide to where the corner should end: the left and right guides across, the top and bottom ones up and down. Each move is one step to undo, and a guide stops short of its neighbors.

More guides

A symbol can have more than two guides each way. The strips between them take turns: the first keeps its size, the next stretches, the next keeps its size again, and so on. Four guides across a panel keep a tab in the middle of its top edge at its size while the edge on either side of it stretches; six keep two such parts. Set Guides across and Guides down in Symbol Properties: the guides are spread evenly over the art, and you drag each into place as above. The stretching strips share the room there is as they share the art, and with too little room the strips that keep their size shrink together.

The first and last guide each way are the symbol's 9-slice guides, so other apps that open the FLA, and SWF movies, scale it by those; the stage, exported images and movies, and HTML5 pages use them all.

Symbol properties and linkage

Right-click a symbol in the Library panel and choose Properties... for its Symbol Properties:

Type
Movie clip, button or graphic. Instances placed from now on take the new type; those already placed keep their own Type until you change it in the Properties panel.
Class
The name scripts create the symbol by, which exports it for ActionScript. Leave it empty for none. Linkage... on the same menu sets just this, and the name shows in the library's Linkage column. See ActionScript 3.
Enable guides for 9-slice scaling
See 9-slice scaling above.
Guides across, Guides down
How many slice guides cut the symbol each way; two is 9-slice scaling. See More guides.

Each change is one step to undo. To rename the symbol, use Rename on the library's menu.

To share a symbol between documents, so that a change in one file reaches the others, use Link to Master File... on the same menu: see Linked shared assets. Symbols are shared as you work, when you update them; Phoenix does not set up runtime shared libraries that a published movie loads from another file.