xReference with Graphics 1.0 Compatibility Mode

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

Anyone would have an idea ?

It looks like I can’t use xReference/yReference with 1.0 compatibility mode and anchorX/anchorY either… The thing is my app is really heavy now, migrating to 2.0 mode is not worth considering…

Any way to get round xReference/yReference without migrating to 2.0 mode ?

G1 uses ReferencePoints, G2 use AnchorPoints. The two do not combine. You will need to migrate.

Rob

Anyone would have an idea ?

It looks like I can’t use xReference/yReference with 1.0 compatibility mode and anchorX/anchorY either… The thing is my app is really heavy now, migrating to 2.0 mode is not worth considering…

Any way to get round xReference/yReference without migrating to 2.0 mode ?

G1 uses ReferencePoints, G2 use AnchorPoints. The two do not combine. You will need to migrate.

Rob