Hi everybody!
An error occurs (in the efDashboard:create function) with the xReference attribute (return nil value) of one of my view since I’m building my app with the Graphics 1.0 Compatibility Mode. Here’s the code :
function efRevCounter:create(posX,posY) self.view = display.newGroup() self.view:setReferencePoint(display.CenterReferencePoint) self.view.x = posX self.view.y = posY end
function efDashboard:create() self.view = display.newGroup() self.revCounter = require("efRevCounter") self.revCounter:create(display.contentWidth/2,display.contentHeight-90) local rcx,rcy = self.revCounter.view.xReference,self.revCounter.view.yReference -- The error occurs here! because xReference and yReference are both nil! self.indicL = newDashLight(self.revCounter.view,"dash\_indicL",rcx - 42,rcy + 5,true) end
Do you think I’m experiencing this issue cause of the compatibility mode? If so, is there any way to change the code to do the same or is it something else ?
Thank you,
Regards,
Laurent