FORUMS: list search recent posts

flv buffering movie

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
gschmidt2662
flv buffering movie
on Jan 13, 2007 at 3:04:59 am

I'm using the FLV Playback Player 8 that comes with Flash 8 and am trying to create a movie that will play while the flv buffers, and then goes away when the flv starts.
Because the FLV Player has it's own parameters for designating the content path for my flv file, I am not using an ActionScript NetConnection, which seems to hinder my ability to have a movie stop playing when my flv is finished buffering...
I tried using this actionscript in my movie clip that holds my FLV Player, but with no luck.

ns.onStatus = function(info) {
if(info.code == "NetStream.Buffer.Full") {
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty") {
bufferClip._visible = true;
}
}


Any ideas would be most appreciated.
thanks-



Return to posts index

Sher Ali
Re: flv buffering movie
on Jan 13, 2007 at 5:11:05 am

You can achieve the same effect using the buffering property of the FLVPlayback class. the following code will do this, for a FLVPlayback component name flvItem placed on the main timeline and the code is attached to a keyframe on the main timeline:

flvItem.contentPath = "path_to_flv_video_file";
flvItem.bufferTime = 10;
this.onEnterFrame = function(){
if(flvItem.buffering){
bufferClip._visible = true;
}else{
bufferClip._visible = false;
}
}



------------------------
Sher Ali
http://www.webeyestudio.com


Return to posts index

GooMedia
Re: flv buffering movie
on Jan 13, 2007 at 5:06:56 pm

On the oder hand...
How it was done? I refer to the load of movies; are flvs??
Thank you.
Sorry my english



Return to posts index


gschmidt
Re: flv buffering movie
on Jan 13, 2007 at 8:35:29 pm

yes - they are flv movies.

Sher's advice works great.



Return to posts index

gschmidt
Re: flv buffering movie
on Jan 13, 2007 at 8:34:29 pm

Sher-

thank you - this is definitely helping. I have to keep the actionscript and the bufferClip within the movie that contains the FLV player, because that movie is needed on the main timeline for a reflection video, which won't work unless the FLV player is contained within a movie clip.





Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]