+ Reply to Thread
Results 1 to 5 of 5

Thread: ActionScript: Drawing with the Toolbox

  1. #1
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    ActionScript: Drawing with the Toolbox

    Using the Drawing Tools

    The tool box contains a lot of tools that you can use to create pretty much anything that you will ever need.

    The tool box looks like this:



    In this tutorial, we are going to look at these tools:

    1. The line tool
    2. The rectangle tool (and other shape tools)
    3. The pencil tool

    The Line tool

    This tool is used to draw lines. In the tool box, click on the line tool. Now click somewhere on the stage and then drag the mouse. After awhile let go of the mouse and you will have drawn a line. As you move the mouse around you can see how the line is going to look. When you let go a line is drawn on the stage.

    Example:


    Your line may have a different color depending on what stroke color you currently have selected. A line without a stroke color you cannot see.

    The Rectangle Tool

    This tool is located immediately below the line tool. Notice, the little black arrow in the corner? You can use this to change the type of shape you want to draw. For now, we are going to draw rectangles. So set the tool to the Rectangle tool. Again, just click somewhere on the mouse and move the mouse around to size the rectangle until you have it sized and positioned like you want. Then you can release the mouse to draw the rectangle.

    Example:



    The color beside the fill color is the fill color of the rectangle. By clicking on the fill color in the tool box, you can change the fill color. Similarly, the stroke color is the color of the border.

    You can change this tool to draw ovals and other shapes including ovals and polygons. I'm not going to go into the different tools because they are a lot a like.

    The Pencil Tool

    This tool is located right below the draw shapes tools that we just looked at. You can use this tool to draw whatever you want to draw. The color of the stuff you draw is whatever you have the stroke color set to. If you press down shift, you can draw straight lines. Otherwise, you get lines that are drawn exactly as you draw them.

    I'm not very good at using this tool but I will give you an example of drawing a simple dog house.



    I drew that using the pencil and text tool. I apologize for the terrible drawing but I am NAFGA. Others might have the eye for graphical drawing but I do not.
    Attached Thumbnails Attached Thumbnails ActionScript: Drawing with the Toolbox-line.jpg   ActionScript: Drawing with the Toolbox-pencil-drawing.jpg   ActionScript: Drawing with the Toolbox-rect.jpg   ActionScript: Drawing with the Toolbox-toolbox.jpg  

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: ActionScript: Drawing with the Toolbox

    Do we get to have a tower defence game in the end?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: ActionScript: Drawing with the Toolbox

    If you want.

  5. #4
    Jordan Guest

    Re: ActionScript: Drawing with the Toolbox

    The toolbar resembles the one from Photoshop, a lot!
    I really don't think that roof on that house will hold up long.
    +rep

  6. #5
    Join Date
    Oct 2008
    Location
    Istog, Kosova
    Posts
    4,001
    Blog Entries
    1
    Rep Power
    40

    Re: ActionScript: Drawing with the Toolbox

    Great tuto
    Interested in participating in community events?
    Want to harness your programming skill and turn it into absolute prowess?
    Come join our programming events!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Toolbox
    By Doug Bittner in forum Request Services
    Replies: 0
    Last Post: 03-10-2011, 06:17 PM
  2. i am missing a data adapter option from my toolbox
    By elizabethmwashuma in forum C# Programming
    Replies: 9
    Last Post: 05-27-2010, 06:15 AM
  3. Replies: 1
    Last Post: 05-18-2010, 03:30 AM
  4. Free Windows Forms toolbox addons?
    By Panarchy in forum General Programming
    Replies: 2
    Last Post: 08-19-2009, 12:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts