Flex: drawing a connector line between shapes

Posted by artemb on Stack Overflow See other posts from Stack Overflow or by artemb
Published on 2010-03-24T06:54:21Z Indexed on 2010/03/24 15:43 UTC
Read the original article Hit count: 881

Filed under:
|
|
|

Hi!

I am building a diagramming tool using Adobe Flex 3. I am about to implement connector lines and I have a question.

Imagine I have 2 squares at random positions on the canvas. I need to draw an arrowed connector line between them. I need it to tend to the target square's center but end on its border. alt text

How do I find out the exact points between which to draw the line?

Thank you

© Stack Overflow or respective owner

Related posts about flex

Related posts about drawing