Hide() and flash object

Hide() and flash object

Hello

I use a flash uploader in my web application : plupload.
This uploader use flash or silverlight, and I use the flash plugin(requirement from hierarchy).

In our new design, we use hide, show and slideToggle function to display or not the upload div.

The problem is when I do that : (just in IE 7 or 8, we don't support 6)
1 : show() the div with flash object
2 : use the flash object
3 : hide() the div
4 : show the div again
5 : javascript error when I try to use my flash object again.

The plupload developper said that the property display :none break the link between browser and flash or silverlight object(a way to save ressources it seems). So when you open it again, you get no way to come back to your previous state for the flash object. so you get a javascript error.

I'm not a flash dev, (and the one I know seems to agree with him on that point)

The solution would be to change display:none by 3 css attributes :
visibility:hidden;
position:absolute;
left: 10000;

I tried to find how to do that with the jquery code, but it seems I ave to rewrite all methods, do you think there is another way ? They are complex(more than 4 or 5 lines) and I'm not a guy who like to change a framework.

Do you have any Idea ? Maybe another method from someone else ?

Thanks
Pierre