Flash CS3 drawing tutorial: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
m (Text replacement - "<pageby nominor="false" comments="false"/>" to "<!-- <pageby nominor="false" comments="false"/> -->")
 
(54 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Incomplete}}{{Flash tutorial|CS3, (CS4)|beginner|}}
{{Stub}}
<!-- <pageby nominor="false" comments="false"/> -->
{{under construction}}
== Introduction ==
<pageby nominor="false" comments="false"/>
<div class="tut_goals">
 
;Learning goals:
== Definition ==
:Learn about some features of the Flash CS3 drawing environment
 
:Learn painting and drawing simple (!) objects
This is part of some [[Flash]] tutorials.
;Prerequisites:
 
:[[Flash CS3 desktop tutorial]] or [[Flash CS4 desktop tutorial]]
Goals:
:[[Flash layers tutorial]] (first part)
* Introduce some features of the Flash CS3 drawing environment
;Related pages:
Prerequisite:
:[[texture]] and [[clipart]] (import media elements)
* [[Flash CS3 desktop tutorial]]
;Materials (*.fla files you can play with)
:http://tecfa.unige.ch/guides/flash/ex/drawing-intro/
;Quality and level
: This text should technical people get going. It's probably not good enough for beginners, but may be used as handout in "hands-on" class. That is what [[User:Daniel K. Schneider|Daniel K. Schneider]] made it for. Screen captures were made with CS3, but the overall logic is the same for CS4 and CS5.
; Next steps
* More about drawing: [[Flash object transform tutorial]] and [[Flash arranging  objects tutorial]]
* Any other introductory tutorial indexed in the [[Flash]] article.
; Alternative
* [[Flash drawing tutorial]] (Flash CS6 or better)
</div>


== Setting up the stage ==
== Setting up the stage ==


Besides choosing the right settings for publication (Flash version) with which we shall not deal here, you should select the right size for your your stage, i.e. the size your flash document will take upon your screen. You can do this either when you create a new file or later.
Besides choosing the right settings for publication (Flash version) with which we shall not deal here, you should select the right size for your your stage, i.e. the size of your future flash document. You can do this either when you create a new file or later.


=== Defining document size ===
=== Defining document size ===
Line 21: Line 30:
;Creating a new document
;Creating a new document


Flash let's you create a new document from templates: ''File->New''. Then choose from General or Templates.
Flash lets you create a new document from various templates: ''File->New''. Then choose from ''General'' or ''Templates''.


These templates may predefine several things:
These templates may predefine several things:
* Size of the stage
* Size of the stage
* Version of Flash (based on Actionscript 1,2 or 3)
* Version of Flash (based on Actionscript 1,2 or 3)
* Other things sometimes (e.g. the Photoslideshow contains photos an tools to make slidesshow).
* Sometimes other things, e.g. the Photoslideshow contains photos and tools to make slideshow.


In any case, to learn Flash's drawing feature, you don't have to worry much about which template you choose. Just make sure that you have enough space to
In any case, to learn Flash's drawing feature, you don't have to worry much about what template to choose from. Just make sure that you have enough space to draw. If an initial size turns out to be too small or too big, you simply can modify the document's size (see next).
draw. If you don't, simple modify the document (see next)


; Modification of a document
; Modification of a document


With ''Modify->Document'' you can:
With ''Modify->Document'' (or by clicking on an empty spot in the stage and then changing the properties) you can:
* Redefine the size of the stage.
* Redefine the size of the stage.
* Change the background color
* Change the background color
* Give it a title and a short description
* Give it a title and a short description


=== What size ? ===
=== What size for a Flash document ? ===


Size of your Flash document depends on its purpose. Since Flash documents (unlike well made HTML pages) have a fixed size, you must find a good compromise between readibility (user should be able to read and distinguish all elements) and horizional/vertical space you take up).  
Size of your Flash document depends on its purpose. Since Flash documents (unlike well made HTML pages) have a fixed size, you must find a good compromise between readability (user should be able to read and distinguish all elements) and horizontal/vertical space you take up).  


; Larger flash documents
; Larger flash documents


The default documents take up 550x400px. This makes the documen viewable without scrolling on a computer with a bad screen resultion of 800x600px. Do not forget that a screan also contains a tools bar (in most Operating systems) and that Flash is usually viewed within a web browser that also contains menu bars, a bottom bar and some pixels to the left and right.
The default documents takes up 550x400px. This makes the document viewable without scrolling on a computer with a bad screen resolution of 800x600px. Do not forget that a screen also contains a tools bar (in most Operating systems) and that Flash is usually viewed within a web browser that also contains menu bars, a bottom bar and some pixels to the left and right.


Anyhow, most people today have bigger screen resolutions so you certainly can go bigger than that.
Anyhow, most people today have bigger screen resolutions so you certainly can go bigger than 550x400.


; Banners and other embedded itmes
; Banners and other embedded items


Just don't make banners too large ....
Just don't make menu bars too large ....


== Configuration of the drawing environment ==
== Configuration of the drawing environment ==
Line 56: Line 64:
Firstly you should know that there are two kinds of drawing tools:
Firstly you should know that there are two kinds of drawing tools:


# Tools in the main tools panel (that usually is configured to display to the left of the desktop)
# Tools in the '''main tools panel''' (that appears by default to the left of the desktop)
# Tools available through panels
# Tools available through various '''panels'''


Here is screendump that I made while drawing a red "ray" with the Pencil tool (note that mouse pointer is missing).  
Here is screen-dump that I made while drawing a red "ray" with the Pencil tool (the mouse pointer is missing from the drawing).  
* You can see that the properties panel will display properities of the object being drawn. E.g. it will display color of the pen, size of the pen, type of the line, fill color, etc.  
* You can see that the '''properties''' panel (lower left) will display properties of the object being drawn. E.g. when you use the pencil, it will display color of the stroke, size of the stroke, type of the line, fill color, etc.  
* The same is true for the color panel that we display in the upper right.  
* The same is true for the '''color''' panel that we display in the upper right.  


[[image:flash-cs3-drawing-desktop-900-723-annotated.png|frame|none|The Flash CS3 drawing environment]]
[[image:flash-cs3-drawing-desktop-900-723-annotated.png|frame|none|The Flash CS3 drawing environment]]


Since these panels give you shortcut access to features of objects you are drawing, it's a good idea to keep them open...
Since these panels give you shortcut access to features of objects you are drawing, it's a good idea to keep them open while you draw.
 
