How to remove flash component completely in IE?
===

We are developing a flex component, which will appear only after user login. Now the problem is am using 

    if ($('#flashComponentId').length > 0) 
        $('#flashComponentId').remove();
to remove the flash component completely from the page. This is working perfectly fine in all browsers `except IE` . I cant remove the parent div of the flash component as it has included other child divs. So how can i do remove the component completely in IE?