?
Solved

Flash graphics API question.

Posted on 2009-02-16
3
Medium Priority
?
186 Views
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!
arrow-api.gif
0
Comment
Question by:worked
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 150 total points
ID: 23649625
Something like this should work...

CyanBlue
var arrow:Sprite = new Sprite();
arrow.graphics.lineStyle(1);
arrow.graphics.moveTo(0, 0);
arrow.graphics.lineTo(20, 50);
arrow.graphics.lineTo(0, 100);
addChild(arrow);

Open in new window

0
 

Author Comment

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

Author Closing Comment

by:worked
ID: 31547311
Thanks, nevermind the final comment, I got it.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month17 days, 12 hours left to enroll

830 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