Jump to content


Photo

Multi select by drag


  • Please log in to reply
1 reply to this topic

#1 Latinoking

Latinoking

    Young Padawan

  • Members
  • Pip
  • 18 posts
  • Gender:Male
  • Location:Germany

Posted 03 November 2010 - 03:28 AM

Hallo!

I have made graph script in AS3 so I can draw nodes and connect them with edges. I managed to move nodes while thay are connected on by one, but now I need to be able to move many nodes at he same time. I made script that selects nodes by dragging (draw rect and when mouse is relised it makes hitTest), then I add selected nodes to holder (Sprite) and add drag and drop to holder. Everything works fine I can move slected nodes together but I now dont know how to kill holder (remove childs from holder back to stage) so nodes would be at new location. I would be thankfull if someone could hlep me with that or give better solution for this problem :)

Thanks!

Edited by Latinoking, 03 November 2010 - 03:29 AM.


#2 Latinoking

Latinoking

    Young Padawan

  • Members
  • Pip
  • 18 posts
  • Gender:Male
  • Location:Germany

Posted 23 November 2010 - 09:30 AM

Ok I solved It using localToGlobal function :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users