开发者

connecting lines between two components in flex4

开发者 https://www.devze.com 2023-02-06 03:31 出处:网络
Hey, i need to connect between a image(a) with a lines to another image(b).. these lines have to start from center of (A) to bottom or top of image (B) and it has to b in a vertical hierarchy

Hey, i need to connect between a image(a) with a lines to another image(b).. these lines have to start from center of (A) to bottom or top of image (B) and it has to b in a vertical hierarchy thats i there could b multiple images connected to image a in hierarchy...

i have used a components for image and also for lines..so how can i find center p开发者_运维问答oint of component...

thanks for any help


Ive used this componnet before: http://sammyjoeosborne.com/Examples/Connector/ConnectorExample.html

The connectors automatically connect from center point to centre point of the objects, it may be of some help.


To answer your specific question about the center point of a component, it would be x + w/2 and y + h/2. Hope that helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消