Setting x and y for multiple pieces

I am very new to flash mx and actionscript. I am trying to create a puzzle made up of nine pieces each named piece1, piece2 etc. each is a movie clip with an imbedded button. I am trying to make the pieces scramble upon load and be dragable, but I want to have them return to their original x and y coordinates when the viewer presses a button. Help! Im in over my head. Plus If anyone can suggest an online learning program I can get into that is really good.

thanks,
Big Red

P.S.
this is my first post

Hi,

You need something like this when you press the button to put everything back.

piece1._x = origX1;
piece1._y = origY1;
.
.
.
piece9._x = origX9;
piece9._y = origY9;

Good luck,

Liz

this tute might help u :slight_smile:

http://www.flashkit.com/tutorials/Actionscripting/Basic/Drag__D-estudiow-863/index.php