director and ui

i am trying to implement the Facebook sample code to my app…I am using director so when I implement it on my app all my buttons become invisible but they are working …Don’t know why …Can anybody help me out .Is this just because of ui or am I doing any mistake? [import]uid: 82446 topic_id: 17235 reply_id: 317235[/import]

Normally I find it is not inserted into the group
Try to insert your object(text, button, graphic) into the group.
Add the last line for your object
sample code:
local GameGroup = display.newGroup()
localGroup:insert( GameGroup )
local box = display.newText( “You Got Higher Score”, 30, 160, native.systemFont, 18)
box:setTextColor( 255, 255, 255 )
box:setReferencePoint(display.TopLeftReferencePoint);
GameGroup:insert(box)
[import]uid: 94613 topic_id: 17235 reply_id: 65163[/import]

So does it mean that we cannot use ui as well as director at the same time in the same lua file…Is it so? [import]uid: 82446 topic_id: 17235 reply_id: 65192[/import]

I have no idea why all your buttons become invisible. I require both director.lua and ui.lua, and all my scenes have buttons (generated with ui.newButton). So, in my project, ui and director work together just fine. There must be something else going on that causes your buttons to become invisible.

Naomi [import]uid: 67217 topic_id: 17235 reply_id: 65258[/import]