I’m a newbie in Corona SDK, I been using AppLoft for a while, however,
My “main.lua” file looks like this:
local storyboard = require “storyboard”
local widget = require “widget”
onEvent = onButtonEvent
local button = widget.newButton{
label = “MyScene…”,
font = “HelveticaNeue-Bold”,
fontSize = 16,
yOffset = -2,
labelColor = { default={ 10 }, over={ 10 } },
emboss = true
}
button.x = display.contentCenterX
local onButtonEvent = function (event )
if event.phase == “release” then
print( “You pressed and released a button!” )
storyboard.gotoScene(“MyScene…”)
end
end
And my new Scene :
local storyboard = require “storyboard”
local scene = storyboard.newScene()
(yet, It’s empty)
Dos everything seem ok, asking because when I press the button, nothing happens, tell me what I did wrong pls.
And here the facebook code.
facebook.com developers section:
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
kAppId, @“app_id”,
@“http://developers.facebook.com/docs/reference/dialogs/”, @“link”,
@“http://fbrell.com/f8.jpg”, @“picture”,
@“Facebook Dialogs”, @“name”,
@“Reference Documentation”, @“caption”,
@“Using Dialogs to interact with users.”, @“description”,
nil];
[_facebook dialog:@“feed” andParams:params andDelegate:self];
So, everything ok?
Does such code even exist?
Thanks.