Hi, Our application hosts a WebBrowser control that loads java applets and flash movies. We are having a problem where the flash move music continues to play after the web browser window is closed. The music continues to play until the main application is closed at which time an exception is generated in the flash OCX callback used by winmm.dll. We call both the ::stop and ::quit methods for the IWebBrowser2 interface before closing the browser window, but this does not top the flash movie's music. If anyone has any ideas about how to solve this issue, they would be greatly appreciated. Larry Gillstrom Senior Client-side Developer Mindspan Technologies
Larry Gillstrom wrote: > Hi, > > Our application hosts a WebBrowser control that loads java applets and flash > movies. We are having a problem where the flash move music continues to play > after the web browser window is closed. The music continues to play until > the main application is closed at which time an exception is generated in > the flash OCX callback used by winmm.dll. We call both the ::stop and > ::quit methods for the IWebBrowser2 interface before closing the browser > window, but this does not top the flash movie's music. If anyone has any > ideas about how to solve this issue, they would be greatly appreciated. > > Larry Gillstrom > Senior Client-side Developer > Mindspan Technologies We have the same problem. If you force a navigation to about:blank just before closing the webbrowser it stop the music. I'm not sure this is a good idea, since I don't know what happen behind the scene. If someone from MS is here, its easy to reproduce : - generate an mfc based MDI application with an htmlview - set the url to navigate to http://www.flashsound.com/ - close the window The problem occur with flash8. IE7 and maxthon do not have the bug, there must be something to do. Cheers. Manu
"Emmanuel" wrote in message news:1149590099.662300.246710@y43g2000cwc.googlegroups.com... > We have the same problem. If you force a navigation to about:blank just > before closing the webbrowser it stop the music. I'm not sure this is a > good idea, since I don't know what happen behind the scene. If someone > from MS is here, its easy to reproduce : > - generate an mfc based MDI application with an htmlview > - set the url to navigate to http://www.flashsound.com/ > - close the window > The problem occur with flash8. IE7 and maxthon do not have the bug, > there must be something to do. > > Cheers. > > Manu > Thanks Manu, That solution will work well enough for us. I implemented it to navigate to a page that uses some javascript in the onload event to trigger a callback to the parent window. When the parent window gets the callback it knows it is safe to close itself. Larry