Pen and Text Type Tool

Go down

Pen and Text Type Tool

Post by Wingedge on Tue Jun 17, 2008 7:13 pm


The Pen tool is the only tool in the Flash toolbox that doesn't resemble a tool from everyday life. Although the tool symbol looks a lot like an ordinary pen it works quite a bit different.

The purpose of the Pen tool is to allow you to draw precise paths as straight lines or smooth, flowing curves.

You can create straight or curved line segments and adjust the angle and length of straight segments and the slope of curved segments afterwards.

There are two methods for drawing with the Pen tool:

1. Click to create points on straight line segments

2. Click and drag to create points on curved line segments.

Each method is described below.



To draw straight lines with the Pen tool:


1. Select the Pen tool.

2. Click on the stage to set points, and watch how Flash automatically connects points as you set them.

3. To complete the path leaving it as either an open or closed shape. Do one of the following:

3a. To complete an open path, double click the last point or click the Pen tool in the toolbox, or Control-click (Windows) or Command-click (Macintosh) anywhere away from the path.

3b. To close a path, position the Pen tool over the first anchor point. A small circle appears next to the pen tip when it is positioned correctly. Click to close the path, and watch how Flash automatic adds a fill once the path becomes a closed outline.


To draw curves with the Pen tool:

First look at this 4 step example:

An example of curve drawing with the pen tool


1. Select the pen tool and click twice to create a straight line - on the second click keep the mouse button down.

2. Drag the mouse towards yourself - which will cause the control line to appear. The control line is pulled in the one end and has a drag point in the other end.

3. Move the mouse from side to side (B) and forward and down (A)- still holding down the button, and see how the drag point moves accordingly.
The drag point defines both how much and in which direction the initial straight line is dragged.

4. When the curve on the initial straight line is shaped the way you want it release the mouse button, and the end result appears while the control line disappears.
avatar
Wingedge
Admin
Admin

Male
Number of posts : 77
Age : 35
Name : Sir Francis
Year Level : Instructor
Location : UC
Registration date : 2008-06-10

Credits
GP: 9999

View user profile

Back to top Go down

Text Type Tool

Post by Wingedge on Tue Jun 17, 2008 7:13 pm

Static Text

1. Drag a Textbox of Fixed-width on the stage using the Text tool and select Static Text Type from the Properties window.

The Static textbox has a rectangular handle in the upper right corner, which can be used to adjust the size of the Textbox.

The various Text properties such as the Font, Font-size, Font-style, Font-color, Align etc. can be set using the Properties inspector as shown above.

4. Expanding-width textboxes can be created by selecting the Text tool and clicking once on the stage without draging it, and start typing the text in it. Note that the expanding textboxes have a round handle as shown above.

Input Text

1. Drag a Textbox on the stage using the Text tool and select Input Text Type from the Properties window.

2. The Input textbox has a rectangular handle in the lower right corner, which can be used to adjust the size of the Textbox.
3. Apart from the normal Font properties of a Static textbox, the Input textbox has more options like, Single Line to display the text as one line, Show Border Around Text to indicate the boundaries of the text field with a visible border.
4.

A variable name can also be given which can be used to store user input.

Dynamic Text

1. Drag a Textbox on the stage using the Text tool and select Dynamic Text Type from the Properties window.

# The normal Font properties of a textbox can be set for a Dynamic textbox and it also has more options like, variable names can be given, line options can be given say, Single Line to display the text as one line, Selectable and Render text as HTML.
# Variable names are used to assign dynamic values at runtime or obtain values from External Sources.

dyn_txt = "SmartWebby Visitor!"
avatar
Wingedge
Admin
Admin

Male
Number of posts : 77
Age : 35
Name : Sir Francis
Year Level : Instructor
Location : UC
Registration date : 2008-06-10

Credits
GP: 9999

View user profile

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum