What am I doing wrong?
My code is as follow:
local widget = require “widget”
function PlayButtonDisp()
local ix,iy,iz = 50,110,1
local filename = “C:/PlayButton.png”
local options =
{
width = ix,
height = iy,
numFrames = iz
}
local PlayButtonSheet = graphics.newImageSheet( filename, options )
local PlayButton = widget.newButton{
id = “PlayBtn”,
sheet = PlayButtonSheet,
left = 250 * SFx + SOSx,
top = 10 * SFx + SOSx,
label = “Play”,
width = 50, height = 110,
cornerRadius = 8,
onEvent = onPlayButtonEvent
}
end
I get a message: WARNING: Failed to find image(C:/PlayButton.png)
I have tried every combination of file names and locations without success!