Flash graphics API question.

Posted on 2009-02-16
Last Modified: 2013-11-11
Hey there-

I'm familiar with Flash's Graphics API, but I want to know how to draw just a line, like the one in the attachment. Thanks, any help is appreciated!
Question by:worked
    LVL 37

    Accepted Solution

    Something like this should work...

    var arrow:Sprite = new Sprite();;, 0);, 50);, 100);

    Open in new window


    Author Comment

    Hey there- Thanks for the quick response.  Can you center the arrow on the 0, 0 coordinates as well?  Thanks!

    Author Closing Comment

    Thanks, nevermind the final comment, I got it.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
    The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now