transition.resume() not working

hi,

I update to build Corona Version: 2015.2692.

But transition.resume() not working.

I use Win7, and OS X(10.10.4).

If there are some mistakes in English, I’d like to apologize.

thanks.

[lua]local CW = display.contentWidth
local rect = display.newRect(0, 100, 50, 50)

local tween = transition.to(rect, {tag=“tagName”, time=2400, x=CW, iterations=-1})

timer.performWithDelay(1000,

    function()

        – “resume” working

        --transition.pause(rect)

        --transition.resume(rect)

        – “resume” not working

        transition.pause(“tagName”)

        transition.resume(“tagName”)

        – “resume” not working

        --transition.pause(tween)

        --transition.resume(tween)

        – “resume” not working

        --transition.pause()

        --transition.resume()

    end,

    -1
)[/lua]

Why would you pause and resume a transition in the same frame update? It’s very likely that the pause isn’t finished when you try to resume it.

Rob

Thank you, Rob.

I have pauseButton and ResumeButton originally.

I still have same problem.

[lua]local CW = display.contentWidth

local rect = display.newRect(0, 100, 50, 50)

transition.to(rect, {tag=“tagName”, time=2400, x=CW, iterations=-1})

local widget = require(“widget”)

local isPause = false

local function handleButtonEvent( event )

    if(“ended” == event.phase) then

        if(isPause) then

            print(“resume”)

            – “resume” not working

            transition.resume(“tagName”)

            isPause = false

        else

            print(“pause”)

            transition.pause(“tagName”)

            isPause = true

        end

    end

end

local button1 = widget.newButton{

    left = 100,

    top = 200,

    label = “Default”,

    onEvent = handleButtonEvent

}[/lua]

Also in my app I have this problem with transition.pause() and transition.resume(). With same version (2015.2692) I try standard example of transition.pause() and transition.resume() and not work.

SDK bug?
 

For now I use version 2015.2690. Work!

This is a bug in 2962. Please drop back to an older version for the time being.  A bug report has been filed. Case #42042

Rob

Why would you pause and resume a transition in the same frame update? It’s very likely that the pause isn’t finished when you try to resume it.

Rob

Thank you, Rob.

I have pauseButton and ResumeButton originally.

I still have same problem.

[lua]local CW = display.contentWidth

local rect = display.newRect(0, 100, 50, 50)

transition.to(rect, {tag=“tagName”, time=2400, x=CW, iterations=-1})

local widget = require(“widget”)

local isPause = false

local function handleButtonEvent( event )

    if(“ended” == event.phase) then

        if(isPause) then

            print(“resume”)

            – “resume” not working

            transition.resume(“tagName”)

            isPause = false

        else

            print(“pause”)

            transition.pause(“tagName”)

            isPause = true

        end

    end

end

local button1 = widget.newButton{

    left = 100,

    top = 200,

    label = “Default”,

    onEvent = handleButtonEvent

}[/lua]

Also in my app I have this problem with transition.pause() and transition.resume(). With same version (2015.2692) I try standard example of transition.pause() and transition.resume() and not work.

SDK bug?
 

For now I use version 2015.2690. Work!

This is a bug in 2962. Please drop back to an older version for the time being.  A bug report has been filed. Case #42042

Rob