Hi
Here is the code I have “cut & pasted” out of the manual into the text editor.
local textObject = display.newText( “HELLO World!”, 50, 50, nil, 24 )
textObject:setTextColor( 255,255,0 )
local button = display.newImage( “button.png” )
button.x = display.contentWidth / 2
button.y = display.contentHeight - 50
the Hello World works but the button part does not… the first couple of time I ran it … tried to give me to something but it was all broken up all over the simulator … later attempts just gives me the Hello World and nothing new.
In the Terminal I get this error:
WARNING: Cannot create path for resource file ‘button.png’. File does not exist.
WARNING: Failed to find image(button.png)
Runtime error
assertion failed!
stack traceback:
[C]: ?
[C]: in function ‘assert’
?: in function <?:518>
(tail call): ?
/Users/thomas/Desktop/main.lua:3: in main chunk
Runtime error: assertion failed!
stack traceback:
[C]: ?
[C]: in function ‘assert’
?: in function <?:518>
(tail call): ?
/Users/thomas/Desktop/main.lua:3: in main chunk
I thought that maybe the iOS-sdk wasn’t fully loaded so I reinstalled that again thinking the button was coming from there. This did not help!
I’m still boggled as to where iOS-sdk is on the computer as I don’t see it in the Applications Folder.
But yes I not just downloading it…I do install it “successfully” just don’t know were it ends up …So if I have to launch it …best tell me where I mint look to find it … Kindly
Regards
Thomas
[import]uid: 17865 topic_id: 5214 reply_id: 305214[/import]