Hello everyone , Greetings from Egypt
so I wrote this Piece of code for Multi scene app using Storyboard API
::::
local storyboard = require “storyboard”
storyboard.purgeOnSceneChange=true;
– display settings
display.setStatusBar(display.HiddenStatusBar);
– global vars
cX=display.contentCenterX
cY=display.contentCenterY
sLeft=display.screenOriginX
sWidth=display.contentWidth-sLeft*2;
sright=sLeft+sWidth;
sTop=display.screenOriginY
sHeight=display.contentHeight-sTop*2;
sBottom=sTop+sHeight;
display.contentWidth=sWidth;
display.contentHeight=sHeight;
–
–some Constants
defaultTransition=“flip”;
color={200,200,200};
– functions used in whole app
function displaybg(grp)
– body
local bg
bg=display.newRect(sLeft,sTop,sWidth,sHeight)
bg:setFillColor(color);
grp:insert(bg);
return bg
end
– load scenetemplate.lua
storyboard.gotoScene( “menu” )
------------------------------------ and every time
I launch it , it give me this Error O.o
please anyone knows a solution to this unknown Prb , write it to me
thnx in advance