Appendix A
The code in the FLA file might look like this:
var thumbnailArray:Array = new Array(); var thumbnailHandle:ThumbnailButton;
for (var i=0; i < 4; i++)
{
thumbnailHandle = new ThumbnailButton(this, “thumbnail” + i); thumbnailHandle.x = i * 70 + 20;
thumbnailHandle.y = 20; thumbnailHandle.drawDropShadow = true; thumbnailHandle.drawBorder = true;
thumbnailHandle.onClick = function(thumbnailHandle:ThumbnailButton)
{
trace(“Clicked on button: “ + thumbnailHandle.thumbnailName);
}
thumbnailArray.push(thumbnailHandle);
}
thumbnailArray[0].load(“aStudyInTexture_over.jpg”); thumbnailArray[0].toolTipText = “A Study In Texture”; thumbnailArray[1].load(“buntzenWinter_over.jpg”); thumbnailArray[1].toolTipText = “Buntzen Winter”; thumbnailArray[2].load(“flowerInDetail_over.jpg”); thumbnailArray[2].toolTipText = “Flower In Detail”; thumbnailArray[3].load(“galianoSunset_over.jpg”); thumbnailArray[3].toolTipText = “Galiano Sunset”;
B
Flash Keyboard Shor tcuts
Many shortcuts are available that can help you speed up your development — so many that it’s impossible to remember them all. This appendix is a complete guide to all the shortcuts used in the Flash development environment. Don’t try to learn them all; instead, pick a few shortcuts for tasks that you frequently perform. Once they become more familiar to you, try using a few more shortcuts.
Tools Panel
You can select any tool on the Tools panel just by pressing the single letter on the keyboard that corresponds to that tool. Figure B-1 identifies each tool and its key. If you’re typing text into a text field, press the Esc (escape) key to exit edit mode so that you can select another tool.
Appendix B
Arrow [V] |
|
|
|
[A] Sub-Select |
|
|
Free Transform [Q] |
|
|
|
[F] Fill Transform |
|
|
|
Line [N] |
|
|
|
[L] Lasso |
|
|
|
Pen [P] |
|
|
|
[T] Text |
|
|
|
Oval [O] |
|
|
|
[R] Rectangle |
|
|
|
Pencil [P] |
|
|
|
[B] Brush |
|
|
|
Ink Bottle [S] |
|
|
|
[K] Paint Bucket |
|
|
|
Dropper [I] |
|
|
|
[E] Eraser |
|
|
|
Hand [H] |
|
|
|
[M, Z] Magnifier |
|
|
|
[J] Object Drawing Mode
Figure B-1
Integrated Script Editor Shor tcuts
File Menu
Command |
Windows Shortcut |
MacOS Shortcut |
|
|
|
New |
Ctrl+N |
Cmd+N |
Open |
Ctrl+O |
Cmd+O |
Close |
Ctrl+W |
Cmd+W |
Close All |
Ctrl+Alt+W |
Cmd+Opt+W |
Save |
Ctrl+S |
Cmd+S |
Save As |
Ctrl+Shift+S |
Cmd+Shift+S |
Import Script |
Ctrl+Shift+I |
Cmd+Shift+I |
Print |
Ctrl+P |
Cmd+P |
Exit |
Ctrl+Q |
Cmd+Q |
|
|
|
Flash Keyboard Shortcuts |
|
|
|
|
|
Command |
Windows Shortcut |
MacOS Shortcut |
|
|
|
|
|
Magnification Show All |
Ctrl+3 |
Cmd+3 |
|
Preview Mode Outlines |
Ctrl+Alt+Shift+O |
Cmd+Opt+Shift+O |
|
Preview Mode Fast |
Ctrl+Alt+Shift+F |
Cmd+Opt+Shift+F |
|
Preview Mode |
Ctrl+Alt+Shift+A |
Cmd+Opt+Shift+A |
|
Anti-Alias |
|
|
|
Preview Mode |
Ctrl+Alt+Shift+T |
Cmd+Opt+Shift+T |
|
Anti-Alias Text |
|
|
|
Work Area |
Ctrl+Shift+W |
Cmd+Shift+W |
|
Rulers |
Ctrl+Alt+Shift+R |
Cmd+Opt+Shift+R |
|
Grid Show Grid |
Ctrl+’ (apostrophe) |
Cmd+’ (apostrophe) |
|
Grid Edit Grid |
Ctrl+Alt+G |
Cmd+Opt+G |
|
Guides Show Guides |
Ctrl+; (semicolon) |
Cmd+; (semicolon) |
|
Guides Lock Guides |
Ctrl+Alt+; |
Cmd+Opt+; |
|
Guides Edit Guides |
Ctrl+Alt+Shift+G |
Cmd+Opt+Shift+G |
|
Snapping Snap to Grid |
Ctrl+Shift+’ |
Cmd+Shift+’ |
|
Snapping Snap to Guides |
Ctrl+Shift+; |
Cmd+Shift+; |
|
Snapping Snap to Objects |
Ctrl+Shift+/ |
Cmd+Shift+/ |
|
Snapping Edit Snapping |
Ctrl+/ |
Cmd+/ |
|
Hide Edges |
Ctrl+H |
Cmd+Shift+E |
|
Show Shape Hints |
Ctrl+Alt+H |
Cmd+Opt+H |
|
|
|
|
Insert Menu
Command |
Windows Shortcut |
MacOS Shortcut |
New Symbol |
Ctrl+F8 |
Cmd+F8 |
Timeline Frame |
F5 |
F5 |
Modify Menu
Command |
Windows Shortcut |
MacOS Shortcut |
Document |
Ctrl+J |
Cmd+J |
Convert to Symbol |
F8 |
F8 |
Table continued on following page
|
|
|
Flash Keyboard Shortcuts |
|
|
|
|
|
Command |
Windows Shortcut |
MacOS Shortcut |
|
|
|
|
|
Align Bottom |
Ctrl+Alt+6 |
Cmd+Opt+6 |
|
Align Distribute |
Ctrl+Alt+7 |
Cmd+Opt+7 |
|
Widths |
|
|
|
Align Distribute |
Ctrl+Alt+9 |
Cmd+Opt+9 |
|
Heights |
|
|
|
Align Make Same |
Ctrl+Alt+Shift+7 |
Cmd+Opt+Shift+7 |
|
Width |
|
|
|
Align Make Same |
Ctrl+Alt+Shift+9 |
Cmd+Opt+Shift+9 |
|
Height |
|
|
|
Align To Stage |
Ctrl+Alt+8 |
Cmd+Opt+8 |
|
Align Group |
Ctrl+G |
Cmd+G |
|
Align Ungroup |
Ctrl+Shift+G |
Cmd+Shift+G |
Text Menu
Command |
Windows Shortcut |
MacOS Shortcut |
|
|
|
Style Plain |
Ctrl+Shift+P |
Cmd+Shift+P |
Style Bold |
Ctrl+Shift+B |
Cmd+Shift+B |
Style Italic |
Ctrl+Shift+I |
Cmd+Shift+I |
Align Align Left |
Ctrl+Shift+L |
Cmd+Shift+L |
Align Align Center |
Ctrl+Shift+C |
Cmd+Shift+C |
Align Align Right |
Ctrl+Shift+R |
Cmd+Shift+R |
Align Justify |
Ctrl+Shift+J |
Cmd+Shift+J |
Letter Spacing Increase |
Ctrl+Alt+Right |
Cmd+Opt+Right |
Letter Spacing Decrease |
Ctrl+Alt+Left |
Cmd+Opt+Left |
Letter Spacing Reset |
Ctrl+Alt+Up |
Cmd+Opt+Up |
Control Menu
Command |
Windows Shortcut |
MacOS Shortcut |
Play |
Enter |
Enter |
Rewind |
Ctrl+Alt+R |
Cmd+Opt+R |
Table continued on following page