Read this post first:
http://blog.code-head.com/detecting-the-end-of-flv-stream-in-actionscript-3
Funny today, I get the events in reverse order:
NetStream.Buffer.Empty
NetStream.Buffer.Flush
Yesterday it was:
NetStream.Buffer.Flush
NetStream.Buffer.Empty
I will find the solution though
Hamid Alipour is a partner in Codehead, LLP with his wife, Tess. Hamid speaks 12 markup and programming languages [Yes, 12: PHP, CSS, Ajax, JavaScript, HTML/XHTML, Java, Python, C/C++, ASP, Visual Basic, Scheme and Action Script]; has a penchant for solving the unsolvable; an affinity for clean, hand-written code and is a Zend Certified 
Did you happen to install Flash 10?
Comment
Not yet, I will today, why? Did they break code?
Comment
You would figure that they think it’s OK to mess with the event order because there’s a reliable event to detect the end. Alas, there isn’t. So, I have no clue why they keep messing it up.
Comment
From what I can see, there is no mark at the end of FLVs so the player doesn’t really know when it’s finished but Flash server (red5 etc.) sends the duration and you can access it through onMetaHandler which is what I ended up using.
Comment