actionscript-3buffernetstream

Flash How do flush or empty netstream buffer


I'm experiencing an issue with a 20 video Flash project. We're calling the videos from a local source, and FLVPlayback is opening netstreams and generating this huge Uncategorized chunk of memory. Upon further inspection, it turns out that it's a large amount of netstream buffers. How do I empty these buffers?

I've found this NetStream.Buffer.Empty but I'm not sure how to properly use it.


Solution

  • Instead of using close(); I used dispose(); to stop, close, and flush the NetStream buffer. Many thanks to @batman

    netStream.dispose()