transition.to help

I have x number of images.

I want to fade the first one in, then as it is fading out fade the next one in - repeat infinitum through the list of images.

I tried the following but it isn’t giving me what I’m after above. Where each subsequent image is faded in as the previous is fading out.

for i=1, myGroup.numChildren do
local child = myGroup[i]
transition.to( child, { time=1500, alpha=1.0 } )
transition.to( child, { time=1500, delay=2000, alpha=0.0 } )
end [import]uid: 31718 topic_id: 6914 reply_id: 306914[/import]

[lua]for i=1, myGroup.numChildren do
local child = myGroup[i]
local timeshift = (i-1) * 1500
transition.to( child, { time=1500, delay=timeshift, alpha=1.0 } )
transition.to( child, { time=1500, delay=2000+timeshift, alpha=0.0 } )
end[/lua] [import]uid: 6645 topic_id: 6914 reply_id: 24195[/import]