Type Function Library transition.* Return value none Revision 2017.3060 Keywords easing, animation, transition, tween, interpolation See also Transitions (guide)
The transition.resume()
function resumes one of the following, depending on the passed parameter:
transition.resume() transition.resume( transitionReference ) transition.resume( displayObject ) transition.resume( tagName )
The specific paused transition to resume.
DisplayObject. The display object upon which all associated transitions will be resumed.
String. The tag name; all transitions with this tag will be resumed.
-- resume all paused transitions local transition1 = transition.to( currentTarget, { time=400, y=y+100, iterations=5, tag="transTag" } ) local transition2 = transition.to( otherTarget, { time=200, y=y-200, tag="transTag" } ) -- at some point, pause all running transitions transition.pause() -- later, resume all paused transitions transition.resume()
-- resume a specific paused transition local transition1 = transition.to( currentTarget, { time=400, y=y+100, iterations=5, tag="transTag" } ) local transition2 = transition.to( otherTarget, { time=200, y=y-200, tag="transTag" } ) -- at some point, pause a specific transition transition.pause( transition1 ) -- later, resume the transition transition.resume( transition1 )
-- resume all paused transitions on a display object local transition1 = transition.to( currentTarget, { time=400, y=y+100, iterations=5, tag="transTag" } ) local transition2 = transition.to( otherTarget, { time=200, y=y-200, tag="transTag" } ) -- at some point, pause all transitions on the object 'otherTarget' transition.pause( otherTarget ) -- later, resume all transitions on the object transition.resume( otherTarget )
-- resume all paused transitions with a specific tag local transition1 = transition.to( currentTarget, { time=400, y=y+100, iterations=5, tag="transTag" } ) local transition2 = transition.to( otherTarget, { time=200, y=y-200, tag="transTag" } ) -- at some point, pause all transitions with the tag "testingTag" transition.pause( "transTag" ) -- later, resume all transitions with the tag "testingTag" transition.resume( "transTag" )