Flash may be single threaded in terms of ActionScript code execution, but when you call something to load, Flash doesn't stay locked down on the load, it continues to give a slice of its processing to multiple operations, one at a time, stepping through a list of active processes. It even "idles" for a few milliseconds and then begins the entire process over again, executing code in each movieclip, main timeline, load processes, drawing the screen, breathe and repeat (not necessarily in that order). All net operations are handled asynchronously, you start it and either check back later if its done or listen for an event. So in theory if you had multiple NetStream instances, you could begin loading a video in each one, then attach the stream to the Video instance when you want to actually view it. I wouldn't necessarily attempt to do to many simultaneously, but if you are doing progressive flv you could monitor when the first one has finished loading (not playing) and begin loading the next video assuming you can anticipate the play order. I haven't done this myself, but in theory its plausible and perhaps the only way to do what you want to do.
Sincerely Mark R. Jonkman ----- Original Message ----- From: "bharat_00001" <bharat_00...@yahoo.com> To: flexcoders@yahoogroups.com Sent: Thursday, May 28, 2009 2:20:21 PM GMT -05:00 US/Canada Eastern Subject: [flexcoders] Re: Successive Videos Display Thanks for the suggestion. I have a bit of confusion. What do you mean by "load the next one when while one is playing". ActionScript isn't multiothreaded. How can it load the next and play the current at the same time. Or did I not follow whatyou said correctly? - In flexcoders@yahoogroups.com, Manish Jethani <manish.jeth...@...> wrote: On Wed, May 27, 2009 at 6:20 PM, bharat_00001 <bharat_00...@...> wrote: > My app needs to play multiple videos in succession. Can anyone guide on a > good way to buffer the next video while current one is playing? Perhaps a good way to do this would be to create multiple VideoDisplay instances with the autoPlay property set to false. Then you call load() on the next one in the queue while the current one is playing. When the current one finishes, you swap the new one in place and call play() on it (and load the next one). Manish ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links