Sorry, I forgot to say that there is a movieClip bg used as background
(because it changes color at some point).

actionscript on frame 2 :

bg._width = Stage.width;
bg._height = Stage.height;

...this code does not work the bg is 470 x 585 as the swf.

if I use the following html everything works (IE, FF, Chrome), but I
need  to display alternative content if the user does not have flash
player:

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>

<style>

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

</style>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
        if (AC_FL_RunContent == 0) {
                alert("This page requires AC_RunActiveContent.js.");
        } else {
                AC_FL_RunContent(
                        'codebase', 
'http://download.macromedia.com/pub/shockwave/cabs/
flash/swflash.cab#version=8,0,0,0',
                        'width', '100%',
                        'height', '100%',
                        'src', 'intro',
                        'quality', 'high',
                        'pluginspage', 
'http://www.macromedia.com/go/getflashplayer',
                        'align', 'middle',
                        'play', 'true',
                        'loop', 'true',
                        'scale', 'noscale',
                        'wmode', 'window',
                        'devicefont', 'false',
                        'id', 'intro',
                        'bgcolor', '#ffffff',
                        'name', 'intro',
                        'menu', 'true',
                        'allowFullScreen', 'false',
                        'allowScriptAccess','sameDomain',
                        'movie', 'intro',
                        'salign', 'lt'
                        ); //end AC code
        }
</script>
<noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=8,0,0,0" width="100%" height="100%" id="intro"
align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="intro.swf" /><param name="quality"
value="high" /><param name="scale" value="noscale" /><param
name="salign" value="lt" /><param name="bgcolor" value="#ffffff" />
<embed src="intro.swf" quality="high" scale="noscale" salign="lt"
bgcolor="#ffffff" width="100%" height="100%" name="introMartina"
align="middle" allowScriptAccess="sameDomain" allowFullScreen="false"
type="application/x-shockwave-flash" pluginspage="http://
www.macromedia.com/go/getflashplayer" />
        </object>
</noscript>
</body>
</html>

any idea?




On Feb 17, 11:10 pm, "Aran Rhee" <[email protected]> wrote:
> So the 100% examples in the SWFObject test suite fail in Chrome as well? (I
> don't have chrome installed presently, so I can't test myself sorry)
>
> Dynamic:http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_dynamic_...
> wserflash.html
>
> Static:http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_fullbrow...
> h.html
>
> Also, is your centering code on frame 1? I have found that sometimes you
> have to wait 1 frame before the Stage values are correctly set.
>
> Aran
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
>
> Behalf Of ben.r
> Sent: Tuesday, 17 February 2009 11:01 PM
> To: SWFObject
> Subject: Problems with Chrome (full screen)
>
> Hi,
> In FF and IE works fine, but Chrome shows top & left margin and the
> movie is not centered. I have a center function in actionscript:
>
> function center() {
>         mc._y = Stage.height/2;
>         mc._x = Stage.width/2;
> }
>
> html:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
>         <head>
>                 <title></title>
>                 <style type="text/css">
>                  <!--
>                 html, body, #content, myFlash { height:100%; }
>                 body { margin:0; padding:0; overflow:hidden; }
>                   -->
>                 </style>
>                 <meta http-equiv="Content-Type" content="text/html;
> charset="utf-8" />
>                 <script type="text/javascript" src="swfobject.js"></
> script>
>                 <script type="text/javascript">
>                 swfobject.registerObject("myFlashContent", "8.0.0",
> "expressInstall.swf");
>                 </script>
>         </head>
>         <body>
>         <div id="content">
>                 <object id="myFlash" classid="clsid:d27cdb6e-
> ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/
> pub/shockwave/cabs/flash/swflash.ca
>                 b#version=8,0,0,0" width="100%" height="100%">
>                         <param name="movie" value="intro.swf" />
>                         <param name="salign" value="lt" />
>                         <param name="scale" value="noscale" />
>                         <!--[if !IE]>-->
>                         <object type="application/x-shockwave-flash"
> data="intro.swf" width="100%" height="100%">
>                         <param name="scale" value="noscale" />
>                         <param name="salign" value="lt" />
>                         <!--<![endif]-->
>                         <table width="100%" height="100%" border="0"
> align="center">
>                          <tr>
>                           <td><div align="center">
>                              <p>
>                                <img width="461" height="580" alt=""
> src="intro.jpg" usemap="#Map" border="0"/>
>                                                                 <map
> name="Map">
>                                         <area shape="RECT"
> coords="59,484,95,500" href="http://www"/>
>                                     <area shape="RECT"
> coords="44,518,95,534" href="http://www"/>
>                                     <area shape="RECT"
> coords="11,554,95,570" href="http://www"/>
>                                 </map>
>                             </p>
>                             </div></td>
>                          </tr>
>                         </table>
>                         <!--[if !IE]>-->
>                         </object>
>                         <!--<![endif]-->
>                 </object>
>         </div>
> </body>
> </html>
>
> ----------------
> tnx for help.
--~--~---------~--~----~------------~-------~--~----~
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