How do i stop this?

Did you remember to nil the call back before canceling?  That was a critical step.

Regardless, yes please post your solution so others can see it.

Cheers,

Ed

Hey so heres the code i used…

 local transOne local transTwo local function touchToStop(event) if event.phase == "ended" then transition.cancel(transTwo) -- canceled these two transitions transition.cancel(transOne) -- which actually stopped the fucntions from firing further.. hi:removeEventListener( "touch", touchToStop ) end return true end Runtime:addEventListener( "touch", touchToStop ) function moveHi1() transOne = transition.to( hi,{time=800, alpha = 0.5, onComplete=moveHi} ) end function moveHi() transTwo = transition.to( hi,{time=800, alpha = 1, onComplete=moveHi1} ) end moveHiTimerOne = timer.performWithDelay( 1, moveHi, 1 ) -- made a 1 milisecond function that only fires once..

I commented out some of the parts…

BTW everything is working so i dont think i need the nill the call back before cancelling? If i do how do i do so?..

Thanks for all -SonicX278!

I would consider using tags…

function moveHi1() transition.to( hi,{time=800, tag="moveHi" alpha = 0.5, onComplete=moveHi} ) end function moveHi() transition.to( hi,{time=800, tag="moveHi", alpha = 1, onComplete=moveHi1} ) end moveHi() \<-- stop this..

then

transition.cancel("moveHi")

Rob

Ohh thanks Rob! Never knew there was something like that(tags)

Thanks Again!

Good suggestion Rob.  That is a much cleaner and simpler solution.