swfobject 2.1 & greybox, overlay not transparent

24 views
Skip to first unread message

P+sGuy

unread,
Mar 31, 2009, 8:31:40 PM3/31/09
to SWFObject
Has anyone recently tried using swfobject with greybox? I have .swf in
the main html page. Clicking the .swf lauches a greybox overlay. I'm
using greybox to put a html form in a shadowbox overlay that goes over
the .swf. The greybox overlay is not transparent. It's 100% opaque.
I've played with the z-index & wmode but so far no success.

My html & swfobject codes looks like this.

<script type="text/javascript">
var GB_ROOT_DIR = "./greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" />


<script type="text/javascript">
function greyBoxOverlay() {
GB_showCenter("", "form.aspx", 450, 430);
}
</script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.menu = "false";
params.quality = "best";
params.wmode = "transparent";
var attributes = {};

swfobject.embedSWF("content.swf", "flashcontent", "950", "851",
"9.0.0", false, flashvars, params, attributes);
</script>
</head>
<body>


<div id="flashcontent">
<strong>You need to upgrade your Flash Player<br/><a href="http://
www.adobe.com/products/flashplayer/">Get the flash player here.</a></
strong>
</div>

Sam Sherlock

unread,
Mar 31, 2009, 9:52:04 PM3/31/09
to swfo...@googlegroups.com
Are you sure that this is due to the use of swfobject?  And that this is not a greybox issue - does altering your code to not use swfobject result in transparent overlay

To me everything in your question points to greybox not swfobject being the culprit.

Have you posted this issue to the greybox list?

- S


2009/4/1 P+sGuy <partners...@gmail.com>

P+sGuy

unread,
Mar 31, 2009, 11:19:51 PM3/31/09
to SWFObject
Thanks for the response Sherlock,

I looked thru google groups for swfobject & greybox and I haven't been
able to find a solution. Once thing I did while debugging was to
replace the flash w/ a .jpg image of the flash .swf and the
transparency worked. So...the no transparency issue appears to be
caused by flash/swfobject.

P



On Mar 31, 9:52 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> Are you sure that this is due to the use of swfobject? And that this is not
> a greybox issue - does altering your code to not use swfobject result in
> transparent overlay
>
> To me everything in your question points to greybox not swfobject being the
> culprit.
>
> Have you posted this issue to the greybox list?
>
> - S
>
> 2009/4/1 P+sGuy <partnersandsim...@gmail.com>

Sam Sherlock

unread,
Apr 1, 2009, 6:47:54 AM4/1/09
to swfo...@googlegroups.com
Is there a link to see this?  Setting up the various bits would take to long - also something relevant may be omitted in your code snippets.

I google'd around for others trying the same - but I only found people trying the inverse  of what your doing.  Really I would have thought that the issue would be integrating it, and that only  trial and error, having got this far this sounds like a real left field annoyance :)

- S

P+sGuy

unread,
Apr 1, 2009, 3:06:11 PM4/1/09
to SWFObject
Sherlock,

After further discovery this issue now is the flash being ignored or
becoming a white space when greybox overlays it with the html form. I
have a .gif image in the div that swfojbect replaces w/ the flash
content. if a visitor does not have the flash player the .gif is
displayed instead. the overlay has transparency over the .gif image.
the greybox overlay behaves like it's seeing the .swf as pure white or
just ignoring it. the only content on the page is in the .swf file so
originally it looked like the overlay was being opaque.

i have tried wmode in transparent and opaque with no success. i've
tried static publishing and dynamic publishing. i even tried
publishing the flash from the default publishing and using
AC_RunActiveContent.js.

Sam Sherlock

unread,
Apr 1, 2009, 3:49:15 PM4/1/09
to swfo...@googlegroups.com
Perhaps you can archive your files and send them to me via yousendit.com - put a simple fla if you like just enough to test you example  - or provide  a link (I like tackling other issue when my own have stalled changing focus of mind helps sometimes) - or (this is less likey) I may have time to try it out for myself, but that means starting from scratch (link || ysi) or files makes it more likely

also BTW my first name is Sam :)

- S


2009/4/1 P+sGuy <partners...@gmail.com>
r further discovery this issue now is the flash being ignored or

P+sGuy

unread,
Apr 1, 2009, 4:10:46 PM4/1/09
to SWFObject
Sam,

Here's the link,
http://uhlpcdebate.dev.partnersandsimons.com/index.html



On Apr 1, 3:49 pm, Sam Sherlock <sam.sherl...@gmail.com> wrote:
> Perhaps you can archive your files and send them to me via yousendit.com -
> put a simple fla if you like just enough to test you example - or provide
> a link (I like tackling other issue when my own have stalled changing focus
> of mind helps sometimes) - or (this is less likey) I may have time to try it
> out for myself, but that means starting from scratch (link || ysi) or files
> makes it more likely
>
> also BTW my first name is Sam :)
>
> - S
>
> 2009/4/1 P+sGuy <partnersandsim...@gmail.com>
Reply all
Reply to author
Forward
0 new messages