Storyboard won't work

Hi I am having a small problem in here.I am trying to switch between levels,but in level 1 (is just a test),my image isn’t displayed.I do not get any error,I just have a black screen.

Here’s the code.Please tell me if everything is allright.Thank you!

local storyboard = require "storyboard" local scene = storyboard.newScene() function scene:createScene (event) local group = self.view image = display.newImage ("Icon.png") image.x = 50 image.y = 50 group:insert (image) -- meshes,objects,etc end function scene:willEnterScene (event) local group = self.view --different properties of objects,such as physics,etc. end function scene:enterScene (event) local group = self.view --other properties,etc end function scene:exitScene (event) local group = self.view --This function is used to stop and dispose different objects,properties,etc end function scene:destroyScene (event) local group = self.view --can leave empty end scene:addEventListener ("createScene ",scene) scene:addEventListener ("willEnterScene",scene) scene:addEventListener ("enterScene",scene) scene:addEventListener ("exitScene",scene) scene:addEventListener ("destroyScene",scene)

Are you missing your:

return scene

at the bottom?

Rob

Hi Rob,

  I have added 

"return scene"

but still doesn’t work.

Can you tell me a bit more about what you’re trying to do and the structure of your code?  What lua file is this in?  What code do you have in your main.lua to goto your first scene?
 

Rob

Hi Rob,

I fixed the error.I had to slear up the code a little bit.

Are you missing your:

return scene

at the bottom?

Rob

Hi Rob,

  I have added 

"return scene"

but still doesn’t work.

Can you tell me a bit more about what you’re trying to do and the structure of your code?  What lua file is this in?  What code do you have in your main.lua to goto your first scene?
 

Rob

Hi Rob,

I fixed the error.I had to slear up the code a little bit.