Changing images question

Hi there.

Just wondering if it is possible to change images like this :

local soundNo = 1  
  
soundImg = {"test1.png",   
 "test2.png"};  
soundImgDisplay = display.newImage(soundImg[soundNo], 40, 65);  
  
--then in a function on touch  
soundNo = soundNo + 1  

Or is there another way I should be doing it, the above example seems pretty ok to me at least.

Thanks [import]uid: 6981 topic_id: 2104 reply_id: 302104[/import]

What you do here is that you don’t change the image, but you just load another one and that is displayed on top of the other. If you print the value of soundImgDisplay into the terminal, you will see that you will always get a new object handle. [import]uid: 5712 topic_id: 2104 reply_id: 6287[/import]

Hi Mike.

could you please point me in the right direction as to what i should be doing? Thanks for the help

EDIT : Never mind I see that you have to use movieclips to achieve what I am after. Sorry for posting, it’s really simple, just not what I am used to. I am used to being able to do it the way I posted above. Oh well the joys of learning a new API :slight_smile:

Thanks [import]uid: 6981 topic_id: 2104 reply_id: 6290[/import]