AS Reference  :  Notes Index  :  Resources  :  About/Contact  :  Downloads

Drawing and Editing Shapes in Flash



Anything drawn on the stage in Flash is a vector graphic -- it can be resized without losing resolution. A shape on the stage can be made up of a stroke object, a fill object, or combinations of the two. Use the drawing tools in the Tools panel (shown at left) to create and change vector shapes on stage. Many of the drawing tools have options which can be set in the Options area at the bottom of the tools panel. Others have options which can be set in the Properties panel.

When you use the pencil tool, for example, you create a stroke object. The ink bottle, line, and pen tools also produce stroke objects (though the pen tool will also create a fill object if it is used to make a closed shape). The paint bucket tool is used to create a fill object -- a filled area within a predefined stroke. The oval and rectangle tools can be used to produce strokes, fills, or both, depending on how the stroke color and fill color boxes are set.


Quirks of Flash Drawing

These are some of the quirks of drawing with Flash that make it different from other graphics editing programs and sometimes easier to use to good effect

  1. Pieces of the stroke on an object are independently editable
  2. If a piece of stroke is drawn, copied, or dragged so that it intersects other strokes, once it has been unselected, the pieces of stroke between and outside the intersections will be individually editable, and will divide up the previous area into new, individually editable pieces.
  3. Similarly, if a fill shape (a) is placed so that it overlaps a portion of another shape (b) in the same layer, it will erase the overlapped portion of b once it (a) has been unselected. When a is selected again and moved, there will be a 'hole' in b in the overlapped shape. This can be useful for cutting shapes out of the middle or edges of other shapes, as pictured below (a=star, b=oval). To keep it from happening, make the shapes in different layers.
  4. If the select tool is moused over an UNSELECTED piece of stroke or the edge of a fill until the cursor changes, it can be used to click and drag that piece of stroke or fill into a new shape. This is a nice way to add a bit --or a lot-- of irregularity to a shape, to "fix" something not quite right, or even as a general drawing technique. Many Flash cartoonists who draw in Flash (as opposed to importing from another graphics editing program) recommend the combination of pen tool and this drag-n-bend method as the easiest way to create any needed shape.
  5. If the select tool is moused over a piece of stroke or the edge of a fill until the cursor changes, option-click-and-dragging (PC: ctrl-click-and-dragging) will add a new anchor point to that edge and drag it to the new location

Tool Notes

The tools are described in detail in the Flash help; here are some reminder notes:

Objects on stage can be selected by:

With the pen tool selected, the following can be done to a shape on stage:

The subselect tool (open arrow) can also be used to move anchor points:

The rectangle and oval tools are for dragging out a rectangle, square (shift-drag), oval, circle (shift-drag), polygon, or star on stage, using the currently selected fill and stroke colors. Use option-drag (PC: alt-drag) to drag from the center.

The paint bucket tool is used to set the fill color to a solid or gradient. (If you click inside a stroke with the paint bucket and it won't fill, there are probably gaps in the stroke. Try turning on the "close large gaps" option.) The ink bottle tool is used to add a stroke around an object -- select it and click near the edge of a fill object to add a stroke to it.

Intro
Flash: What & How
Example Sites
Create
Draw, Edit Shapes
Gradients
More Drawing Tips
Import
A Sample
Animate
Frames, Keyframes
Motion Tweens
More Motion Tweens
Shape Tweens
Masks
Control
Stop/Replay
Movieclips Intro
Movieclip Reference
Site Structure 1
Slideshow Movieclip
Contact Form
Scroll Resume
Preloader
Site Structure 2
Publish
Display Options
Player Detection
Optimize
AS 2.0 Basics
Intro to Syntax
Playhead Commands
Playhead Cmds 2
Coded Tween
onEnterFrame
Intro to Classes
Declare/Assign
Comments, Trace
Simple Data Types
Arrays & Objects
Code Blocks
Operators
Beyond Buttons
Code Structure
Toggle Controls
Group of Buttons
Drag and Hit
Distort Magnifier
Scroll Text
Bee Game
Dart Shooter
Sound Control
Easing Slider
Easing Slider 2
Components Intro
Timers & Delays
Dynamic Content
Intro
Drawing API
Create Text
Attach Movieclips
Easing Slider 3
Easing Slider 4
Load jpg/swf
Sliding Viewer
Preload swf
XML
Easing Slider 5
Server Comm
LoadVars (w/ PHP)
AS - PHP Lookup
Text File
Database 1:LoadVars
Database 2:Remoting
Read from directory
AS 2.0 Classes
Intro
Math
Key
Date
Color
EventDispatcher
New Samples
Pie Chart
Event-model Emailer
Tween Sequence
Fuse Sequence
SVG in Flash
Bitmap Topo
SWF as Data Holder
Two-level Menu
Yahoo! Flash Maps
Class-based Game
ASTB Samples
Disclaimer
3D Outlines
Bounce Collide
Address Book
Save Drawings
Home  :  Notes Index  :  Resources  :  About/Contact  :  Downloads