First object crashes during transition.to

I have a small game with objects moving on the screen and the first object created does not get the onComplete event, anyone knows if this is a bug or am I the bug?

[lua]local crate
crate = display.newImage( “images/superninja.png” )
crate.x = xStart
crate.y = ninjaStartY
crate.myName = “ninja”
crate.alpha = 0.1

local crateTrans = transition.to(crate, { time=math.random(500,1000),alpha=1 ,x=crate.x, y=(ninjaStartY-math.random(300)),onComplete=fireStar})[/lua]

The first superninja named crate in the code above never gets to the fireStar eventhandler but everyone after the first does, why? [import]uid: 22737 topic_id: 6324 reply_id: 306324[/import]

because you overwrite “crate”? [import]uid: 6645 topic_id: 6324 reply_id: 21939[/import]

Hey Jmp909
Thanks for the reply. Yes it seem to work now but now I ended up with another problem. I am shooting up small ninja warriors from the button to the top and I do not want them to collide with each other but I need them to have physics so that they fall according to gravity.

[import]uid: 22737 topic_id: 6324 reply_id: 21987[/import]