My experience is that you can't close the default vp (video player) in an
FLVPlayback instance, so you *never* use it. What were they thinking?!

Before you load a video, you set the vp index to whatever you want, just not
zero!

myflv.activeVideoPlayerIndex = 1
myflv.source ="hippo.flv"

Then when you're done...
myflv.closeVideoPlayer(1);

When working with active indexes, i find this page incredibly useful to find
out what FLVPlayback properties are affected by activeVideoPlayerIndex...
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/video/FLVPlayback.html#activeVideoPlayerIndex


On your side note ("I can't find anything in the docs on adding new
instances of VideoPlayer Class"), you don't have to do anything to "add a
new instance", all you do is set the flvplayback's activeVideoPlayerIndex to
a new number, and it's ready to load a new vid. If you want to see that new
vid, set the visibleVideoPlayerIndex to the same number.

cheers

chichilatte

On 23 March 2010 09:13, Andrew Kenward <a...@milkybrain.co.uk> wrote:

> Hi David
>
> when you .close() the connection to the netstream object/video it stops the
> download and you lose the connection. I would also remove it from the
> displaylist. If you then want to go back to that same video after using
> .close() then you have to make a new connection to the video. So reload the
> videoplayer basically. Depending on the users browser it may continue to
> download the progressive video from the browser cache. If you have safari
> browser try looking at the activity window in the windows drop down menu. It
> should show you whats being downloaded on the page.
>
> Andy
>
> Andrew Kenward
> a...@milkybrain.co.uk
> www.milkybrain.co.uk
> 07590 609 554
>
> On 22 Mar 2010, at 19:59, flashcoders-requ...@chattyfig.figleaf.com wrote:
>
> > [Flashcoders] flv stop loading / close netconnection
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to