문제

I need when a movie clip ends or reach to an x frame or label start a function. How could i do it?

I tried this and some other codes:

if (PresentacionVideo.currentFrame("fin"))
    {
        trace("Termino Animacion");
        stage.removeChild(PresentacionVideo);
        stage.addEventListener(Event.ENTER_FRAME,Update);
    }

But its not working, it says:

TypeError: Error #1006: value is not a function.

Can anyone help me? Thanks. And sorry for my english

도움이 되었습니까?

해결책

Try this,

if (PresentacionVideo.currentFrameLabel == "fin")
        {
            trace("Termino Animacion");
            stage.removeChild(PresentacionVideo);
            stage.addEventListener(Event.ENTER_FRAME,Update);
        }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top