Is there any way

I can get a dragged object to snap to the centre (or specified position) of it’s target without a lot of fiddling around with _x and _y? I’ve got 9 of these objects, and I can’t bear the thought of having to working out the multitude of co-ords…

well… I dont know about fiddling a whole LOT… but I dont know of any other way to do it…\r\rhit=mcdrag.hittest(mctarget);\r\rif(hit==true){\r\rmcdrag._x=mctarget._x;\rmcdrag._y=mctarget._y;\r\r}\r\rcopy/paste/edit… fun fun fun…\r\rperhaps someone else will come up with easier way.\r\rGood luck!

You can also use _dropTarget (tutorial on this site).\r\rpom 0]

I’m not absolutely positive that this would work in ActionScript, but if would in C, the language ActionScript is based on… you should be able to shorten the code to the following:\r\r\rif( mcdrag.hittest(mctarget) ){\r mcdrag._x=mctarget._x;\r mcdrag._y=mctarget._y;\r}\r\r\rI don’t know, might make it a little easier…

That will work. Simpler, cleaner, faster.\r\rpom 0] \r\r_dropTarget though my advice is.