hi,
The event is triggered by a “touch” Event Listener, and would lead the object’s alpha = 0. Then i want to remove it, but it doesn’t work. would appreciate help in correcting the code
thx
[code]
local fade = function( event )
local phase = event.phase
if “began” == phase then
for i = 1,4 do
transition.to(Rect[i], {time=1000, alpha=0})
if Rect[i].alpha==0 then
Rect[i]:removeSelf() – destroy Rect
end
end
end
end
[/code] [import]uid: 10542 topic_id: 3798 reply_id: 303798[/import]
[import]uid: 10542 topic_id: 3798 reply_id: 11588[/import]