> now for the problem.. if you see the flash movie i've attached, you'll > notice that when a group of pieces that are connected to each other are > moved sometimes it lags. I've manage to lock down the core > problem, which is > that it only lags when you drag a piece located from the left / > top most of > the Group. It wont lag if only you drag the right/bottom most of > the Group. > The drag method for groups is done customely and it tells the > members of the > Group object the piece you're dragging, to move as well. The code:
It seems you're being unnecessarily complicated here. Why take the pieces, move piece A, remove piece A from the group and then move all the rest? I'd do it all in one loop. As for the source of your problem, I'm guessing it's because the mouse moves while the loop is running. Try storing the _xmouse and _ymouse properties at the start of the loop. Best Danny _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

