Flash Course

Gradients are made up of two or more colors that gradually fade into each other, creating an interesting color effect.
In this tutorial you can learn how to create and edit gradient colors, and how to use the "Gradient Transform Tool"

Using and editing Gradient

Gradients are located at the bottom of the "Color Palette", as shown in the image below.
There are two types of gradients:

Colors gradient

Colors gradient
Gradients can be used to create the illusion of depth and perspective.
- To use a gradient effect, select the object to which you want to add a gradient, click on the "Fill Color" icon, then, from the Color palete select a gradient. Flash automatically displays your object using the gradient you chose.
That gradient remains selected in the Fill Color button, so if you draw other shapes, they will use that gradient as a fill color.

Editing gradients

Once you have selected a gradient you can edit it, adding up to 16 colors to it, creating new color combinations and changing the position of the colors.
  1. Click the Window menu -> Color, Flash will open the "Color Panel" (see the image below).
    Gradient edit
  2. In the Color panel, click the Fill Style Type list arrow, and then click Linear Gradient or Radial Gradient.
  3. Click in the Gradient bar to add a new color pointer, which you can edit and move (by dragging it with the mouse cursor) to adjust the color placement.
  4. Each color added in the Gradient bar can be edited with the options: HSB, RGB and A (alpha)
  5. Once you have defined a gradient, to add it in the Color Palette, click Add Swatches (in the Options menu, top-right corner)
- To remove a color pointer added in the "Gradient bar", click and drag it out of the "Color panel".
In the presentation below you can see how to use and edit gradient.

Using and editing gradient

using_editing_gradient
The FLA file with this presentation can be downloaded from -> FLA - Ex-Gradient.

Gradient Transform Tool

The Gradient Transform Tool can be selected from the Tools panel, it shares the same button with the "Free Transform tool".
After you create a gradient fill, you can use this tool to transform it by adjusting the size, rotation, width, or center of the fill, to create interesting effects.

Using Gradient Transform

  1. Click the Gradient Transform tool on the Tools panel.
  2. Click the shape with gradient fill to select it. Specific points appear, which can be used to rotate and modify the gradient shape.
  3. Click and trag each point to see their effects (see the image below to identify their functions).
    Gradient Transform
- See also the next Flash presentation, with Gradient Transform example:
using_gradient_transform
The FLA file with this presentation can be downloaded from -> FLA - Ex-Gradient Transform.

Gradient Transform tool can also be used to transform color in shapes which use Bitmap fill.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used to add definition lists into a <dl> element?
<dt> <dd> <li>
<dl>
 <dt>HTML</dt>
  <dd> - Hyper Text Markup Language</dd>
  <dd> - Language for web pages</dd>
</dl>
Which CSS property can hide an element on page, letting an empty space in its place?
display position visibility
#id {
  visibility: hidden;
}
Click on the event which is triggered when the mouse clicks on an object.
onclick onmouseover onfocus
document.getElementById("id").onclick = function(){
  alert("http://CoursesWeb.net/");
}
Indicate the PHP variable that contains the contents of both $_GET, $_POST, and $_COOKIE arrays.
$_SESSION $_GET $_REQUEST
if(isset($_REQUEST["id"])) {
  echo $_REQUEST["id"];
}
Creating Gradients

Last accessed pages

  1. Alert, Confirm and Prompt (4521)
  2. jsSHA - SHA Hashes and HMAC in JavaScript (3427)
  3. Download AJAX resources (219)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (137562)
  5. Recursive function to create Multi-Level Menu in PHP (11769)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (251)
  2. Read Excel file data in PHP - PhpExcelReader (91)
  3. PHP Unzipper - Extract Zip, Rar Archives (76)
  4. The Four Agreements (75)
  5. The Mastery of Love (66)
Chat
Chat or leave a message for the other users
Full screenInchide