开发者

Flex3,Tree mapping by means of lines

开发者 https://www.devze.com 2023-03-14 08:59 出处:网络
I want to connect one t开发者_如何学编程ree node with another tree node visually using lines. It\'s similar to mapping data items of two trees.You can use transparent layer (Sprite or Canvas) above tr

I want to connect one t开发者_如何学编程ree node with another tree node visually using lines. It's similar to mapping data items of two trees.


You can use transparent layer (Sprite or Canvas) above trees to draw line there. Find nodes you need, get their absolute coordinates with localToGlobal, transform coordinates to line layer (with respect of layer origin on stage), and you can draw the line.

0

精彩评论

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