19. Automating Your Work

Introduction

The History panel helps you work more efficiently in Flash. As you work, the History panel tracks all the steps you take in Flash. With the History panel, you can undo or redo steps to correct mistakes, replay selected steps for new tasks to streamline repetitive work, and record steps for replay from the Commands menu to automate your work. In addition, Flash allows you to use Object-level undo modes. Which means you can undo steps to a specific object without having to undo the changes made to other main objects on the Stage.

You can open the History panel from the Other Panels submenu on the Window menu. Each step you take in the active document during a work session appears on a separate line in the History panel. You can undo or redo a single step or series of steps quickly with the Undo/Redo slider, which you can drag up to undo a series of steps or drag down to redo a series of steps. You can also select a series of steps in the History panel and replay them to the same object or to a different object in the document.

Do you often repeat the same series of steps? Rather than repeat the same actions, you can work faster by saving the entire series of steps as a command on the Commands menu, which you can reuse again and again. Flash stores the commands you save for future use. After you save steps as a command, you can select the command name on the Commands menu to run it, or use the Manage Saved Command dialog box to rename or delete commands.

Due to the complex nature of some steps, such as adding a gradient to a shape or modifying document size, Flash cannot replay or save (as a command) all steps in the History panel. For these steps, a red X appears in the icon for a step in the History panel. Even though Flash cannot replay or save all steps, it can undo and redo all steps.

Examining the History Panel

The History panel helps you automate and streamline the way you work in Flash. As you work in Flash, the History panel is tracking all your steps for the entire document or only on individual or all objects behind the scenes. With the History panel, you can do any of the following:

Undo or redo steps to correct mistakes.

Replay selected steps for new tasks to streamline repetitive work.

Record steps for replay from the Commands menu to automate your work.

The History panel doesn’t replace the Undo, Redo, and Repeat commands on the Edit menu, it simply tracks every step you perform in Flash. When you undo or redo one or more commands, the History panel displays the results; the Undo/Redo slider moves according to the commands you select.

Examining the History Panel

You can open the History panel using the Window menu like any of the other panels in Flash. Each step you take in the active document during a work session (since you created or opened the document) appears on a separate line in the History panel. The first step you perform in a work session appears at the top of the list and the last step appears at the bottom. If a red X appears in the icon for a step, it indicates Flash cannot save or replay the step. Unlike other panels in Flash, the History panel includes a slider on the left side that you can use to undo/redo steps; the Undo/Redo slider initially points to the last step you performed. The bottom of the History panel includes buttons to replay selected steps, copy selected steps to the Clipboard, and create a command from selected steps. The Options menu displays commands, such as Clear History, specific to the History panel.

Examining the History Panel

Using the History Panel

You can use the Window menu to open the History panel like any of the other panels in Flash; the History panel appears on the Other Panels submenu. Each step you take in the active document during a work session appears on a separate line in the History panel. Steps you take in other Flash documents don’t appear in other History panel lists. If you no longer need the steps in the History panel, you can erase the entire list. When you close a document, Flash clears the History panel.

Open and Close the History Panel

To open the History panel, click the Window menu, point to Other Panels, and then click History.

Open and Close the History Panel

Timesaver

Press Timesaver+F10 (Mac) or Ctrl+F10 (Win) to open the History panel.

To close the panel, click the Close button, or click the Options menu, and then click Close Panel.

Clear the History Panel

Clear the History Panel Open or expand the History panel.

Clear the History Panel

Clear the History Panel Click the Options menu, and then click Clear History.

Clear the History Panel Click Yes to confirm the operation.

Clear the History Panel When you’re done, click the Close button on the History panel.

Undoing and Redoing Steps

You can undo or redo a single step or a series of steps quickly with the History panel. The History panel contains the Undo/Redo slider which you can drag up to undo (restore previous steps) a series of steps, or drag down to redo (restore steps you’ve undone) a series of steps. You can also undo and redo previous steps one at a time using the Undo and Redo commands on the Edit menu. When you use these commands, the steps in the History panel change based on the command results. The History panel and the Undo command can undo steps up to a maximum number (from 2 to 9999) set in the General tab of the Preferences dialog box.

Undo Steps with the History Panel

Undo Steps with the History Panel Open or expand the History panel.

Undo Steps with the History Panel

Undo Steps with the History Panel Drag the Undo/Redo slider up until the slider points to the last step you want to keep.

Timesaver

Position the pointer in the gray area to the left of a step, and then click the gray area to make the slider point to the step.

Flash undoes and grays out each selected step, starting from the bottom.

Timesaver When you’re done, click the Close button on the History panel.

Timesaver

Did You Know?

You can undo steps using the Undo command. Click the Edit menu, and then click Undo, or press You can undo steps using the Undo command.+Z (Mac) or Ctrl+Z (Win).

See Also

See “Examining the History Panel” on page 452 for information on different elements in the History panel.

Redo Steps with the History Panel

Redo Steps with the History Panel Open or expand the History panel.

Redo Steps with the History Panel

Redo Steps with the History Panel Drag the Undo/Redo slider down until the slider points to the last step you want to redo.

Flash redoes and removes the gray highlighting for each selected step.

Redo Steps with the History Panel When you’re done, click the Close button on the History panel.

Did You Know?

You can redo steps using the Redo command. Click the Edit menu, and then click Redo, or press You can redo steps using the Redo command.+Y (Mac) or Ctrl+Y (Win).

You can change the number of undo levels for the Undo command. Click the Flash (Mac) or Edit (Win) menu, click Preferences, click the General tab, enter a number (from 2 to 9999) in the Undo Level box, and then click OK.

Replaying Steps

You can replay steps from the History panel to the same object or to a different object in the document. You can replay steps only in the order in which you performed them; you can’t rearrange the order of the steps in the History panel. If a red X appears in the icon for a step, it indicates Flash cannot save or replay the step. The Repeat command on the Edit menu allows you to apply your previous step to another object. For example, if you fill a shape with a color or pattern, you can fill another shape with the same color or pattern by selecting the other shape and using the Repeat command.

Replay Steps to the Same Object or Another Object

Replay Steps to the Same Object or Another Object Open or expand the History panel.

Replay Steps to the Same Object or Another Object

Replay Steps to the Same Object or Another Object Select the steps you want:

One step. Click a step.

Adjacent steps. Drag from one step to another or click the first step, hold down the Shift key, and then click the last step.

Nonadjacent steps. Hold down the Nonadjacent steps. (Mac) or Ctrl (Win) key, and then click steps.

Nonadjacent steps. Select the same object used in the History steps or another object.

Nonadjacent steps. Click Replay in the History panel.

The steps are replayed in order, and a new step called Replay Steps appears in the History panel.

Nonadjacent steps.

Nonadjacent steps. When you’re done, click the Close button on the History panel.

See Also

See “Copying Steps Between Documents” on page 460 for information on replaying steps in a different document.

Repeat the Previous Step on Another Object

Repeat the Previous Step on Another Object Select an object, and then perform a command.

Repeat the Previous Step on Another Object

Repeat the Previous Step on Another Object Select another object to which you want to perform the same previous command.

Repeat the Previous Step on Another Object Click the Edit menu, and then click Repeat.

The command is performed on the selected object.

Saving Steps and Using Commands

The History panel records the steps you take in the order in which you performed them in Flash. If you perform the same set of steps several times while you work on a document, you can save the steps in the History panel as a command on the Commands menu, which you can reuse again and again. Flash stores the commands you save for future use (even if you close the document). Some steps, including selecting a frame or modifying a document size, can’t be saved as commands, but they can be undone and redone. If a red X appears in the icon for a step, it indicates Flash cannot save or replay the step. After you save steps as a command, you can run, rename, or delete commands.

Save Steps as a Command

Save Steps as a Command Open or expand the History panel.

Save Steps as a Command

Save Steps as a Command Select the steps you want to save.

Save Steps as a Command Click the Save As Command button in the History panel.

