Ah, ok. In that case, you do need some CSS to render correctly. Check out
FAQ #1:
http://code.google.com/p/swfobject/wiki/faq

(wasn't paying attention to the w / h in your code)


Aran



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of hal0gical
Sent: Monday, 24 November 2008 2:12 PM
To: SWFObject
Subject: Re: Issues with embedSWF with container divs.


Aran, thanks for getting back to me.

I agree'd with your comment and was quite puzzled, so I stripped
everything down to bare bones, no styles at all.

Upon further investigation, the div containers are not the issue.

The issue seems be arising from the width and height parameters being
set at 100% in the embedSWF function.

The flash file in this case is built to span across the entire browser
no matter what size, so needs to be 100%.

Any suggestions?

On Nov 23, 6:47 pm, "Aran Rhee" <[EMAIL PROTECTED]> wrote:
> Ray.
>
> There should be no issues targeting any nested DIVs. Are you sure you
don't
> have some CSS styling on the container DIV which is causing the error in
> display? Try removing all styling code and see if that works.
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
>
> Behalf Of hal0gical
> Sent: Monday, 24 November 2008 11:59 AM
> To: SWFObject
> Subject: Issues with embedSWF with container divs.
>
> Hey,
>
> I'm having an issue embedding my swf into a div that's inside of
> another div. If the div is just in the body it works fine.
>
> Example:
>
> HTML:
>
> <div id="flashContent">
>      <a href="http://www.adobe.com/go/getflashplayer";>
>           <img src="http://www.adobe.com/images/shared/
> download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
>      </a>
> </div>
>
> JS:
>
> swfobject.embedSWF("flash/homepage.swf", "flashContent", "100%",
> "100%", "9.0.28", "expressInstall.swf", flashvars, params,
> attributes);
>
> That works just fine. Now, if I put the flashContent inside of a
> container div..
>
> HTML:
>
> <div id="container">
>      <div id="flashContent">
>           <a href="http://www.adobe.com/go/getflashplayer";>
>                <img src="http://www.adobe.com/images/shared/
> download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
>           </a>
>      </div>
> </div>
>
> JS:
>
> swfobject.embedSWF("flash/homepage.swf", "flashContent", "100%",
> "100%", "9.0.28", "expressInstall.swf", flashvars, params,
> attributes);
>
> All I get is a black screen. Right clicking shows no flash content.
> Any ideas?
>
> Thanks,
> Ray



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to