Dear experts, I am using App Designer and i have a 3 by 3 field of images of a grey (grau.png) cube. I want the cube to change color by changing the image source each time you click on it.
Essentially, if the current image source is called 'grau.png' i want it to switch to 'rot.png' (red), and if it's red it switches to green and so on until it's blue and i want it to switch to grey ('grau.png') once again. The problem i face is that once i click the image it does actually change to the red cube but after that nothing happens when i click it although it should go from 'rot.png' to 'gruen.png'. There is no error when i click again, just nothing happens. I can change the order and switch red with green. Then if i start the app and click the grey cube it changes to green but after that no more changes. Thie image is created here:
I've tried it like this aswell:
changeimage is this function:
I thought that using a Matrix 'CI' might solve it but it's basically the same thing. So is there something wrong with clicking an image twice or is the code not fit the change the image multiple times?