Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthoridealord
    • CommentTimeJan 30th 2007
     
    Hi, I recognize that this is not a SWFObject condition, however the great guys at the FMS list pointed out to me that you guys had a similar problem. I've been searching the list archives and couldn't find a reference immediately.

    /////

    I've been working around some strange errors in NetStream codes (InvalidArg) which prevents seeks from working sometimes and now I've created a player that just will not stop playing the stream until the complete browser - every window - it's in a child window - is closed.
    I'm closing 3 windows to get the stream to stop playing.

    What can I do to insure that a browser window close will shut down the stream? I've created destroy methods in my AS but they don't seem to be getting called at least as long as the parent window is open. The player is in a child window.

    Thanks for any suggestions...

    Jeff
    • CommentAuthorGeoff
    • CommentTimeJan 30th 2007 edited
     
    This was a problem introduced with Flash Player 8 and when using external interface. IE was not releasing the plugin properly when the window was closed (or when navigating to a new page).

    There is some code built into swfobject that should be fixing this issue, so just by using swfobject to embed your content will fix your problem... flash player 9 includes some code to 'fix' this issue that was based on the fix i put into swfobject, but they implemented it wrong, so swfobject also removes that code and replaces it with a working version.

    There's a blog post on the subject here, but it's old so the code might have been changed since I posted it:
    http://blog.deconcept.com/2006/05/18/flash-player-bug-streaming-content-innerhtml-ie/
    • CommentAuthoridealord
    • CommentTimeJan 31st 2007
     
    Thanks Geoff! That was exactly our issue and the fix I got in place last night looks just like what I had to do (somebody on the FlashCoders list reminded me to use a JS onunload function - which I was already doing, but from a nested innerHTML DIV that was not getting called. I put it higher up and that calls my NetStream closes, etc. deletes). That was some brilliant trouble-shooting on your part, btw...