== Some definitions ==
 
=== Strokes vs. fills ===


== The main tools panel ==
* When you draw something with a pencil or another drawing tool like the pencil or the line tool (see below), then the lines you draw are called '''strokes'''.
* The outlines of shapes you create with the rectangle, oval, etc. tools are also called strokes. The '''insides of these shapes''' can have '''fills''' (various forms of color). All geometric shapes therefore have both strokes (the outline) and fills.
* When you use the ''paint tool'' (brush), then you usually just create '''fills''' (no strokes).


We suggest to leave the drawing tool docked to the left side (since it's frequently used). But depending on your screen size, you display it either in a single column or a double column, click the ">>" on its top bar.
=== Colors ===


The main tools panels groups tools by different categories:
There are several types of colors:
# On top, '''selection and transformation''' tools
* '''None''': You may choose to draw without fill or stroke
# '''Drawing''' tools
* '''Solid''': Standard colors
# '''Painting''', '''color picking''' and '''erasing''' tools
* '''Linear''': Gradient color changes that go from one side to another
# On the bottom, '''view'''''' and '''options''' tools that are context dependent (i.e. change when you select a different drawing or painting tool).
* '''Radial''': Gradient color changes that goes from inside out
* '''Bitmap''': You can paint with an imported bitmap. This is particular useful with textures. E.g. to draw floors, walls or outdoors scenes with repetitive tiles.


Tools may have variants (in this case you can see a little down arrow in the icon). To see variants you must press the left mouse for a while or Shift-click. E.g. instead of the ''Rectangle tool'' you can display/access the ''Polystar tool''.
To select a color type, there is a pull-down menu in the color panel.


=== List of tools ===
To work with gradients is not very easy and the interface doesn't help that much. To change a gradient you need 2 tools:
* The color panel (select type=linear or type=radial), then play with the sliders. You can remove slider buttons by dragging them outside the area or if you leave the mouse down for a while, you can change color of gradient controller. You also may try to start from the swatches pane.
* To change orientation (e.g. from linear horizontal to linear vertical), use the ''Gradient Transform Tool'' (usually hidden below the Free Transform Tool). Catch the little circle and turn around the object. Only the gradient will turn.


[[image:flash-cs3-tools-panel-items.png|frame|none|Items of the tools panel]]
Read the [[Flash colors tutorial] if you want to know more colors and gradients ...


=== Configuration of the Tools panel ===
== The main tools panel ==


The Tools panel can be configured via ''Edit->Customize Tools Panel'' (but for I suggest not to change anything there).
[[image:flash-cs3-tools-panel-items.png|thumb|250|left|Items of the Flash CS3 tools panel]]
The main tools panel contains the major drawing tools. We suggest to leave this panel docked to the left side (since it's frequently used). But depending on your screen size, you can display it either in a single column or as a double column, click the ">>" on its top bar to change this.


=== Configuration of drawing settings ===
The '''main tools panel''' organizes tools by different categories:
# On top, '''selection and transformation''' tools
# Below '''Drawing''' tools
# Next, '''Painting''', '''color picking''' and '''erasing''' tools
# After that, various '''configuration''', '''view''' and '''options''' tools that are context dependent.


Select ''Edit->Preferences'' and then change parameters in the section ''Drawing''. (no need to do this now). Basically you can modify how Flash helps you drawing objects (e.g. conntected lines, vertical/horizontal) and how it identifies objects when you click on them.
Options change according to tool that is selected. E.g. in the screen capture to the left you can see how the tools panels shows with the selection tool (left) and the brush tool (right).


== Drawing models ==
Tools may have variants (in this case you can see a little down arrow in the icon). To see variants you must press the left mouse for a while or Shift-click. E.g. instead of the ''Rectangle tool'' you can display/access the ''Polystar tool''.


=== Merge (shape) vs. object drawing ===
=== Merge (shape) vs. object drawing ===


Flash has two drawing models:
Flash has two drawing models:
* The '''merge''' model will erase what is below something you draw.
* The '''merge''' model will erase shapes below something you draw (but not graphic objects as defined next)
* The (more recent) '''object''' drawing model draws shapes as separate objects (that you later can move as in a typical vector graphics program).
* The '''object''' drawing model draws shapes as separate objects (that you later can manipulate like in a typical vector graphics program).


Usually, you'd rather work with the object model. However the merge model can be used to draw complex shapes, e.g. you can draw a circle and then carve off things by drawing over it or to "paint" things. You later can convert "paintings" to objects of course.
Usually, you rather '''should work with the object model''' since the shape of each object can be easily modified later on. However the merge model can be used to draw complex shapes, e.g. you can draw a circle and then carve off things by drawing over it. The merge mode is also useful when you "paint" things (as opposed to drawing). You later can convert "paintings" to objects of course.


By default, the object model may be turned off, so turn it on by clicking on the ''Object drawing button''. Once you clicked, Flash will remain in object drawing mode. You can see if it's on when there is a rectangle drawn abround the button.
By default, the object model may be turned off, so turn it on by clicking on the ''Object drawing button''. You can find in the options section of the tools panel after clicking on some drawing tool (e.g. the Pencil). You can see if it's on when there is a rectangle drawn around the button, like this: [[image:cs3_tool_object_draw.png|22px|object button pressed]]


You can see the difference between the 2 kinds of objects created in the Properties Panel:
You can see the difference between the 2 kinds of objects created in the Properties Panel:
* Objects are called '''Drawing Objects'''
* Objects are called '''Drawing Objects'''
* Simple drawings (from the merge model) are called '''Shape'''
* Simple drawings (from the merge model) are called '''Shapes'''.


If you mix the two modes, Shapes are drawn ''behind'' objects ! Therefore it's probably
The behavior of tools changes according to mode used and it's not so obvious to remember what Flash does.
a good idead to use more than one layer, i.e. at least one for objects and at least one other for shapes.


* See the Flash layers tutorials (to be made)
; In merge mode


=== Conversions ===
* In merge mode, when you draw a shape over another shape, it erases the shape underneath by default. You can change this with the control options (see later)
 
* When you draw another object (line, pencil, etc.) it will draw over the painting, but not erase it.
 
; In object mode
 
* Shapes drawn in object mode with the '''brush''' tool are drawn either within, on top or behind objects depending on how to set the controls of the brush tool.
 
* Shapes drawn in object mode with the '''pencil, the pen tool etc.''' are drawn on top of other objects. But in the object mode they can be moved behind with the ''right-click->Arrange'' context menu.
 
If you already tried to draw more complex shapes, you noticed that it is difficult to work with a single layer (e.g. to select objects), so you now have to learn how to work with layers.
 
* If you are not familiar with layers, please read the [[Flash layers tutorial]] now.
 
; Conversions
 
* To convert an object (instance) into its original components : ''Right click''->''Break apart''
* To convert some shapes into a drawing object: Select them first (e.g. with the Lasso), then select Menubar ''Modify->Combine Objects->Union''
* To convert some shapes into a symbol, ''Right-click; Convert to Symbol''
 
=== List of standard tools ===
 
Also see the figure "Items of the Flash CS3 tools panel" above in order to identify the corresponding icons in the tools panel. Some tools are stacked on top of each other. Hold down the mouse button for while to see the hidden ones.
 
==== Selection tool ====
 
This tool lets you select elements (shapes, strokes, fills, symbols, bitmaps) in the workarea by clicking on it (simple click). If you wish to select several objects together hold down the SHIFT key or use a selection box or the lasso (see next).
 
You also can drag the mouse pointer to select an area with one or several objects. You certainly have to do this for a drawing made in merge mode, i.e. a collection of simple shapes). If you want to select a non-rectangular area, use the Lasso tool.
 
Double-clicking would put you into object editing mode for various parts (depending on where you click). To return from this mode (which we will not explain here), double-click in some empty area in the workspace.
 
Warning: This tool also can act as a distortion tool ! See the [[Flash object transform tutorial]]. Always make sure that you see a big "cross-hair" cursor before you start moving around anything.
 
==== Subselection tool ====
 
The subselection tool allows you to select paths of an object so that you can make more sophisticated modifications. Click on the outlines of objects. You then can drag around the little squares and dots that will appear, i.e. modify portions of shapes. See the [[Flash object transform tutorial]] for details.
 
If you want to modify a symbol (in the properties panel you can see something like "Instance-of") you have to break it apart: ''Right-click->Break Apart''.
 
==== Free Transform and Gradient Transform tools ====
 
The Free Transform tool will allow you to make several kinds of transformations.
When you select an object with this tool and then move the mouse over different spots, you will that the mouse cursor changes shapes. Each one will allow you do different transformations:
 
* Scale an object: double-ended arrow
* Rotate an object: circle arrow
* Skew (distort an object): double ended double arrow
 
To do a proportional scale, hold down the SHIFT key and then drag a corner.
 
There are more options to the free transform tool, e.g. so-called envelope transform, see the [[Flash object transform tutorial]] if your are curious about this.
 
The '''Gradiant Transform tool''' is hidden below the free transform tool (by default) and allows you to change the ways in which color gradients flow.
Hold down the mouse for a while and then change the tool. See the [[Flash colors tutorial]].
 
==== Lasso tool ====
 
Select several objects or parts of a shape. Remember: to transform an object into a shape, ''break it apart''. This tool also includes a "magic wand" mode (see the controls)
 
==== Pen tool ====
 
This is the tool that allows you to make the most complex drawings, i.e. pathes with Bezier curves.
 
(not explained here ....)
 
==== Text tool ====
 
Add text.
 
In the properties panel you may define various text properties such as fonts, color and positioning, alignment, etc. If you click on the paragraph symbol, you can define indent, line spacing and margins.
 
==== Line tool ====
 
Draws simple lines.
 
==== Rectangle and other tools ====
 
On the same spot of the tools panel you got several tools. By default you will see the rectangle tool. To select another tool: hold the left mouse button down for while and then select the one you want.
 
* Rectangle tool (by default): Draw simple rectangles. In the parameter's panel you can define strokes and filling properties.
* Rectangle primitive tool: Lets you define additional properties like rounded corners
* Oval tool: Draw ovals
* Oval primitive tool: Define in addition other features, such as start/end angle, inner radius etc.
* Polystar tool: Define polygons and stars (there is a small pull-down menu in the properties panel that you should not overlook !)
 
Below you can see a few drawings. The screen capture has been taken with the Polystar tool activated.
 
[[image:c3_tool_polystar.png|frame|none|Various drawings with the rectangle, oval, polystar tools]]
 
==== Pencil tool ====
 
[[image:cs3_tool_pencil.png|frame|left|]]
With the Pencil tool you make drawings like with a Pen. However, there is optional support to draw straight or smooth lines since drawing with a mouse isn't very obvious. You can define various options.
<br clear="all"/>
; "Line" drawing Options
In the options section you can select different ways of drawing support. I.e. the the straight icon looks like this: [[image:cs3_tool_pencil_straight.png|17px|straight]].
Below is a screen-dump that demonstrates the difference between '''straight''', '''freehand''' and '''smooth''' drawing.
[[image:flash-cs3-drawing-tools-pencil.png|frame|none|The three pencil drawing modes]]
 
; Stroke, color and line properties.
In the properties panel you can define various options like stroke (pen) color, fill color, various dashes or not, and how the end of lines should look.
 
==== Brush tool ====
 
The brush tool lets you paint. There are several special effects and several modes.
 
; Object or merge mode
* In '''merge mode''' you only can paint fills
* In '''object mode''' you can add a stroke to your painting (by default it is off). Look at the properties panel.
 
; The Brush Mode
 
With the "Brush Mode" in the options section (not the properties panel) you can select the paint mode. Make sure to understand these and to verify that the wanted mode is on, else you likely run into frustrations ...
 
* Paint Normal: paints over lines and fills on the same layer. Like painting with a "heavy" paint.
 
* Paint Fills: Fills empty areas leaving lines unaffected.
 
* Paint Behind: Paints in blank areas of the Stage on the same layer, leaving lines and fills unaffected (this may be be default, I am not sure).
 
* Paint Selection: Applies a new fill to a selection. Therefore, before you start painting select a fill color first, then select the object with the selection tool, then paint. This is the quickest way to color drawings.
 
* Paint Inside: Fills the area within a "fill" (i.e. where you start paining) and does not overpaint lines. If you start painting in an empty area outside a fill, painting will not affect existing filled areas.
 
; Selection of brushes and size
 
Choose from the options in the options section ....
 
==== Ink Bottle tool ====
 
This tool allows you to apply color changes to the strokes of drawings.
 
* Select the ink bottle
* Then select either a ''Stroke color'' (and/or a ''Fill Color'' if the object is a graphic) from controls in the main tools panel. If want to make more sophisticated changes (e.g. apply a gradient) do this through the color panel.
* The click on objects you want to change.
 
You also can change the color of a fill or stroke through the properties panel or the color panels, but make sure to select the object(s) you want to change first.
 
==== Paint bucket tool ====
 
The paint bucket tool works like the ink bottle tool but it is used to change colors of paintings. You also can fill in empty areas (insides of drawings made with the pencil for example)
 
* First, click on the paint bucket tool
* Select fill color (and style)
* If you want to fill an area that is not entirely closed, you can do so by modifying the gap size by changing the "Gap size" control in the tool panel options. E.g. choose "Close medium gaps".
* Then click on the shape or the area you want to fill
 
Again, you also can change paint of shapes and object, by first selecting the thing in the stage, and then by making changes in the properties or the colors panels.
 
==== Eyedropper tool ====
 
You can select a color from some spot on the workarea.
The tool will then automatically change to the paint bucket tool (see above).
 
==== Erasor tool ====
 
Erase stuff. See the [[Flash object transform tutorial]] for details.
 
== Option controls and tools configuration ==
 
Some option tools are always displayed, some only for certain tools.
 
==== Hand tool ====
 
* Move the stage around (useful for big drawings/small screens or with a strong zoom)
 
==== Zoom tool ====
 
* Zoom in/out
 
==== Pen color ====
 
* Select the pen (stroke) color
 
==== Fill color ====
 
* Select the fill color
 
==== Swap color ====
 
* Change fill color to stroke color
 
=== Configuration of the Tools panel ===
 
The Tools panel can be configured via ''Edit->Customize Tools Panel'' (but for now I suggest not to change anything there).
 
=== Configuration of drawing settings ===
 
Select ''Edit->Preferences'' and then change parameters in the section ''Drawing''. (no need to do this now). Basically you can modify how Flash helps you drawing objects (e.g. connected lines, vertical/horizontal) and how it identifies objects when you click on them.


* To convert an object into a shape: ''Right click''->''Break apart''
* To convert a shape into an object: Select if first (try double-clicking first), then select Menubar ''Modify->Combine Objects->Union''


== Painting simple objects ==
== Painting simple objects ==


Of cours you can find lot's of drawings on the Internet. However, as principle it
In this chapter we will show how to make a complete (but simple!) drawing. Disclaimer: [[User:Daniel K. Schneider|Daniel K. Schneider]] doesn't even remotely feel to be graphics designer.
is a better idea to find vector graphics that you can import into flash and for 2 reasons:
If you are not familiar with layers, you now really should have a look at the [[Flash layers tutorial]]
 
Firstly, you can find lots of free [[clipart]] (drawings) on the Internet. As a principle it is a better idea to search for '''vector graphics''' as opposed to bitmaps and for three reasons:
* Vector graphics are smaller
* Vector graphics are smaller
* They can be re-edited
* They can be re-edited
* They ajust nicely to size. A smaller or bigger version still looks as good as the original.
* They adjust nicely to size. A smaller or bigger version still looks as good as the original.
 
To find vector objects you can for instance type in Google "free clipart download" or see the links in the [[clipart]] article (finding good and free clipart on the web is not easy).
 
Most often, clipart is distributed in *.wmf format (Windows Meta File format). Flash can handle this format. It also can handle Illustrator *.ai format, Enhanced Windows Metafile *.emf, Freehand, Flash *.swf, and Autocad *.dxf. It can ''not'' handle SVG (but you can open SVG files with Illustrater and then copy/paste).


To find objects you can for instance type in Google "free clipart download".
You also can import a series of bitmap formats like the "standard" *.png, *.jpg, *.gif, but also Photoshop *.psd and a variety of Quicktime formats if it is installed on your computer.
Most often, clipart is distributed in *.wmf format (Windows Meta File format). Flash
can handle this


=== Drawing fuzzy objects ===
=== Drawing fuzzy objects ===
[[image:apple-tree.png|thumb|200px|right|An apple tree drawn in merge mode]]
[[image:apple-tree.png|thumb|200px|right|An apple tree drawn in merge mode]]
The basic principles for paint-challenged people like me is the following:
The basic principles for paint-challenged people like me is the following:
Line 135: Line 348:
* Create a new layer. It is usually a good policy to create a new layer for each drawing. Do not worry about size and position at this stage, since you can later move the drawing around and resize it.
* Create a new layer. It is usually a good policy to create a new layer for each drawing. Do not worry about size and position at this stage, since you can later move the drawing around and resize it.
* Zoom in (like 200%), e.g. with ''View->Magnification''
* Zoom in (like 200%), e.g. with ''View->Magnification''
* Put Flash into merge mode
* Select ''merge mode'' from the Object Drawing tool and set the brush tool to overpaint.
* Keep the painting as simple as possible
* Keep the painting as simple as possible
* Use large Pencils or brushes for starters, the small ones to work on borders if needed.
* Use large Pencils or brushes for starters, then small ones to work on borders if needed.
* Use the eraser to trim off strokes that went too far
* Use the eraser to trim off strokes that went too far
* Draw stuff that will go to the background first.
* Draw stuff that will go to the background first and then overpaint


E.g. To the right is a simple apple tree with a green snake (I later erased).
E.g. To the right is a simple apple tree with a green snake (I later erased).
Line 146: Line 359:


[[image:cat.png|thumb|300px|none|A really ugly cat drawn mostly in object mode]]
[[image:cat.png|thumb|300px|none|A really ugly cat drawn mostly in object mode]]
* Find a recipee to draw these, e.g. on Google type: "how to draw a cat"
* Find a recipe to draw these, e.g. on Google type: "how to draw a cat"
* Then reproduce if you can ;)
* Then reproduce if you can ;)
* Rather use object mode and disable stroke since these models often ask you to overlay circles.
* Rather use object mode and disable stroke since these models often ask you to overlay ovals. Without stroke you may overlay various geometric shapes of the same color.
E.g. here is a cat made as explained in  [http://www.abc.net.au/creaturefeatures/draw/draw_a_cat.htm Creature Features].
E.g. here is a cat made as explained in  [http://www.abc.net.au/creaturefeatures/draw/draw_a_cat.htm Creature Features].
Alternatively you also can first draw the object with the pencil tool (or the pen tool) and then use the Paint Selection or Paint inside mode of the brush tool to apply colors.
Of course in the same drawings you can mix pencil, pre-built objects like rectangles and paint. E.g. draw the outline of house with the pencil and then draw the roof with the paint tool.


=== Save each object as symbol ===
=== Save each object as symbol ===


Once you are happy with a drawing you should convert it to a (reusable symbol): ''Righ-click->Convert to Symbol''. E.g. call it "cat".
Once you are happy with a drawing, you should convert it to a (reusable graphic symbol): ''Right-click->Convert to Symbol; Graphic''. E.g. call it "cat".
You then can remove the layer you used to draw this objects since the raw drawing is no longer needed.
You then can remove the layer you used to draw this object, since the raw drawing is no longer needed.
[[image:flash-cs3-convert-to-graphic-symbol.png|thumb|400px|none|convert a select object to a symbol]]


Once you have it in the libary you can use several times, in various sizes and
Once you have it in the library you can use several times, in various sizes and distortions. You also can copy the object and e.g. make a new one with different colors ...
distorsions. You also can copy the object and e.g. make a new one with different
If you are unhappy with the results (as I ought to be), you can just break a graphic apart and restart again...
colors ...
If you are unhappy with the results (as I ought to be), you can just break an graphic apart and restart again...


You then can take a library item insert it into a scene and make it smaller.
When you insert a library object into stage you can make it smaller.
Drag it from your library into the stage (but onto another layer) and then
Drag it from your library into the stage (but onto another layer) and then
select the ''Free Tansform tool''; Press Shift (proportional reduction) and
select the ''Free Transform tool''; Press Shift (proportional reduction) and make it as small (or big) as you like.
make it as small (or big) as you like.


=== Importing clipart ===
=== Importing clipart ===
Line 171: Line 386:


To import:
To import:
* File->Import->Import to Stage or alternativly Import to Library
* File->Import->Import to Stage or alternatively Import to Library
* If you import it to the state and like it, then safe it to the library with ''Right-click->Convert to Symbol; Graphic'' as above.
* If you import it to the stage and like it, then save it to the library with ''Right-click->Convert to Symbol; Graphic'' as explained above.


[[image:cat-free-clip-art-com.png|thumb|300px|none|A cat from www.free-clip-art.com. Copyright: Personal and educational use]]
[[image:cat-free-clip-art-com.png|thumb|300px|none|A cat from www.free-clip-art.com. Copyright: Personal and educational use]]
Line 181: Line 396:


I suggest to draw background stuff with a new layer
I suggest to draw background stuff with a new layer
You can do this beforehand or after. In order to see either background or objects you can
You can do this beforehand or after. In order to see either background or objects you can put all other layers in "outline mode".
put all other layers in "outline mode".
Click on rectangles near each layer or on the rectangle on top.
Click on rectangles near each layer or on the rectangle on top.


Line 188: Line 402:


* First of all you can change the background of the stage: ''Modify->Document''; then change the background color.
* First of all you can change the background of the stage: ''Modify->Document''; then change the background color.
* If you background layer is drawn over the objects instead of the other way round, just drag the layer in the layer tool after the objects.
* If the layer with your background drawings (e.g. sky) is drawn over the objects instead of the other way round, just move this layer (either to the top or to the bottom depending on your settings).


=== A result (sort of) ===
=== A result (sort of) ===


Here is the result of a three times two trees, two of my cats and the imported one:
Here is the result of a three times two trees, two of my cats, an imported cat and a little house.
[[image:flash-trees-and-cats-drawing.png|frame|none|A flash document with trees and cats]]
[[image:flash-trees-and-cats-drawing.png|frame|none|A flash document with trees and cats]]


=== Using textures ===
Of course, you may find the grass to be too ugly. A good solution might be to replace a background color with textures. Search on the web for "free textures grass" and save the file (usually a *.jpg).
You should be aware that there are textures and textures meant to be tiled. Simple pictures (if smaller than the stage) will produce tiles that you can see (not exactly what you want). So instead you can search for something "free tileable grass textures". If you can't find good tiles, you may learn how
to do this with this [http://www.learn2photoshop.com/tilabletex.htm Photoshop] from DadyyCool.
* You then can resize the image if it is too big and/or crop it.
* After that, deselect all objects (click in the gray area) or select the object you want to paint.
* Then open the color panel and select ''type: Bitmap'' from the pulldown menu. Import the bitmap and select it (you also will find a copy of the bitmap in your library).
* Then paint the outline of your textured area with the brush tool (in the "Paint behind mode" (see brush tool above)
* Then fill the rest with the paint bucket.
* You can change the way textures are applied with the free transform tool (see [[Flash colors tutorial]]).
[[image:flash-trees-and-cats-drawing2.png|frame|none|A flash document with trees and cats]]
This result is not exactly better, but it's different and you can see that you can draw with bitmaps :). Of course one now also should repaint the house and the trees. I also rotated the gradient for the sky by the way.
Of course, one can do better graphics and colors. See more advanced [[Flash tutorials]] on drawing, e.g. the [[Flash object transform tutorial]], the [[Flash arranging objects tutorial]] or the [[Flash colors tutorial]]
=== Files to download ===
You can download the *.fla files here:
* http://tecfa.unige.ch/guides/flash/ex/drawing-intro/
** flash-cs3-drawing-trees.fla is the one with a simple background
** flash-cs3-drawing-trees3.fla uses gradients and drawings outside the stage are clipped away (so it's a clean version of the above and I will use this one in the [[Flash motion tweening tutorial]]).
** flash-cs3-drawing-trees2.fla is the one with the textures.
[[Category:Flash tutorials]]




[[Category: Tutorials]]
[[Category: Flash]]
[[Category: Multimedia]]
[[Category: Authoring tools]]

Latest revision as of 18:28, 22 August 2016

Introduction

Learning goals
Learn about some features of the Flash CS3 drawing environment
Learn painting and drawing simple (!) objects
Prerequisites
Flash CS3 desktop tutorial or Flash CS4 desktop tutorial
Flash layers tutorial (first part)
Related pages
texture and clipart (import media elements)
Materials (*.fla files you can play with)
http://tecfa.unige.ch/guides/flash/ex/drawing-intro/
Quality and level
This text should technical people get going. It's probably not good enough for beginners, but may be used as handout in "hands-on" class. That is what Daniel K. Schneider made it for. Screen captures were made with CS3, but the overall logic is the same for CS4 and CS5.
Next steps
Alternative

Setting up the stage

Besides choosing the right settings for publication (Flash version) with which we shall not deal here, you should select the right size for your your stage, i.e. the size of your future flash document. You can do this either when you create a new file or later.

Defining document size

Creating a new document

Flash lets you create a new document from various templates: File->New. Then choose from General or Templates.

These templates may predefine several things:

  • Size of the stage
  • Version of Flash (based on Actionscript 1,2 or 3)
  • Sometimes other things, e.g. the Photoslideshow contains photos and tools to make slideshow.

In any case, to learn Flash's drawing feature, you don't have to worry much about what template to choose from. Just make sure that you have enough space to draw. If an initial size turns out to be too small or too big, you simply can modify the document's size (see next).

Modification of a document

With Modify->Document (or by clicking on an empty spot in the stage and then changing the properties) you can:

  • Redefine the size of the stage.
  • Change the background color
  • Give it a title and a short description

What size for a Flash document ?

Size of your Flash document depends on its purpose. Since Flash documents (unlike well made HTML pages) have a fixed size, you must find a good compromise between readability (user should be able to read and distinguish all elements) and horizontal/vertical space you take up).

Larger flash documents

The default documents takes up 550x400px. This makes the document viewable without scrolling on a computer with a bad screen resolution of 800x600px. Do not forget that a screen also contains a tools bar (in most Operating systems) and that Flash is usually viewed within a web browser that also contains menu bars, a bottom bar and some pixels to the left and right.

Anyhow, most people today have bigger screen resolutions so you certainly can go bigger than 550x400.

Banners and other embedded items

Just don't make menu bars too large ....

Configuration of the drawing environment

Firstly you should know that there are two kinds of drawing tools:

  1. Tools in the main tools panel (that appears by default to the left of the desktop)
  2. Tools available through various panels

Here is screen-dump that I made while drawing a red "ray" with the Pencil tool (the mouse pointer is missing from the drawing).

  • You can see that the properties panel (lower left) will display properties of the object being drawn. E.g. when you use the pencil, it will display color of the stroke, size of the stroke, type of the line, fill color, etc.
  • The same is true for the color panel that we display in the upper right.
The Flash CS3 drawing environment

Since these panels give you shortcut access to features of objects you are drawing, it's a good idea to keep them open while you draw.

Some definitions

Strokes vs. fills

  • When you draw something with a pencil or another drawing tool like the pencil or the line tool (see below), then the lines you draw are called strokes.
  • The outlines of shapes you create with the rectangle, oval, etc. tools are also called strokes. The insides of these shapes can have fills (various forms of color). All geometric shapes therefore have both strokes (the outline) and fills.
  • When you use the paint tool (brush), then you usually just create fills (no strokes).

Colors

There are several types of colors:

  • None: You may choose to draw without fill or stroke
  • Solid: Standard colors
  • Linear: Gradient color changes that go from one side to another
  • Radial: Gradient color changes that goes from inside out
  • Bitmap: You can paint with an imported bitmap. This is particular useful with textures. E.g. to draw floors, walls or outdoors scenes with repetitive tiles.

To select a color type, there is a pull-down menu in the color panel.

To work with gradients is not very easy and the interface doesn't help that much. To change a gradient you need 2 tools:

  • The color panel (select type=linear or type=radial), then play with the sliders. You can remove slider buttons by dragging them outside the area or if you leave the mouse down for a while, you can change color of gradient controller. You also may try to start from the swatches pane.
  • To change orientation (e.g. from linear horizontal to linear vertical), use the Gradient Transform Tool (usually hidden below the Free Transform Tool). Catch the little circle and turn around the object. Only the gradient will turn.

Read the [[Flash colors tutorial] if you want to know more colors and gradients ...

The main tools panel

Items of the Flash CS3 tools panel

The main tools panel contains the major drawing tools. We suggest to leave this panel docked to the left side (since it's frequently used). But depending on your screen size, you can display it either in a single column or as a double column, click the ">>" on its top bar to change this.

The main tools panel organizes tools by different categories:

  1. On top, selection and transformation tools
  2. Below Drawing tools
  3. Next, Painting, color picking and erasing tools
  4. After that, various configuration, view and options tools that are context dependent.

Options change according to tool that is selected. E.g. in the screen capture to the left you can see how the tools panels shows with the selection tool (left) and the brush tool (right).

Tools may have variants (in this case you can see a little down arrow in the icon). To see variants you must press the left mouse for a while or Shift-click. E.g. instead of the Rectangle tool you can display/access the Polystar tool.

Merge (shape) vs. object drawing

Flash has two drawing models:

  • The merge model will erase shapes below something you draw (but not graphic objects as defined next)
  • The object drawing model draws shapes as separate objects (that you later can manipulate like in a typical vector graphics program).

Usually, you rather should work with the object model since the shape of each object can be easily modified later on. However the merge model can be used to draw complex shapes, e.g. you can draw a circle and then carve off things by drawing over it. The merge mode is also useful when you "paint" things (as opposed to drawing). You later can convert "paintings" to objects of course.

By default, the object model may be turned off, so turn it on by clicking on the Object drawing button. You can find in the options section of the tools panel after clicking on some drawing tool (e.g. the Pencil). You can see if it's on when there is a rectangle drawn around the button, like this: object button pressed

You can see the difference between the 2 kinds of objects created in the Properties Panel:

  • Objects are called Drawing Objects
  • Simple drawings (from the merge model) are called Shapes.

The behavior of tools changes according to mode used and it's not so obvious to remember what Flash does.

In merge mode
  • In merge mode, when you draw a shape over another shape, it erases the shape underneath by default. You can change this with the control options (see later)
  • When you draw another object (line, pencil, etc.) it will draw over the painting, but not erase it.
In object mode
  • Shapes drawn in object mode with the brush tool are drawn either within, on top or behind objects depending on how to set the controls of the brush tool.
  • Shapes drawn in object mode with the pencil, the pen tool etc. are drawn on top of other objects. But in the object mode they can be moved behind with the right-click->Arrange context menu.

If you already tried to draw more complex shapes, you noticed that it is difficult to work with a single layer (e.g. to select objects), so you now have to learn how to work with layers.

Conversions
  • To convert an object (instance) into its original components : Right click->Break apart
  • To convert some shapes into a drawing object: Select them first (e.g. with the Lasso), then select Menubar Modify->Combine Objects->Union
  • To convert some shapes into a symbol, Right-click; Convert to Symbol

List of standard tools

Also see the figure "Items of the Flash CS3 tools panel" above in order to identify the corresponding icons in the tools panel. Some tools are stacked on top of each other. Hold down the mouse button for while to see the hidden ones.

Selection tool

This tool lets you select elements (shapes, strokes, fills, symbols, bitmaps) in the workarea by clicking on it (simple click). If you wish to select several objects together hold down the SHIFT key or use a selection box or the lasso (see next).

You also can drag the mouse pointer to select an area with one or several objects. You certainly have to do this for a drawing made in merge mode, i.e. a collection of simple shapes). If you want to select a non-rectangular area, use the Lasso tool.

Double-clicking would put you into object editing mode for various parts (depending on where you click). To return from this mode (which we will not explain here), double-click in some empty area in the workspace.

Warning: This tool also can act as a distortion tool ! See the Flash object transform tutorial. Always make sure that you see a big "cross-hair" cursor before you start moving around anything.

Subselection tool

The subselection tool allows you to select paths of an object so that you can make more sophisticated modifications. Click on the outlines of objects. You then can drag around the little squares and dots that will appear, i.e. modify portions of shapes. See the Flash object transform tutorial for details.

If you want to modify a symbol (in the properties panel you can see something like "Instance-of") you have to break it apart: Right-click->Break Apart.

Free Transform and Gradient Transform tools

The Free Transform tool will allow you to make several kinds of transformations. When you select an object with this tool and then move the mouse over different spots, you will that the mouse cursor changes shapes. Each one will allow you do different transformations:

  • Scale an object: double-ended arrow
  • Rotate an object: circle arrow
  • Skew (distort an object): double ended double arrow

To do a proportional scale, hold down the SHIFT key and then drag a corner.

There are more options to the free transform tool, e.g. so-called envelope transform, see the Flash object transform tutorial if your are curious about this.

The Gradiant Transform tool is hidden below the free transform tool (by default) and allows you to change the ways in which color gradients flow. Hold down the mouse for a while and then change the tool. See the Flash colors tutorial.

Lasso tool

Select several objects or parts of a shape. Remember: to transform an object into a shape, break it apart. This tool also includes a "magic wand" mode (see the controls)

Pen tool

This is the tool that allows you to make the most complex drawings, i.e. pathes with Bezier curves.

(not explained here ....)

Text tool

Add text.

In the properties panel you may define various text properties such as fonts, color and positioning, alignment, etc. If you click on the paragraph symbol, you can define indent, line spacing and margins.

Line tool

Draws simple lines.

Rectangle and other tools

On the same spot of the tools panel you got several tools. By default you will see the rectangle tool. To select another tool: hold the left mouse button down for while and then select the one you want.

  • Rectangle tool (by default): Draw simple rectangles. In the parameter's panel you can define strokes and filling properties.
  • Rectangle primitive tool: Lets you define additional properties like rounded corners
  • Oval tool: Draw ovals
  • Oval primitive tool: Define in addition other features, such as start/end angle, inner radius etc.
  • Polystar tool: Define polygons and stars (there is a small pull-down menu in the properties panel that you should not overlook !)

Below you can see a few drawings. The screen capture has been taken with the Polystar tool activated.

Various drawings with the rectangle, oval, polystar tools

Pencil tool

Cs3 tool pencil.png

With the Pencil tool you make drawings like with a Pen. However, there is optional support to draw straight or smooth lines since drawing with a mouse isn't very obvious. You can define various options.

"Line" drawing Options

In the options section you can select different ways of drawing support. I.e. the the straight icon looks like this: straight. Below is a screen-dump that demonstrates the difference between straight, freehand and smooth drawing.

The three pencil drawing modes
Stroke, color and line properties.

In the properties panel you can define various options like stroke (pen) color, fill color, various dashes or not, and how the end of lines should look.

Brush tool

The brush tool lets you paint. There are several special effects and several modes.

Object or merge mode
  • In merge mode you only can paint fills
  • In object mode you can add a stroke to your painting (by default it is off). Look at the properties panel.
The Brush Mode

With the "Brush Mode" in the options section (not the properties panel) you can select the paint mode. Make sure to understand these and to verify that the wanted mode is on, else you likely run into frustrations ...

  • Paint Normal: paints over lines and fills on the same layer. Like painting with a "heavy" paint.
  • Paint Fills: Fills empty areas leaving lines unaffected.
  • Paint Behind: Paints in blank areas of the Stage on the same layer, leaving lines and fills unaffected (this may be be default, I am not sure).
  • Paint Selection: Applies a new fill to a selection. Therefore, before you start painting select a fill color first, then select the object with the selection tool, then paint. This is the quickest way to color drawings.
  • Paint Inside: Fills the area within a "fill" (i.e. where you start paining) and does not overpaint lines. If you start painting in an empty area outside a fill, painting will not affect existing filled areas.
Selection of brushes and size

Choose from the options in the options section ....

Ink Bottle tool

This tool allows you to apply color changes to the strokes of drawings.

  • Select the ink bottle
  • Then select either a Stroke color (and/or a Fill Color if the object is a graphic) from controls in the main tools panel. If want to make more sophisticated changes (e.g. apply a gradient) do this through the color panel.
  • The click on objects you want to change.

You also can change the color of a fill or stroke through the properties panel or the color panels, but make sure to select the object(s) you want to change first.

Paint bucket tool

The paint bucket tool works like the ink bottle tool but it is used to change colors of paintings. You also can fill in empty areas (insides of drawings made with the pencil for example)

  • First, click on the paint bucket tool
  • Select fill color (and style)
  • If you want to fill an area that is not entirely closed, you can do so by modifying the gap size by changing the "Gap size" control in the tool panel options. E.g. choose "Close medium gaps".
  • Then click on the shape or the area you want to fill

Again, you also can change paint of shapes and object, by first selecting the thing in the stage, and then by making changes in the properties or the colors panels.

Eyedropper tool

You can select a color from some spot on the workarea. The tool will then automatically change to the paint bucket tool (see above).

Erasor tool

Erase stuff. See the Flash object transform tutorial for details.

Option controls and tools configuration

Some option tools are always displayed, some only for certain tools.

Hand tool

  • Move the stage around (useful for big drawings/small screens or with a strong zoom)

Zoom tool

  • Zoom in/out

Pen color

  • Select the pen (stroke) color

Fill color

  • Select the fill color

Swap color

  • Change fill color to stroke color

Configuration of the Tools panel

The Tools panel can be configured via Edit->Customize Tools Panel (but for now I suggest not to change anything there).

Configuration of drawing settings

Select Edit->Preferences and then change parameters in the section Drawing. (no need to do this now). Basically you can modify how Flash helps you drawing objects (e.g. connected lines, vertical/horizontal) and how it identifies objects when you click on them.


Painting simple objects

In this chapter we will show how to make a complete (but simple!) drawing. Disclaimer: Daniel K. Schneider doesn't even remotely feel to be graphics designer. If you are not familiar with layers, you now really should have a look at the Flash layers tutorial

Firstly, you can find lots of free clipart (drawings) on the Internet. As a principle it is a better idea to search for vector graphics as opposed to bitmaps and for three reasons:

  • Vector graphics are smaller
  • They can be re-edited
  • They adjust nicely to size. A smaller or bigger version still looks as good as the original.

To find vector objects you can for instance type in Google "free clipart download" or see the links in the clipart article (finding good and free clipart on the web is not easy).

Most often, clipart is distributed in *.wmf format (Windows Meta File format). Flash can handle this format. It also can handle Illustrator *.ai format, Enhanced Windows Metafile *.emf, Freehand, Flash *.swf, and Autocad *.dxf. It can not handle SVG (but you can open SVG files with Illustrater and then copy/paste).

You also can import a series of bitmap formats like the "standard" *.png, *.jpg, *.gif, but also Photoshop *.psd and a variety of Quicktime formats if it is installed on your computer.

Drawing fuzzy objects

An apple tree drawn in merge mode

The basic principles for paint-challenged people like me is the following:

  • Create a new layer. It is usually a good policy to create a new layer for each drawing. Do not worry about size and position at this stage, since you can later move the drawing around and resize it.
  • Zoom in (like 200%), e.g. with View->Magnification
  • Select merge mode from the Object Drawing tool and set the brush tool to overpaint.
  • Keep the painting as simple as possible
  • Use large Pencils or brushes for starters, then small ones to work on borders if needed.
  • Use the eraser to trim off strokes that went too far
  • Draw stuff that will go to the background first and then overpaint

E.g. To the right is a simple apple tree with a green snake (I later erased).

Drawing animals and such

A really ugly cat drawn mostly in object mode
  • Find a recipe to draw these, e.g. on Google type: "how to draw a cat"
  • Then reproduce if you can ;)
  • Rather use object mode and disable stroke since these models often ask you to overlay ovals. Without stroke you may overlay various geometric shapes of the same color.

E.g. here is a cat made as explained in Creature Features.

Alternatively you also can first draw the object with the pencil tool (or the pen tool) and then use the Paint Selection or Paint inside mode of the brush tool to apply colors.

Of course in the same drawings you can mix pencil, pre-built objects like rectangles and paint. E.g. draw the outline of house with the pencil and then draw the roof with the paint tool.

Save each object as symbol

Once you are happy with a drawing, you should convert it to a (reusable graphic symbol): Right-click->Convert to Symbol; Graphic. E.g. call it "cat". You then can remove the layer you used to draw this object, since the raw drawing is no longer needed.

convert a select object to a symbol

Once you have it in the library you can use several times, in various sizes and distortions. You also can copy the object and e.g. make a new one with different colors ... If you are unhappy with the results (as I ought to be), you can just break a graphic apart and restart again...

When you insert a library object into stage you can make it smaller. Drag it from your library into the stage (but onto another layer) and then select the Free Transform tool; Press Shift (proportional reduction) and make it as small (or big) as you like.

Importing clipart

Flash can handle various vector formats and even better: you can modify these within Flash.

To import:

  • File->Import->Import to Stage or alternatively Import to Library
  • If you import it to the stage and like it, then save it to the library with Right-click->Convert to Symbol; Graphic as explained above.
A cat from www.free-clip-art.com. Copyright: Personal and educational use

E.g. here is a cat I imported from Free Clip Art. This site has free clipart images for personal use. You can use them for school, fun, non-profit Web sites, and other personal needs.

Adding background and Sky

I suggest to draw background stuff with a new layer You can do this beforehand or after. In order to see either background or objects you can put all other layers in "outline mode". Click on rectangles near each layer or on the rectangle on top.

Making use of the "Layer Outline Mode"
  • First of all you can change the background of the stage: Modify->Document; then change the background color.
  • If the layer with your background drawings (e.g. sky) is drawn over the objects instead of the other way round, just move this layer (either to the top or to the bottom depending on your settings).

A result (sort of)

Here is the result of a three times two trees, two of my cats, an imported cat and a little house.

A flash document with trees and cats

Using textures

Of course, you may find the grass to be too ugly. A good solution might be to replace a background color with textures. Search on the web for "free textures grass" and save the file (usually a *.jpg).

You should be aware that there are textures and textures meant to be tiled. Simple pictures (if smaller than the stage) will produce tiles that you can see (not exactly what you want). So instead you can search for something "free tileable grass textures". If you can't find good tiles, you may learn how to do this with this Photoshop from DadyyCool.

  • You then can resize the image if it is too big and/or crop it.
  • After that, deselect all objects (click in the gray area) or select the object you want to paint.
  • Then open the color panel and select type: Bitmap from the pulldown menu. Import the bitmap and select it (you also will find a copy of the bitmap in your library).
  • Then paint the outline of your textured area with the brush tool (in the "Paint behind mode" (see brush tool above)
  • Then fill the rest with the paint bucket.
  • You can change the way textures are applied with the free transform tool (see Flash colors tutorial).
A flash document with trees and cats

This result is not exactly better, but it's different and you can see that you can draw with bitmaps :). Of course one now also should repaint the house and the trees. I also rotated the gradient for the sky by the way.

Of course, one can do better graphics and colors. See more advanced Flash tutorials on drawing, e.g. the Flash object transform tutorial, the Flash arranging objects tutorial or the Flash colors tutorial

Files to download

You can download the *.fla files here: