Tải bản đầy đủ (.pdf) (7 trang)

Tài liệu Thiết kế flash với flash cs5 part 77 doc

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (667.2 KB, 7 trang )

ptg
470
Chapter 19
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 com-
mands, 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.
Undoing and Redoing
Steps
Undo Steps with the
History Panel
Open or expand 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.
When you’re done, click the Close


button on the History panel.
3
2
1
31
2
Drawn polygon
shape removed
with undo.
Did You Know?
You can undo steps using the Undo
command.
Click the Edit menu, and
then click Undo, or press
A
+Z (Mac)
or Ctrl+Z (Win).
See Also
See “Examining the History Panel” on
page 466 for information on different
elements in the History panel.
From the Library of Wow! eBook
ptg
Chapter 19 Automating Your Work
471
Redo Steps with the
History Panel
Open or expand 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.
When you’re done, click the Close
button on the History panel.
3
2
1
31
2
Did You Know?
You can redo steps using the Redo
command.
Click the Edit menu, and
then click Redo, or press
A
+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.
Saving Documents After Using Undo
When you delete an object in a document, the file size of the docu-
ment doesn’t change. The document still includes the size of the
object you just deleted to preserve the possibility you might want to

undo the step and restore the deleted item. If you know that you don’t
want the steps in the History panel, you can use the Save And
Compact command on the File menu to clear the History panel,
reduce the file size, and save the document. If you want to save the
document and keep the steps in the History panel for the current ses-
sion, use the Save command on the File menu.
For Your Information
From the Library of Wow! eBook
ptg
472
Chapter 19
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.
Replaying Steps
Replay Steps to the Same Object
or Another Object
Open or expand the History panel.
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 A (Mac) or Ctrl (Win) key,
and then click steps.
Select the same object used in the
History steps or another object.
Click Replay in the History panel.
The steps are replayed in order,
and a new step called Replay
Steps appears in the History panel.
When you’re done, click the Close
button on the History panel.
5
4
3
2
1
4
2
Single step selection
5
1
Replays single step
Multiple step selection
Replay multiple steps
See Also
See “Copying Steps Between
Documents” on page 476 for informa-

tion on replaying steps in a different
document.
From the Library of Wow! eBook
ptg
Chapter 19 Automating Your Work
473
Repeat the Previous Step on
Another Object
Select an object, and then perform
a command.
Select another object to which you
want to perform the same previous
command.
Click the Edit menu, and then click
Repeat.
The command is performed on the
selected object.
3
2
1
1
Color fill
from the
circle
shape is
repeated
on the
polygon
shape.
2

Changing the View in the History Panel
The Options menu in the History panel allows you to change the way
you view steps. You can view steps in the History panel with scripting
arguments or JavaScript commands. Even if you are not a program-
mer, you can get a better idea about the functionality of each step by
looking at the scripting argument or JavaScript commands. If you
want to view scripting arguments or JavaScript commands in the
History panel as you need it without having to change the view each
time, you can view the information as a tooltip. To change the view,
click the Options menu in the History panel, point to View, and then
click a view option: Default (steps only), Arguments In Panel,
JavaScript In Panel, Arguments In Tooltip, or JavaScript In Tooltip.
For Your Information
From the Library of Wow! eBook
ptg
474
Chapter 19
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.
Saving Steps and
Using Commands
Save Steps as a Command

Open or expand the History panel.
Select the steps you want to save.
Click the Save As Command button
in the History panel.
Enter a name for the 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 Adobe\Flash
CS5\First Run\.
When you’re done, click the Close
button on the History panel.
6
5
4
3
2
1
4
6
2
1
3
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.
5
From the Library of Wow! eBook

×