Question

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

Was it helpful?

Solution

Try this,

if (PresentacionVideo.currentFrameLabel == "fin")
        {
            trace("Termino Animacion");
            stage.removeChild(PresentacionVideo);
            stage.addEventListener(Event.ENTER_FRAME,Update);
        }
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top