Home > Articles

This chapter is from the book

Using the Drawing Tools

There are a few key concepts to grasp about how Flash creates artwork. Shapes drawn in Flash consist of strokes, fills, or both. Strokes are outlines, and fills are interiors. Even in shapes containing both, strokes and fills are independent of each other. That allows you to set their attributes separately, and even to move them independently to create unusual shapes.

Overlapping shapes drawn on the same layer interact. One shape drawn on top of another replaces any portions of the original shape that it obscures. Shapes of the same color merge where they touch, while shapes of different colors remain distinct although overlapped portions are replaced. Lines drawn by the Pencil, Line, Brush, Oval, or Rectangle tools are broken into segments where they intersect other shapes and bisect shapes beneath them.

To learn more details about tools in the Toolbox, see Chapter 2, "The Flash Interface," page 17.

You can take advantage of these unusual behaviors to create interesting negative shapes. To prevent shapes from interacting, group them by selecting them and choosing Modify, Group, or place them on separate layers.

When you draw, Flash sets the stroke color, fill color, or both according to the colors that have been selected in the Stroke and Fill boxes in the Toolbox, in the Property Inspector as you select a tool, or in the Color Mixer panel. Colors set in any of these locations are reflected in the others. Any shape drawn can have a stroke, but only shapes with interiors have fills.

The Line Tool

The Line tool is the most basic of the drawing tools. It draws straight lines or, given what you know about how Flash creates artwork, strokes. Simply select the Line tool; then click and drag to create straight lines. Shift+dragging draws lines that are vertical, horizontal, or diagonal.

You can, of course, use the Line tool to draw closed shapes such as squares or rectangles that can have fills applied to them. However, you must manually add a fill, using the Paint Bucket tool, after you have closed a shape.

The Pencil Tool

The Pencil tool enables you to draw freeform lines and shapes. Select the Pencil tool and then select a pencil mode in the Options section of the Toolbox to straighten, smooth, or maintain rough shapes (using the Ink setting) as you draw. Click and drag to sketch lines that mirror your mouse movements. Shift+drag to draw horizontal or vertical lines. As with the Line tool, you can use the Pencil tool to draw closed shapes but must use the Paint Bucket tool to manually add fills to them.

The Oval and Rectangle Tools

The Oval and Rectangle tools allow you to draw simple shapes quite easily. Click and drag with either tool to draw ovals and rectangles. Shift+drag to draw perfect circles or squares.

You have the option to draw rectangles with rounded corners. It's an imprecise task, but if you have the patience, you can produce good results. When using the Rectangle tool, select the Round Rectangle Radius modifier at the bottom of the Toolbox. Enter a number in the corner radius field. Zero results in straight corners. Finding the best radius for a rounded corner is a matter of trial and error.

The Pen Tool

The Pen tool is the most powerful drawing tool. If you haven't used an illustration program before, the Pen tool will take some getting used to, particularly the way it draws curves. All that power comes with a learning curve, but you'll be rewarded with precisely drawn curves and irregular shapes that cannot be achieved with any other tool.

The Pen tool draws by establishing anchor points that it then connects. Select the Pen tool and move your mouse pointer onto the Stage. Notice that a small x appears to the right of the pen, as shown in Figure 3.1. This icon indicates that you are placing the first anchor.

Figure 3.1Figure 3.1 The Pen tool displays a small x as you place the first anchor point of a shape.

Drawing Line Segments

To draw line segments, click to place anchor points as you draw. The first anchor point appears as a small hollow dot, which changes to a blue square as you draw additional anchors. Shift+clicking draws vertical, horizontal, or diagonal (45 degree) lines. You must end the anchoring process, indicating to Flash that you've completed a path, whether you draw an open or closed shape. To end an open path, either double-click the final anchor point, Cmd-click (Mac) or Ctrl+click (Windows) away from the path, or click the Pen tool in the Toolbox. To end a closed path, hold the Pen over the first anchor point. A small dot will appear to the right of the Pen, indicating that you can close the path, as shown in Figure 3.2.

Figure 3.2Figure 3.2 The Pen tool displays a small circle if you are correctly positioned to close a path.

Drawing Curved Segments

The true power of the Pen tool lies in its capability to draw mathematically precise curved segments. These curves are known as Bezier curves. To calculate arcs precisely, curves are defined by four elements: two anchor points and two control handles, as shown in Figure 3.3. To draw curves with the Pen tool, click and drag anchor points. Drag in the direction you want your curve to be drawn. The first time you click and drag, you'll see that your anchor point has a control handle. Click to create a second anchor point and drag in the opposite direction—away from the curve—to draw an arc.

Figure 3.3Figure 3.3 The anatomy of a curve: two anchor points and two control handles.

If you drag the second anchor in the same direction as the first, you'll draw an S-curve, as shown in Figure 3.4.

