Friday, April 15, 2011

Hiding a Flash component in a page

I was scratching my head over this one for a while. I tried putting a Flash component in a DIV and then set the Display: none

This usually works. But not for Flash.

Long story short. The solution I found set is to set either height: 0px or width: 0px.

You may also need to set the overflow: hidden

<div style:"height: 0px; overflow: hidden>Flash thingy goes here</div>

Then when I want to display it I set the width/height via client side script.

No comments:

Post a Comment