Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox restarts Flash movie if enclosing DIV properties change

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/reinitializes Flash movie effectively resetting the whole progress (eg: file selection for upload, etc.).

Is there some sort of a workaround for this?

like image 353
user38511 Avatar asked Nov 18 '08 10:11

user38511


1 Answers

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.

like image 148
Kornel Avatar answered Nov 14 '22 05:11

Kornel