A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] How to center swf horizontally AND vertically in mozilla/IE brower?

  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    17

    [F8] How to center swf horizontally AND vertically in mozilla/IE brower?

    Hi,
    I have added the <center> to the below script which centers the swf fine horizontally, but what is the command to do the same vertically?

    Exuse the simplicity of this, i've googled it but most of what i fine talk about CSS and table centering which i don't think i need...?


    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>LWinprogress vrs8</title>
    </head>
    <center>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1000" height="700" id="LWinprogress vrs8" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="LWinprogress vrs8.swf" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><embed src="LWinprogress vrs8.swf" quality="best" bgcolor="#ffffff" width="1000" height="700" name="LWinprogress vrs8" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </center>
    </body>
    </html>

  2. #2
    Senior Member vinayak.kadam's Avatar
    Join Date
    Oct 2006
    Location
    gotoAndPlay("Pune");
    Posts
    831
    Please check the attached zip. It includes a sample which will teach you:

    1. How to center align a swf in IE and
    2. How to embed it so that the activeX object activation is done.
    Last edited by vinayak.kadam; 05-25-2011 at 08:13 AM.
    As ever,
    Vinayak Kadam

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    17
    This is great. Works perfectly. Thanks a lot!!

  4. #4
    Junior Member
    Join Date
    Aug 2008
    Posts
    6
    for future ref... i would just use a div and center align it by using


    margin: 0 auto;

    I would like to think that is the simplest why... :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center