transition.cancel( ) Effects other transtions

Hello,

I was wondering how I could keep transition.cancel() from effecting other transitions. a condition is met this transition.cancel() runs and cancels all other trasition effects. Below is the code I would like to only cancel (inputBgBlink) used on the display object ( inputBg ). 

local function listener1( inputBg )

    local inputBgCancel = transition.cancel( inputBgBlink )

        

end

Thanks

The answer to this question is in the docs…

https://docs.coronalabs.com/api/

Cancel the specific transitionReference  in question or use tags and cancel the tagName .

local t1 = transition.to( square, { time=1500, alpha=0, x=(w-50), y=(h-50), onComplete=listener1 } ) local t2 = transition.to( square, { time=500, delay=2500, alpha=1.0, onComplete=listener2 } ) transition.cancel(t2)

transition.to( square, { time=1500, alpha=0, x=(w-50), y=(h-50), onComplete=listener1, tag = "billy" } ) transition.to( square, { time=500, delay=2500, alpha=1.0, onComplete=listener2, tag = "bob" } ) transition.cancel("bob")

Holy cow! The answer was right there and I missed it. It works fine now. 

Thanks! :smiley:

The answer to this question is in the docs…

https://docs.coronalabs.com/api/

Cancel the specific transitionReference  in question or use tags and cancel the tagName .

local t1 = transition.to( square, { time=1500, alpha=0, x=(w-50), y=(h-50), onComplete=listener1 } ) local t2 = transition.to( square, { time=500, delay=2500, alpha=1.0, onComplete=listener2 } ) transition.cancel(t2)

transition.to( square, { time=1500, alpha=0, x=(w-50), y=(h-50), onComplete=listener1, tag = "billy" } ) transition.to( square, { time=500, delay=2500, alpha=1.0, onComplete=listener2, tag = "bob" } ) transition.cancel("bob")

Holy cow! The answer was right there and I missed it. It works fine now. 

Thanks! :smiley: