swfobject replaces the target <div> with an <object>
this:
<div id="myflashgoeshere"></div>
becomes
<object id="myflashgoeshere" width="" height="" etc...>
<param />
</object>
so if you want to use visibility:hidden you need to ensure you truly keep a
'wrapper' div:
this:
<div id="mywrapper">
<div id="myflashgoeshere"></div>
</div>
becomes
<div id="mywrapper">
<object id="myflashgoeshere" width="" height="" etc...>
<param />
</object>
</div>
be aware that visibility:hidden may produce different effects on SWFs/Flash
Player depending on the browser.
see http://pipwerks.com/lab/swfobject/hide-swf/2.0/index.html
- philip
On Thu, Aug 27, 2009 at 12:06 PM, dude <[email protected]> wrote:
> Hi,
> I'm also new to SWFOBJECT, so this is just a random idea. Have you tried
> setting the "wmode" param to "transparent" in your embedding code?
>
> Wayne
>
> On Sun, Aug 23, 2009 at 5:18 PM, AlexM <[email protected]> wrote:
>
>>
>> Hi. Just started using SWFObject. Fantastic. But I'm having one
>> problem: I want to set the DIV that surrounds the embedded SWF with
>> the style "visibility: hidden;". Before I started using SWFObject,
>> this worked fine. Now, the "visibility" setting seems to have no
>> impact at all. I thought that maybe SWFObject overrode that when it re-
>> wrote the containing DIV, so I tried puting another DIV around that
>> and setting *its* visibility to "hidden." Amazingly, that didn't work
>> either. If I use SWFObject, the SWF ALWAYS ends up being visible, no
>> matter what I do.
>>
>> What am I missing here?
>>
>> Thanks.
>>
>> Alex
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---