thanks, but try this code first with the first two lines in comment. The line “A” does not enter the “B” but “B” is in the “A”.
Now activate the first two lines and it works as I want, but do not know why.
Sorry for my English
– local myText = display.newText( “Display A”, 250, 240, native.systemFont, 16 )
– local myText = display.newText( “Display B”, 400, 240, native.systemFont, 16 )
w=display.newRect(0,0,800,600)
w.x=display.contentCenterX; w.y=display.contentCenterY
w.alpha=0.2
r=display.newContainer(100,100)
r.x=display.contentCenterX
r.y=150
v=display.newRect(0,0,5,150)
v.anchorY=-1
r:insert(v)
e=display.newContainer(100,100)
e.x=display.contentCenterX - 150
e.y=150
u=display.newRect(0,0,5,150)
u.anchorY=-1
e:insert(u)
function next0() transition.to( u, {time=6000, delta=true, rotation=360,onComplete=next0} ) end
function next1() transition.to( v, {time=6000, delta=true, rotation=360, onComplete=next1} ) end
next0()
next1()