Hi, I have found this code from the Techniques for Swapping Images tutorial.
local
imageGroup = display.newGroup()
local
imageCache = {
"red-ball.png"
,
"blue-ball.png"
,
"green-ball.png"
,
"yellow-ball.png"
,
"purple-ball.png"
}
local
balls = {}
for
i = 1,#imageCache
do
balls[i] = display.newImageRect( imageGroup, imageCache[i], 128, 128 )
balls[i].x = display.contentCenterX
balls[i].y = display.contentCenterY
balls[i].isVisible =
false
end
imageGroup.isShowing = 1
balls[imageGroup.isShowing].isVisible =
true
My one simple question is: what is the .isShowing property in imageGroup? indicated as imageGroup.isShowing. I have not seen this yet in API Reference,
Thank you.