PDA

View Full Version : setting x and y for multiple pieces



Big Red
August 25th, 2003, 05:49 PM
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

lac
August 26th, 2003, 06:23 PM
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

madrone
August 27th, 2003, 03:47 PM
this tute might help u :)

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