2 つの div があります。1 つの div には swf オブジェクトがあり、もう 1 つの div には表形式のデータがあります。どちらも同じページにあります。ビデオ表示テーブルのdivが非表示の場合、それらを切り替えたいと思います。テーブルの場合、ビデオのdivは非表示になります。
これは正常に機能していますが、テーブル div ビデオに切り替えると、最初から開始されます。既存のビデオを一時停止したい。
再起動せずに一時停止する方法を教えてください。
If you are hiding the div with CSS (display:none;) the SWF file will start rendering as if you are opening the page for the first time or reloading it. First try to use (visibility:hidden;) but you will have to set the position to absolute because this way will preserve div's space on the page.
If this didn't help there is a bridge between javascript in the page and SWF files where you can ask for where the video is playing now before you hide the div, store this on the page, then when you restore the div you can tell SWF to seek to the stored time.
check this as a sample for javascript/AS3 interactions: http://circlecube.com/2010/12/actionscript-as3-javascript-call-flash-to-and-from-javascript/