Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4600734
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:43:34+00:00 2026-05-21T23:43:34+00:00

I have drawn a series of lines using flash’s graphics.lineTo command, and placed them

  • 0

I have drawn a series of lines using flash’s graphics.lineTo command, and placed them in an array to be referenced later. Based on certain user interactions, the clips that hold these lines can be shifted to the right, causing the lines to move with them, no longer connecting to the point they originally connected to. So I need to extend the lines by the amount their parent clip was shifted (I’ve called this incVal). So what I need to do is find the point at which each of these lines ended at, and draw from that point to the left by incVal. How do I get that ending point of the line?

This is my code:

To draw line and add it both to the clip and to an array for future reference:

line.graphics.lineTo(localPoint.x,localPoint.y-10);
membersRef.addChild(line);
parallelArr.push(line);

To reference the line later by looping through the array:

function extendParallels(incVal):void {
    for (var i=0;i<parallelArr.length;i++){
        trace (parallelArr[i]);
//need to extend line with code here.
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T23:43:34+00:00Added an answer on May 21, 2026 at 11:43 pm

    You can’t get the graphical endpoints exactly from the sprite in an easy way. You should consider to save the end point in a variable.

    var p:Point = new Point(localPoint.x, localPoint.y-10); // flash.geom.Point
    

    And in parallelArr you could save an object which holds a reference to this point and to the DisplayObject where your line is drawn on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have multiple line series in a chart. Chart lines are drawn first and
I'm using SQL Server 2005. I have a series of product and pricing tables
I have a time series data which I can draw using jfreechart. the issue
I have drawn an icon in Inkscape , but would now like to programmatically
I have drawn an object on NSView subclass. How can the object know that
I have drawn something like this: How to remove the paths and points?
I have drawn into a CGContext of a UIView. - (void)drawRect:(CGRect)rect { [self drawInContext:UIGraphicsGetCurrentContext()]
I have a MyCanvas class that extends JComponent. On this canvas I have drawn
If I have a sprite, with which I have drawn some stuff, how do
I have several user drawn controls on a form, unfortunately when the form is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.