I have a scene (overlay.ccscene), whose display component ( just a rectangle) is designed using the new composer-gui. The corresponding lua file ( i.e, overlay.lua) has the following reference to the rectangle --> local rect1 = self:getObjectByTag(“Rect”) .
When this scene is called from any other scene using “composer.gotoScene”, it works perfectly fine, however, if this ( i.e, overlay.lua) is called using “composer.showOverlay” , the line with “getObjectByTag” throws an error.
<error message pasted below>
File:?
Attempt to get length of field ‘_objects’ (a nil value)
stack traceback:
?: in function ‘getObjectByTag’
overlay.lua:41: in function <overlay.lua:25>
…
Just wondering if anyone else faced an issue while trying to access a “COMPOSER-GUI” generated scene through “showOverlay” method? Thank you.
Reference : Corona daily build 2014.2368 (2014.7.11) / OSX 10.9.3