SWFFit displays SWFObject alternate content improperly

4 views
Skip to first unread message

Elaine

unread,
Nov 9, 2009, 2:30:57 AM11/9/09
to SWFFit
First of all, swffit is great! I'm very stoked that I found it.

I'm using swffit with swfobject. I noticed that when swffit is active,
swfobject's alternate content gets pushed halfway off the screen. (The
top-center of the div ends up at the top-left of the browser.) Any
idea why? Changing the CSS doesn't seem to affect the div placement,
but if I disable swffit, the DIV is displayed properly (top-center in
the browser).

Thank for any insight,

Elaine.

Miller Medeiros

unread,
Nov 9, 2009, 11:38:13 AM11/9/09
to swf...@googlegroups.com
this should only happen if you set a maximum size..

to fix it set the div position to relative.. like:

#my_flash{position:relative}

another way of fixing it is making a custom detection and only enabling swffit if the user have flash installed like:

if (swfobject.hasFlashPlayerVersion("9.0")) {
  swffit.fit("my_flash");
}

maybe I will make swffit detect if the user has the desired flash version before enabling it on the next version..

good luck!

--
Miller Medeiros  |  www.millermedeiros.com


2009/11/9 Elaine <lain...@gmail.com>

A. Elaine Van Der Wall

unread,
Nov 9, 2009, 10:14:06 PM11/9/09
to swf...@googlegroups.com
That's a wonderful idea -- thank you! (And thanks for the fast response too.)

After experimenting a bit, I was also able to work around it like this:

#myFlash {
    position:absolute;
    left:25%;
    width:50%;
}

...though this doesn't really work if you need the width to be X number of pixels wide, so I think I'll try the if(swfobject) route.

Thanks again!

Elaine.
Reply all
Reply to author
Forward
0 new messages