Firefox restarts Flash movie if enclosing DIV properties change

前端 未结 3 1548
你的背包
你的背包 2020-12-28 21:41

I have a Flash movie embedded in some DIV. The trouble is that when I change any property of the enclosing DIV dynamically, Firefox (not other browsers) restarts/reinitializ

相关标签:
3条回答
  • 2020-12-28 22:17

    see https://bugzilla.mozilla.org/show_bug.cgi?id=90268

    0 讨论(0)
  • 2020-12-28 22:40

    Yes, it seems like Firefox kills the flashes instances that are not visible. I had the same problem in Firefox 3.6.13 and Flash Player 10.2.152. I tryed with "visibility:hidden" and "position:absolute" but didn't work even with "wmode=opaque".
     
    For me the solution was setting the "wmode" to opaque, "position:absolute" and "opacity:0", but it´s not possible to set the "top" property to negative or whatever "position", "overflow" or "margin" hack. The entire movie need to have its "space reserved" in the page to avoid Firefox killing it. I needed to toggle the visibility between two flash movies with the same size, so, the solution was setting the opacity of one of them to 0 and changing their z-index properties to put forward the active one. It worked fine.

    0 讨论(0)
  • 2020-12-28 22:42

    Try hiding it with visibility:hidden or if all else fails, position:absolute;left:-9999px.

    I presume Firefox doesn't want to waste memory and CPU on Flash animation that's invisible, so it kills it.

    0 讨论(0)
提交回复
热议问题