MULTIMEDIA

Adobe Flash Catalyst CS5 : Using the Drawing Tools (part 2) - Draw ellipses and circles, Drawing lines, Drawing other shapes, Adding text

9/3/2012 3:32:52 AM

3. Draw ellipses and circles

You can draw either ellipses or circles with the Ellipse tool. As with the rectangle tools, you click the Ellipse tool and then click and drag to draw the shape. Press and hold the Shift key to draw a perfect circle.

Figure 5. Semitransparent rectangles

All shapes are surrounded by a rectangular bounding box. When you click and drag to draw any shape other than a rectangle, you are technically drawing the bounding box, which then contains the shape. Therefore, when drawing ellipses or circles, you need to imagine a spot outside the circle — the corner of the bounding box — as your starting point.


The Properties panel displays most of the same settings for ellipses and circles as it does for rectangles. Therefore, you can set solid or gradient strokes and fills, as shown in Figure 6.

While the End caps, Joint, and Miter limit settings are still available when drawing ellipses, they do not have any effect on the shape and can be ignored. As with rectangles, you can set opacity for strokes, fills, or the entire shape. You can also set a rotation for ellipses.

Figure 6. A circle and an ellipse, using various stroke, fill, and opacity settings

4. Drawing lines

You can draw lines using the Line tool. You can create lines at any angle, but holding the Shift key while you drag constrains the line to 45-degree increments.

Lines do not have fills, so you will notice that only the stroke settings are available. As with other shapes, the stroke can be a solid color or a gradient. The End caps setting changes the ends of the line to round or square (see Figure 7). Selecting None for the End caps removes them from the line, in effect making it slightly shorter. Neither the Joints nor Miter limit have any effect on lines.

Figure 7. A series of lines. The one on the left has its End caps set to rounded, while the one farthest to the right has been drawn while holding down Shift to ensure that it is perfectly horizontal.

5. Drawing other shapes

The remaining shape tools share a space on the Tools panel to the right of the Line tool. The default tool is the Triangle, but you can click and hold your mouse on the tool to see a menu of other shapes such as Hexagon, Octagon, and Star (as shown in Figure 8). All four tools have the same setting options.

Like other shapes, you can set strokes and fills and adjust opacity. On the stroke, the End caps and Miter limit have no effect. Rounded joints round off the sharp edges on corners; you can further round the joints by adjusting the Corners setting.

Figure 8. Adding other shapes to the design

6. Adding text

Add text to your project with the Text tool. Click on the artboard and type to create a text box. After you finish typing, you can switch to the Selection tool and select the text frame to access the Properties panel for the text (see Figure 9).

From here, you can select a font, scrub, or type to set the font size, set a color, and make the text bold or italic. Note that Flash and Flex projects use embedded fonts. Therefore, you are free to select any font on your system to use in your project. At the bottom of the Properties panel are settings to add Strikethrough and underlining to your text.

In HTML, you should not underline text on your page, as this text will likely be confused with a hyperlink. The same theory should keep you from underlining text merely for emphasis in Catalyst. Hyperlinked text in Catalyst will not automatically become underlined; therefore, it can be useful to inform the user that a particular block of text is a hyperlink.

NOTE

The only unit of measurement available in the Flex framework to size fonts is pixels.

Figure 9. Text added to a project with the Text tool. Formatting has been applied with the Properties panel.

Inline formatting of text is not supported by the Flex framework and is therefore not possible in Catalyst. This explains why the text properties are only available when the entire text frame is selected and not available when you select a portion of the text using the Text tool.

Other  
  •  New Memory Card XQD 2.0 Delivers 1,000MB/S Transfer Rate
  •  Samsung EX2F Camera With f/1.4 Lens And WiFi
  •  Panasonic LX7 With CMOS Sensor
  •  Panasonic HC-V700
  •  Panasonic Added Advanced Ultra High Zoom And Mirrorless Cameras : DMC-G5, DMC-FZ200, FZ60, DMC-S, LS205
  •  Nikon D4 New Firmware Updates
  •  Lumix GF5 With Touchscreen
  •  JVC Introduced Adixxion Action Camera
  •  Compact Cameras For The Dynamic
  •  Compact Camera With Significant Sensor
  •  Canon EOS M Uses The Same Sensor With 650D
  •  Canon 650D's Autofocus Is Similar To One Of Nikon 1
  •  Adobe Illustrator CS5 : Printing a Document, Printing with Presets
  •  Adobe Illustrator CS5 : Proofing and Printing Documents - Finding and Changing Fonts
  •  Videography – The Devil's In The Details
  •  Philips 227EQPH Display With IPS, Thin And Light Design
  •  The Rumour Mill – Dirty Laundry
  •  Sony Walkman NWZ-B173F In Hands
  •  Photography – Back From The Dead
  •  Google's Chromebox
  •  
    Top 10
    Nikon 1 J2 With Stylish Design And Dependable Image And Video Quality
    Canon Powershot D20 - Super-Durable Waterproof Camera
    Fujifilm Finepix F800EXR – Another Excellent EXR
    Sony NEX-6 – The Best Compact Camera
    Teufel Cubycon 2 – An Excellent All-In-One For Films
    Dell S2740L - A Beautifully Crafted 27-inch IPS Monitor
    Philips 55PFL6007T With Fantastic Picture Quality
    Philips Gioco 278G4 – An Excellent 27-inch Screen
    Sony VPL-HW50ES – Sony’s Best Home Cinema Projector
    Windows Vista : Installing and Running Applications - Launching Applications
    Most View
    Bamboo Splash - Powerful Specs And Friendly Interface
    Powered By Windows (Part 2) - Toshiba Satellite U840 Series, Philips E248C3 MODA Lightframe Monitor & HP Envy Spectre 14
    MSI X79A-GD65 8D - Power without the Cost
    Canon EOS M With Wonderful Touchscreen Interface (Part 1)
    Windows Server 2003 : Building an Active Directory Structure (part 1) - The First Domain
    Personalize Your iPhone Case
    Speed ​​up browsing with a faster DNS
    Using and Configuring Public Folder Sharing
    Extending the Real-Time Communications Functionality of Exchange Server 2007 : Installing OCS 2007 (part 1)
    Google, privacy & you (Part 1)
    iPhone Application Development : Making Multivalue Choices with Pickers - Understanding Pickers
    Microsoft Surface With Windows RT - Truly A Unique Tablet
    Network Configuration & Troubleshooting (Part 1)
    Panasonic Lumix GH3 – The Fastest Touchscreen-Camera (Part 2)
    Programming Microsoft SQL Server 2005 : FOR XML Commands (part 3) - OPENXML Enhancements in SQL Server 2005
    Exchange Server 2010 : Track Exchange Performance (part 2) - Test the Performance Limitations in a Lab
    Extra Network Hardware Round-Up (Part 2) - NAS Drives, Media Center Extenders & Games Consoles
    Windows Server 2003 : Planning a Host Name Resolution Strategy - Understanding Name Resolution Requirements
    Google’s Data Liberation Front (Part 2)
    Datacolor SpyderLensCal (Part 1)