I've seen similar questions asked a dozen times and all answered the same way, but it appears that my situation is unique.
I have a .NET page with a Panel that I show/hide with link clicks. This Panel contains an <embed> flash video.
I have the video autostarting, but when I click the "close panel" link, the panel closes and the video continues to play! What I really want is for the video to STOP and THEN have the panel hide.
The way we do the panel hiding is via javascript, which simply reset the style.display of hte panel element. Then it does a "return false" to prevent the postback.
I've found numerous ways to access and control the flash object via javascript, but if I add those calls to the beginning of my "hidePanel" function, they do not do anything.
I created a separate stopFlashMovie() javascript function and it works, but only if I do NOT "return false" at the end. Unfortunately, if I do not "return false", the page posts back and, because of some fancy URL-rewriting (
SEO crap I do NOT understand), the page redirects to some other place that I do NOT want.
It seems as if hte "return false" is somehow preventing the StopPlay() flash method from working.
Did this make enough sense for someone to maybe understand my dilemma and suggest a solution!???
Thanks!