transition.resume()

Type Function
Library transition.*
Return value none
Revision Release 2024.3703
Keywords easing, animation, transition, tween, interpolation
See also Transitions (guide)

Overview

The transition.resume() function resumes one of the following, depending on the passed parameter:

Syntax

transition.resume()
transition.resume( transitionReference )
transition.resume( displayObject )
transition.resume( tagName )
transitionReference (optional)

The specific paused transition to resume.

displayObject (optional)

DisplayObject. The display object upon which all associated transitions will be resumed.

tagName (optional)

String. The tag name; all transitions with this tag will be resumed.

Examples

-- 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" )