Wrox Home  
Search P2P Archive for: Go

  Return to Index  

flash_programming thread: swapping images flash 4


Message #1 by "Kate Twin" <kate@e...> on Tue, 15 Oct 2002 13:56:09
hi
i'm new to actionscript and i'm creating a simple game where you have a 
picture divided into 9 squares, scramble them up and have to move the 
pieces around to remake the picture. i have 9 images (one blank) on 9 
different layers, corresponding to the 9 different positions, and i would 
like to know how to, when i click on an image, firstly check that one of 
the squares next to it contains the blank image, and if so, change the 
image on the first layer to the blank image and the blank image on it's 
respective layer to the image that was clicked on, to make it appear that 
the piece has moved. is this possible and if so how?
thanks in advance
kate

  Return to Index