Removing a FLVPlayBack Instance

Hey!

Well, remove a FLVPlayBack instance is more complicated than you can possible imagine!
If you try to remove one, just using this:
removeChild(player);
You will notice that actually the player is there, you can hear it (if it has sound, of course :P)

So, just do this:
player.getVideoPlayer(player.activeVideoPlayerIndex).close();
player.activeVideoPlayerIndex = player.activeVideoPlayerIndex + 1;
player.visibleVideoPlayerIndex = player.activeVideoPlayerIndex;

Yeap, Adobe sometimes doesn’t help us! :P

  1. longerlife says:

    Thank you so much, I have no idea hoe I would have solved this problem without this blog entry!! Keep up the good work!!

  2. Damon says:

    Dude…..Dude….DUDE….thank you. all I have to say is, Dude, I have looked on some pretty high profile sites and noone had a solutions for this…NOONE.

    Arrr i’m in debt to you. your right I’m not sure what Adobe was thinking on this one. this is just about as back door as the whole _level0 crap back in the day with AS2.

  1. There are no trackbacks for this post yet.

Leave a Reply