I got a slideshow class, and in here I have a Number variable named “currentImage”. This is changing(with the method currentImage += 1;) when you click to the next image.
The problem is that when I trace currentImage (Event.ENTER_FRAME), it gives different values on odd and even frame numbers. On frame number 1 trace is 0, on frame number 2 trace is 1 and so on, on frame number 3 it is back to 0 and so on.
How is this even possible?
The slideshow works, but I got a function that resets the slideshow and this function is also using currentImage, this function doesn’t work because of the changeing number.