Save Steps as a Command Enter a name for the command.

Save Steps as a Command

Save Steps as a Command Click OK.

The command is available on the Commands menu and saved as a JavaScript file with the extension .jsfl in the Commands folder, which is located in AdobeFlash CS4First Run.

Save Steps as a Command When you’re done, click the Close button on the History panel.

Did You Know?

You can delete a name from the Command menu. Click the Commands menu, click Manage Saved Commands, select the command you want to remove, click Delete, click Yes, and then click OK.

Run a Command

Run a Command Click the Commands menu.

Run a Command

Run a Command Click a command name from the list.

Did You Know?

You can run JavaScript or Flash JavaScript commands. Click the Commands menu, click Run Command, navigate to the script file, and then click Open.

Edit the Names of Commands

Edit the Names of Commands Click the Commands menu, and then click Manage Saved Commands.

Edit the Names of Commands Select a command to rename.

Edit the Names of Commands

Edit the Names of Commands Click Rename.

Edit the Names of Commands Enter a new name for the command.

Edit the Names of Commands

Edit the Names of Commands Click OK.

Edit the Names of Commands Click OK.

Did You Know?

You can download commands from the Web. The Flash Exchange Web site contains commands developed by other users you can download (some for a fee) and use in your documents. Click the Commands menu, and then click Get More Commands to quickly access the Adobe Web site.

Copying Steps Between Documents

Each document only tracks its own set of steps in the History panel. When you close a document, Flash clears the History panel. If you want to use a set of steps in another document, you need to copy them from one History panel and paste them to another document. You can use the Copy Steps button on the History panel or the same command on the Options menu to complete the task. When you paste steps into another document, Flash replays the steps and the History panel shows the steps as only one step called Paste Steps (Mac) or Paste (Win).

Copy Steps Between Documents

Copy Steps Between Documents Open a document containing the steps you want to copy.

Copy Steps Between Documents

Copy Steps Between Documents Open or expand the History panel.

Copy Steps Between Documents

Copy Steps Between Documents Select the steps in the History panel you want to copy.

Copy Steps Between Documents Click the Copy Steps button in the History panel.

Copy Steps Between Documents Open the document into which you want to paste the steps.

Copy Steps Between Documents

Copy Steps Between Documents Select the objects to which you want to apply the steps.

Copy Steps Between Documents Click the Edit menu, and then click Paste In Center.

The steps play in the document as Flash pastes the steps into the History panel of the document. The steps appear in the History panel as a single step called Paste Steps (Mac) or Paste (Win).

Copy Steps Between Documents When you’re done, click the Close button on the History panel.

Copy Steps Between Documents

Working with Object-Level Undo Mode

The Flash History panel now allows you to keep track of the changes made in Flash on a per-object basis. When this mode is activated in the General Preferences dialog box, each object on the Stage and even objects in the Library panel have their own undo list. Think about just what this means. You can now undo the changes you make to an object without having to undo changes to any other object.

Set Object-Level Undo

Set Object-Level Undo Click the Flash (Mac) or Edit (Win) menu, and then click Preferences.

Set Object-Level Undo Click the General category.

Set Object-Level Undo

Set Object-Level Undo Click the Undo popup, and then click Object-Level Undo.

Set Object-Level Undo Click OK to confirm changing from Document to Object level undo will delete your current undo history.

Set Object-Level Undo Click OK to set object level undo or click Cancel to keep document level undo.

As you work, Flash keeps a per-object record of the history of each main Flash object.

Work with Object Level Undo

Work with Object Level Undo Set object level undo in General preferences, and then open a new or existing Flash document.

Work with Object Level Undo Begin working with an object.

Work with Object Level Undo

As you work, Flash keeps a per-object record of the history of each main Flash object.

Work with Object Level Undo Open the History panel.

Work with Object Level Undo

Work with Object Level Undo Use the Undo, Redo, or Repeat commands on the Edit menu.

Trouble?

You cannot undo some object-level actions, such as working in a library or a scene. Check Flash Help for specifics.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset