Pencil Tool

The Pencil tool is on the Tools panel, it is used for freeform drawing. When you draw with the Pencil tool you are creating strokes. It works the same way as a real pencil with options for smoothing and straightening.
The Pencil tool has three options which are displayed in the option area of the Tools panel, after you select it (see the image below).
Options Pencil
Depending upon which mode you choose, Flash makes corrections to the drawn line.

To change the straighten rate, select the object, click the Modify menu -> Shape -> Advanced Straighten, enter a value between 0-100, and then click OK.
To change the smooth rate and angles, select the object, click the Modify -> Shape -> Advanced Smooth, enter a value, and then click OK.
Another way to optimize a shape in Smooth mode: select it, click the Modify -> Shape -> Optimize, add a value between 0-100 and click OK.

In the Properties panel you can set various options to Pencil tool (after you have selected it), like: color of the line, thickness (between 0-200), style, smoothing. See the presentation below:

Using the Pencil tool


Pen Tool

The Pen tool is used for more complex vector drawing. This tool utilizes anchor points and Bézier handles to create perfect arcs and a lot of perfectly straight lines.
To create straight lines with the Pen tool, click the Stage to create anchor points, which Flash automatically connects using perfectly straight segments.
If you drag the Pen tool (instead of just clicking), Flash displays a preview curve and a control line that lets you adjust the angle of a curved arch. These curves can be modified with precision by adjusting the Bézier handles that extend from the anchor points, or you can move the anchor points themselves.

Pen Tool drawing

Pen Tool drawing
In the Pen tool button, on the Tools panel, there are other pen tools to add, delete, or convert anchor points. You can edit the anchor points and vectors to create the drawings you want. - The shapes and lines created with the Pen Tool can be easily modified from the anchor points with "Subselection Tool".

You can set Flash to preview line segments and curves one step before to draw it. Select Edit -> Preferences then, select the Drawing category. The Pen tool preferences appear at the top of the Preferences window. Click to activate the Show pen preview (see the image below).

Pen Tool Preferences

Daily Test with Code Example

Which tag defines the clickable areas inside the image map?
<map> <img> <area>
<img src="image.jpg" usemap="#map1">
<map name="map1">
  <area shape="rect" coords="9, 120, 56, 149" href="#">
  <area shape="rect" coords="100, 200, 156, 249" href="#">
Which CSS property defines what is done if the content in a box is too big for its defined space?
display overflow position
#id {
  overflow: auto;
Click on the event which is triggered when the mouse is positioned over an object.
onclick onmouseover onmouseout
document.getElementById("id").onmouseover = function(){
  document.write("Have Good Life");
Indicate the PHP variable that contains data added in URL address after the "?" character.
if(isset($_GET["id"])) {
  echo $_GET["id"];
Pencil and Pen Tools

Last accessed pages

  1. Multiple Select Dropdown List with AJAX (15558)
  2. Moving html element to a random direction (84)
  3. XHTML References - Old (15)
  4. Star shapes with CSS (4464)
  5. Get and Modify content of an Iframe (12618)

Popular pages this month

  1. Read Excel file data in PHP - PhpExcelReader (387)
  2. Register and show online users and visitors (355)
  3. PhpSpreadsheet - Read, Write Excel and LibreOffice Calc files (327)
  4. Insert, Select and Update NULL value in MySQL (256)
  5. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (254)