I'm building a game like a puzzle using action script 2.0.
There will be 23 small puzzles, each in its own movie clip. This is
one of 23. This has 14 movie clips, each representing a piece of
the puzzle. I have duplicated each movie clip. For example av_1 has
its copy av_1_1 and so for.
I would like the user drag and drop each copy, for example
av_1_1 onto av_1.
A MOVIE CLIP called av_puzzle has all this information. This
is the movie that will be placed on the MAIN stage.
All movies (like av_1) are placed on the stage of the movie
clip (av_puzzle) and given an alpha=1 (so that user can't see
Original movies are on layer 3 (i.e. av_1)
Copies are on layer 4 (i.e. av_1_1).
movie clips used = av_puzzle (where all movie clips are
stored. This is the movie that is placed on the stage)
av_1 .. av_14 (each original piece)
av_1_1.. av_14_1 (corresponding copies of each original)
I have used the following code to drop each copy movie clip
(i.e. av_1_1) onto the corresponding original (i.e. av_1). If
av_1_1 finds av_1 the piece would take av_1 x,y values, if not,
av_1_1 would come back to its position with the original size and
ALL ACTION SCRIPT IS ON FRAME ONE OF THE MOVIE CLIP av_puzzle
There are going to be 23 movies built in similar way. For
that reason, av_puzzle contains the code for its own puzzle.
When using this.startDrag only one movie clip responds to
When using _root.av_puzzle.av_1_1 the movie doesn't come back
to its original place
PLEASE SUGGEST WAYS TO IMPROVE THE ACTION SCRIPT OR DIFFERENT
WAYS TO APPROACH THIS PROJECT.