Do something after flv video finishes

Hello
i have a flv video playing in a frame. i’m using the flvplayback component. i want to when the video finish to do an action. like gotoandplay(“home”) but i can’t figure how to do that.
i tried to add this code to the flvplayback instance but this didn’t worked:


on (complete) {
gotoAndPlay("home");
}

What i’m doing wrong?