why does the screen turns black when using composer module ?

Why does the screen turns black when I used the composer module???

local composer (“composer”)

local scene = composer.newScene();

local background

function scene:create(event)

    local sceneGroup = self.view

     background = display.newRect(0,0,880,1000)

     background:setFillColor(255, 255, 255)

     sceneGroup:insert(background)

end

scene:addEventListener(“create”, scene);

is this happening all to users who apply composer module or is just mine?

Well this isn’t your problem:   background:setFillColor(255, 255, 255)   should be  background:setFillColor(1, 1, 1)

Colors are now in the range of 0…1 instead of 0…255.

As for the black screen, it’s due to an error.  You should have a terminal window open where those errors are printed out.  See:

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

for more information.

Rob

Well this isn’t your problem:   background:setFillColor(255, 255, 255)   should be  background:setFillColor(1, 1, 1)

Colors are now in the range of 0…1 instead of 0…255.

As for the black screen, it’s due to an error.  You should have a terminal window open where those errors are printed out.  See:

http://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

for more information.

Rob