Figure 3.4Figure 3.4 Dragging both anchor points in the same direction results in an S-curve.

The length and angle of the control handles determine the shape of the curve. It's best to complete a path before you adjust your curves. It can take quite a while to become proficient with Bezier curves, and only the most experienced computer artists can create them precisely as they draw. It's much more efficient, and less aggravating if you are less experienced, to quickly draw an approximation of your desired shape and then adjust the curves. To close a curved path, click on the initial anchor point and drag away from the curve, as shown in Figure 3.5.

Figure 3.5Figure 3.5 Click on the initial anchor point and drag away from the curve to close a curved path.

Adjusting Anchor Points

The fastest way to draw with the Pen tool is to complete a path and then adjust the anchor points. Anchor points in curved paths have control handles, and the anchor points of line segments are corner points. After you draw a shape, you can add or delete anchor and corner points, convert anchor points to corner points and vice versa, or move any existing points.

To adjust anchor points, you must first select them. The placement of anchor points may not be obvious in curved and nonuniform paths. Use the Subselection tool and click on a path to reveal your anchor points, as shown in Figure 3.6.

Figure 3.6Figure 3.6 Click on a path with the Subselection tool to reveal anchor points.

If you click directly on an anchor, you both select that point and reveal all others in the path. If you click on a path but not directly on an anchor point, you simply reveal the anchor points in the path and must then click directly on one to select it. Shift+click additional anchor points to add them to the selection. You can then click directly on an anchor to reveal any control handles. Click and drag anchor points to move them, as shown in Figure 3.7. You can also select an anchor point and use the arrow keys to nudge it.

Figure 3.7Figure 3.7 Click and drag a control handle to alter the shape of a curve.

As you edit shapes, you may want to change a corner point to a curve point to be able to add curves, or vice versa to straighten a shape. To convert a corner point to a curve point, Option-drag (Mac) or Alt+drag (Windows) to create a control handle. Drag the new control handle in the direction of the curve you want to draw. To convert a curve point to a corner point, select your path with the Subselection tool to reveal your anchor points. Then select the Pen tool and click a curve point to convert it.

You may also find that you need to either add detail to or simplify shapes as you edit them. Adding points allows you to refine a shape by adding detail, either additional curves or corners. To add an anchor point, click on an existing path with the Pen tool. To simplify a shape, you can delete anchor points. The simplest way to delete an anchor point is to click on it with the Subselection tool and press Delete. Or, choose the Pen tool and click once to delete a corner point or twice to delete a curve point.

Adjusting Segments

Segments of paths can also be adjusted, independently of their anchor points. You may find that you need to refine a small portion of a curve. To adjust the size and angles of curves, click and drag their control handles. Where two curved segments intersect, two control handles extend away from a common anchor point. Each handle controls a curve on either side of a common anchor point. Dragging one end of a double-control handle changes both curves on either side of the anchor point, which stays in place, as shown in Figure 3.8.

Figure 3.8Figure 3.8 Dragging one end of a double-control handle changes curves on both sides of the shared anchor point.

To adjust the arc of the curved segment between anchor points only, Option-drag (Mac) or Alt+drag (Windows) the one end of a double-control handle.

If a curve segment intersects a straight segment, you'll see a control handle just on the curve side of the anchor. Click and drag this handle with the Subselection tool to change the arc, or click and drag the anchor point to move the curve.

You can also use the Arrow tool to move segments. As the Arrow tool is positioned over a path, a small corner or curve appears to the right of the arrow, indicating which kind of segment can be selected. When you select a curved segment, a small curve appears to the right of the arrow, as shown in Figure 3.9.

Figure 3.9Figure 3.9 When the Arrow tool is positioned over a curved segment, a small arc appears beside the pointer.

A right angle appears when you select a straight segment, as shown in Figure 3.10. Click and drag with the Arrow tool to move segments, leaving the anchor points in place.

Figure 3.11Figure 3.10 When the Arrow tool is positioned over a straight segment, a small corner shape appears beside the pointer.

The Brush Tool

The Brush tool is the lone Flash painting tool, and the only tool that allows you to mimic brush strokes, as shown in Figure 3.11. You really need a pressure-sensitive tablet, one that allows you to use a stylus instead of a mouse, to get the most realistic brush strokes. Trying to paint with a mouse is like trying to sign a check with a bar of soap. Tablets are sensitive to changes in pressure as you paint and adjust the weight of your strokes accordingly.

Figure 3.11Figure 3.11 The Brush tool draws freeform, paintbrush-like strokes.

Choose brush modifiers in the Options section of the Toolbox to adjust the size and shape of your brush. You can also choose among Brush modes that allow you to paint normally, fills only, behind objects, inside objects, or in selections. Combine brush strokes with more precisely drawn shapes to create interesting textures.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020