insert display object in table view and scope to it [SOLVED]

Dear corona people,

Im trying to insert display objects (gridstone) into a table using:

[lua]local gridstone = display.newImageRect(imageArray[randomNumber], (baseWidth * scaleFactor), (baseHeight * scaleFactorY))
gridstone:setReferencePoint(display.TopLeftReferencePoint);
gameholder:insert(gridstone, true);

gridstone.name = “gridstone_”…i…"_"…j;
gridstone.sort = randomNumber;

gridstone.row = i
gridstone.column = j;

– Add listener to background for user “tap”
gridstone:addEventListener( “tap”, listener )

gridstone.x = xPos;
gridstone.y = yPos;

if (iCounter<1) then
table.insert(xArray, xPos);
end

xPos = xPos + (baseWidth * scaleFactor);
jCounter = jCounter + 1;

table.insert(visibleArray[activeArray], gridstone);[/lua]

But if i’m trying to get the object back grom the array, im getiing a hexa value:

[lua]listener = function(event)
rint(visibleArray[activeArray][0]); – gives a value of: 0x309dd20

end[/lua]

Can somebody get it scoped to the display object?

Thanks already.

it was a array index problem! starting with 1 instead of 0 [import]uid: 10863 topic_id: 15493 reply_id: 315493[/import]