Did you look at FAQ #1 properly? You code only seems to be styling the body
tag, where as you really need to be styling your swf object too:

 

<style type="text/css" media="screen">

  html, body, #myAlternativeContent { height:100%; }

  body { margin:0; padding:0; overflow:hidden; }

</style>

 

 

You can also check out:

http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_dynamic_fullbro
wserflash.html

 

Which works in all browsers. You can see that there is an extra parent div
which gets the 100% styling, and the swf will fill that space.

 

Cheers,

Aran

 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Sam Sherlock
Sent: Friday, 10 October 2008 8:15 AM
To: [email protected]
Subject: Re: SWF Obj 2 not working in FF 3.0.3

 

I find that percentages cause some issues - possible but more complex, fixed
pixel easy :)

2008/10/9 bunch <[EMAIL PROTECTED]>


Thanks. I dont know if its right but I played around more and got it
work! It's full screen now in IE and FF. I took out the percent for
the height like you said in the CSS and changed to pixels. But also
took out the width completely.

body {height:600px; margin:0px; padding: 0px}



On Oct 9, 2:01 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> what are you trying to achieve?
>
> if your trying to set css when swfObject is embedding content then you can
> use
> swfobject.createCSS(selStr,
declStr)http://code.google.com/p/swfobject/wiki/api
>

> 2008/10/9 bunch <[EMAIL PROTECTED]>

>
>
>
>
>
> > So is there no way around that then..getting it to display fill screen
> > w/ only the html file?
>
> > When I change the height and width to 800px and 600px it displays on
> > half the screen. Almost there. I need it moved over to the right
> > somehow.
> > But if i take out the CSS altogether nothing shows up again.
>
> > On Oct 9, 11:51 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> > > its loading in ff3 fine but the object is displayed 0 height due to
css
> > > (which happens when the dimensions are percentages)
>
> > > html, body, object {height: 100%;width: 100%;margin: 0; padding: 0;}
>
> > > 2008/10/9 bunch <[EMAIL PROTECTED]>
>
> > > > Actually, it looks like Im having the same problem as mediamuis
> > > > below...I tested it in FF w/o being 100% and it shows up. Looking at
> > > > the FAQ #1--I dont have any AS code regarding stage scale in my
file.
> > > > Is that the exact code I need to input that might make this work for
> > > > FF?
>
> > > > On Oct 9, 10:43 am, bunch <[EMAIL PROTECTED]> wrote:
> > > > > here you go..this might help. :)
>
> > > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> > > >http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > > > > <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en"
lang="en">
> > > > >         <head>
> > > > > <title>****</title>
> > > > >         <head>
> > > > >                 <title></title>
> > > > >                 <meta http-equiv="Content-Type"
content="text/html;
> > > > > charset=iso-8859-1" />
> > > > >                 <script type="text/javascript"
> > > > src="swfobject.js"></script>
> > > > >                 <script type="text/javascript">
> > > > >                         var flashvars = {};
> > > > >                         var params = {};
> > > > >                         params.scale = "noscale";
> > > > >                         params.wmode = "window";
> > > > >                         params.allowfullscreen = "true";
> > > > >                         var attributes = {};
> > > > >                         swfobject.embedSWF("portfolio.swf",
> > > > "myAlternativeContent", "100%",
> > > > > "100%", "8.0.0", false, flashvars, params, attributes);
> > > > >                 </script>
> > > > > <style type="text/css">
> > > > >     <!--
> > > > >     body {height: 100%;width: 100%;margin: 0px;}    -->
> > > > >     </style>
> > > > >         </head>
> > > > > <body>
> > > > >                 <div id="myAlternativeContent">
> > > > >                         <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>
> > > > >         </body>
> > > > > </html>
>
> > > > > On Oct 9, 10:38 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
>
> > > > > > Please post some code or a link
>
> > > > > > 2008/10/9 bunch <[EMAIL PROTECTED]>
>
> > > > > > > I cant seem to find any answers on this and really need to get
> > this
> > > > > > > working. I have set my flash movie  using dynamic publishing
to
> > full
> > > > > > > screen and it is working fine in IE7 but only shows a blank
page
> > in
> > > > > > > FF. I know most people seem to have it work opposite it seems.
> > Any
> > > > > > > ideas?- Hide quoted text -
>
> > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

 




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