hola a todos bueno e vuelto por segunda vez al foro para que me ayudasen con este problemita.
aqui adjunto la imagen del error y aqui codigo:
local storyboard = require (“storyboard”)
local scene = storyboard.newScene()
local function hregreso( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “inicio”)
print( “Button was pressed and released” )
end
return true
end
local function hbarco( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “barco”)
print( “Button was pressed and released” )
end
return true
end
local function hminecomt ( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “minecomt”)
print( “Button was pressed and released” )
end
return true
end
local function hminecart( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “minecart”)
print( “Button was pressed and released” )
end
return true
end
local function hrieles( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “rieles”)
print( “Button was pressed and released” )
end
return true
end
local function hmineimp( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “mineimp”)
print( “Button was pressed and released” )
end
return true
end
local function hrield( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “rield”)
print( “Button was pressed and released” )
end
return true
end
local function hrieli( event )
if ( “ended” == event.phase ) then
storyboard.gotoScene( “rieli”)
print( “Button was pressed and released” )
end
return true
end
function scene : createScene( event )
local group = scene.view
local background = display.newImage ( “background.gif”)
insert : ( background )
local widget = require(“widget”)
local barco = widget.newButton
{
left = 70,
top = 50,
defaultFile = “Barco.png”,
overFile =“barcoover.png”,
label ="",
onEvent = hbarco
}
insert : (barco)
local minecomt = widget.newButton
{
left = 235,
top = 50,
defaultFile = “minecartcontenedor.jpg”,
overFile =“minecartcontenedorover.jpg”,
label ="",
onEvent = hminecomt
}
insert : (minecomt)
local minecart = widget.newButton
{
left = 400,
top = 50,
defaultFile = “Minecart.jpg”,
overFile =“Minecartover.jpg”,
label ="",
onEvent = hminecart
}
insert : (minecart)
local rieles = widget.newButton
{
left = 70,
top = 150,
defaultFile = “rieles.jpg”,
overFile =“rielesover.jpg”,
label ="",
onEvent = hrieles
}
insert : (rieles)
local mineimp = widget.newButton
{
left = 70,
top = 150,
defaultFile = “minecartimpulsador.jpg”,
overFile =“minecartimpulsadorover.jpg”,
label ="",
onEvent = hmineimp
}
insert : (mineimp)
local rield = widget.newButton
{
left = 400,
top = 150,
defaultFile = “Rielesdetector.png”,
overFile =“Rielesdetectorover.png”,
label ="",
onEvent = hrield
}
insert : (rield)
local rieli = widget.newButton
{
left = 235,
top = 250,
defaultFile = “Rielesimpulsador.png”,
overFile =“Rielesimpulsadorover.png”,
label ="",
onEvent = hrieli
}
insert : (rieli)
local regresar = widget.newButton
{
left = -130,
top = -40,
defaultFile = “regresar.gif”,
overFile =“regresar.gif”,
label ="",
onEvent = hregresar
}
insert : (regresar)
local textminecart = display.newText (“Minecart”,400,95,“arial”,20)
textminecart : setFillColor ( black )
insert : (textminecart)
local textriel = display.newText (“Rieles”,70,195,“arial”,20)
textriel : setFillColor (black )
insert : (textriel)
local textmineimp = display.newText (“Minecart_Impulsador”,235,195,“arial”,20)
textmineimp : setFillColor ( black )
insert : (textmineimp)
local textrield = display.newText (“Riel_Detector”,400,195,“arial”,20)
textrield : setFillColor ( black )
insert : (textrield)
local textrieli = display.newText (“Riel_Impulsador”,235,295,“arial”,20)
textrieli : setFillColor (black )
insert : (textrieli)
local textminecomt = display.newText (“Minecart_Contenedor.” ,235,95,“arial”,20)
textminecomt : setFillColor (black)
insert : (textminecomt)
local textbarco = display.newText (“Barco”,70,95,“arial”,20)
textbarco : setFillColor ( black )
insert : (textbarco)
– body
end
function scene : enterScene( event )
– body
end
function scene : exitScene(event )
– body
end
function scene : destroyScene( event )
– body
end
scene : addEventListener( “createScene”, scene )
scene : addEventListener( “enterScene”, scene )
scene : addEventListener( “exitScene”, scene )
scene : addEventListener( “destroyScene”, scene )
return scene
ya he usado este codigo en otra parte de la aplicacion y funciona perfectamente pero aqui me da este error y no se porque espero su ayuda
SALUDOS CORDIALES