Archive for June, 2009

Removing a FLVPlayBack Instance

Posted in General on June 29th, 2009 by Sandro Haag – 2 Comments

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