Flash Course

The Paint Bucket Tool, Ink Bottle Tool and Eyedropper Tool are on the Tools panel, they can be used to set or change the color of the lines and shapes you draw. In the button with the "Paint Bucket Tool" there is "Ink Bottle Tool", as it's shown in the picture below.
Paint Bucket, Ink Bottle and Eyedropper

Paint Bucket and Ink Bottle

The Paint Bucket can be used to define or to add a color to a shape (Fill), it uses the current color set in the Fill Color.
The Ink Bottle tool holds the properties you've set for strokes in any of the palettes. When you click an object with this tool, it will change the properties of its stroke (color, line weight and style) or add a stroke if that object doesn't have one.

Using Ink Bottle

  1. In the Tools panel, click the Ink Bottle or press S.
  2. In the Properties panel, set the options for stroke (color, line weight and style).
  3. Click an object on the Stage. Its stroke updates with the new attributes.

Using Paint Bucket

  1. In the Tools panel, click the Paint Bucket or press K.
  2. In the Tools panel, select the Fill Color icon, and choose a color.
  3. Click in the fill of a shape on the Stage. The fill updates to the new color

- If you select multiple objects and then click on one of them with the Paint Bucket or Ink Bottle, it will affect all selected objects.
Click to see the presentation below.

Example Paint Bucket and Ink Bottle

ex_paint_bucket_ink_bottle

If there's a gap in the outline surrounding a shape, Flash may not be able to tell where your fill stops and the stage begins, and might not let you apply a fill color with Paint Bucket.
To tell Flash to ignore small gaps surrounding your fill, in the Options section of the Tools panel, click Gap Size. Then, from the pop-up menu that appears, select Close Small Gaps, Close Medium Gaps, or Close Large Gaps. Then try to modify your fill again.

Gap size options

Gap size options

Eyedropper

With the Eyedropper tool you can select the attributes of a shape (fill and stroke color, line weight and style), and then transfer them to other shapes. This tool detects whether you are selecting a stroke or a fill, and then changes into the Ink Bottle (when selecting strokes) or the Paint Bucket (when selecting fills), see the image below.
Using Eyedropper

Using Eyedropper

  1. Click the Eyedropper tool on the Tools panel.
  2. Position the eyedropper over the stroke or fill of a shape
    • When you are positioned over a stroke, a tiny pencil appears next to the tool. When you click on the stroke the Eyedropper becomes an "Ink Bottle".
    • When you are positioned over a fill, a tiny paint brush appears next to the tool. When you click on the fill the Eyedropper becomes a "Paint Bucket".
  3. Click on the area of another shape to transfer the selected attributes

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used to add lists into <ul> and <ol> elements?
<dt> <dd> <li>
<ul>
 <li>http://coursesweb.net/html/</li>
 <li>http://coursesweb.net/css/</li>
</ul>
Which value of the "display" property creates a block box for the content and ads a bullet marker?
block list-item inline-block
.some_class {
  display: list-item;
}
Which instruction converts a JavaScript object into a JSON string.
JSON.parse() JSON.stringify eval()
var obj = {
 "courses": ["php", "javascript", "ajax"]
};
var jsonstr = JSON.stringify(obj);
alert(jsonstr);    // {"courses":["php","javascript","ajax"]}
Indicate the PHP class used to work with HTML and XML content in PHP.
stdClass PDO DOMDocument
$strhtml = '<body><div id="dv1">CoursesWeb.net</div></body>';
$dochtml = new DOMDocument();
$dochtml->loadHTML($strhtml);
$elm = $dochtml->getElementById("dv1");
echo $elm->nodeValue;    // CoursesWeb.net
Paint Bucket and Eyedropper

Last accessed pages

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (142529)
  2. Display data from PHP Array, or MySQL in HTML table (26988)
  3. PHP Simple HTML DOM Parser (12469)
  4. Paragraphs, Line break, Horizontal rule (4310)
  5. Convert BBCode to HTML and HTML to BBCode with JavaScript (9417)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (532)
  2. The Mastery of Love (65)
  3. CSS cursor property - Custom Cursors (63)
  4. Read Excel file data in PHP - PhpExcelReader (59)
  5. PHP-MySQL free course, online tutorials PHP MySQL code (44)