Storyboard Help?

I’m having trouble with the storyboard. I’m getting 2 errors for 2 different buttons. One is when I press the button to go to the store in my game, I get this error: attempt to call method “dispatchEvent” (a nil value) in function “dispatchEvent” in function “gotoScene”. This occurs on the folllowing line: storyboard.gotoScene(“store”,“fade”) Also, another line that looks just the same but goes to a different scene has this errror: attempt to concatenate global “sceneName” (a nil value) I sorta get the first one, that’s erroring with a function within the gotoScene behind the scenes in Corona, but how can I fix that? For the second error, I’m not even concatenating lol. What causes these errors, and how do I fix them?

It is not best practice to have any scenes, modules or other Corona SDK files named “store”. Corona has it’s own *.store API, and if you create any on your own, you’re going to overwrite what they have, and cause significant instability. That may be the issue here, but hard to say without code.

If you could post your code it would help in identifying what the issue(s) is/are. Also, CoronaLabs is discontinuing support of Storyboard in favor of Composer, so if you’re not too far along in your development, moving to Composer might be the best bet.

Oh ok. I renamed it “Shop” and that fixed that bug. I’m pretty far into my app development, but could change to composer, however I am on dial-up internet so doing updates is a drag, that’s why I’m sticking with storyboard.

What about the other error with concatenating “sceneName”? I’ve gotten that error before and somehow fixed it, forgot how, but I remember it was very weird. What’s this bug, and how can I fix it?

Usually that means you don’t r really have a a scene named that. Are you still getting that error?

Ohhhhh thanks lol I named it something then I renamed it something else but forgot to change the code to the same name lol :P.

Thanks so much it works fine now :D!

It is not best practice to have any scenes, modules or other Corona SDK files named “store”. Corona has it’s own *.store API, and if you create any on your own, you’re going to overwrite what they have, and cause significant instability. That may be the issue here, but hard to say without code.

If you could post your code it would help in identifying what the issue(s) is/are. Also, CoronaLabs is discontinuing support of Storyboard in favor of Composer, so if you’re not too far along in your development, moving to Composer might be the best bet.

Oh ok. I renamed it “Shop” and that fixed that bug. I’m pretty far into my app development, but could change to composer, however I am on dial-up internet so doing updates is a drag, that’s why I’m sticking with storyboard.

What about the other error with concatenating “sceneName”? I’ve gotten that error before and somehow fixed it, forgot how, but I remember it was very weird. What’s this bug, and how can I fix it?

Usually that means you don’t r really have a a scene named that. Are you still getting that error?

Ohhhhh thanks lol I named it something then I renamed it something else but forgot to change the code to the same name lol :P.

Thanks so much it works fine now :D!