I'm in the process of trying to create kind of like a gallery
which works only from the keyboard (keys a through to l).
12 images are displayed in a row and when pressing the 'a'
button for example the first image of the 12 is enlarged and is
moved to the very left of stage while the other 11 images fade out
(this happens at the same time as the resize + move), this occurs
for all images (a-l).
When you press a different key while the current image is
displayed, the image is moved back to its original position and all
other images fade back in then the animation for the key pressed is
All of the images are in separate movie clips and tween from
original position > display position > back to original
My problem is getting the images back to their original
positions if a different key is pressed. If an image is displayed
and another key is pressed (e.g. k) I need it to move the displayed
image back to its original position in the row of 12 images and
then play the animation for the key pressed.
Would appreciate any examples/hints/methods. THANKS!
when your swf loads store the initial _x and _y properties of
each of your 12 movieclips as properties (say startX and startY,
resp). then when you need to return a movieclip, change its _x and
_y properties to startX and startY, resp.
I probably should have mentioned that each of the movieclips
is tweened in position. So when you press 'a' the first image in
the row of 12 enlarges, then is moved to the left of stage while
the other 11 fade out.