Sprite Objects properties from display object dont work

Hi

I have an object on lua with 2 sprites 1 for initial art and final art.

When the object is on position a change the visible property of textures

The change don’t work even if i set both textures to false i still see the texture on screen

Can someone knows sometrhing about this?

The Build i’m using is 2012.828
if i use the build 2012.819 everything works ok

[code]
module(…, package.seeall)
require “sprite”
function new(pset1,pset2,_data)

local it=sprite.newSprite(pset1)
local ft=sprite.newSprite(pset2)
self:insert(it)
self:insert(ft)

self.initTexture=it
self.finalTexture=ft

self.finalTexture.isVisible=false
self.initTexture.isVisible=true

local function onTouch(e)
if e.phase==“began” then
display.getCurrentStage():setFocus(e.target)
e.target.parent:insert(e.target) – re insert the element to bring to front
offsetX=e.xStart-e.target.x
offsetY=e.yStart-e.target.y
end
if e.phase==“moved” then
local newX=e.x-offsetX
local newY=e.y-offsetY
if(newX>0 and newX<display.width then> self.x=newX
end
if(newY>0 and newY<display.height then> self.y=newY
end
end
if e.phase==“ended” or e.phase==“cancelled” then
e.target.alpha=1
offsetX=0
offsetY=0
display.getCurrentStage():setFocus(nil)

if(e.target.checkPosition()) then

print(“s”)

e.target.initTexture.isVisible=false
e.target.finalTexture.isVisible=true
e.target.x=e.target.data.xFinal
e.target.y=e.target.data.yFinal

e.target.inPlace=true

else
e.target.animateBackInitPosition()
end
end
end

self:addEventListener(“touch”,onTouch)



return self
end
[/code]
[import]uid: 32707 topic_id: 28043 reply_id: 328043[/import] </display.height></display.width>

I believe there was a bug in 828 regarding sprites and visibility- are you experiencing this issue in build 840? (The latest stable release.) [import]uid: 52491 topic_id: 28043 reply_id: 113481[/import]