sceneGroup:insert(obj[i]) problem

Hi, i can’t insert cubes in sceneGroup…i do this in scene:create but them disappear…help me please.

[lua]

local cubo{}
 

for i=1,10 do

cubo[i]=display.newRect(display.contentWidth-200,display.contentHeight-300-(i*16),16,16)

physics.addBody(cubo[i])
 

sceneGroup:insert(cubo[i])

end

[/lua]

Are you getting any errors?

Rob

No, but now i put it in scene:show in phase==will and it works perfectly 

Are you getting any errors?

Rob

No, but now i put it in scene:show in phase==will and it works perfectly