Go Back   kirupaForum > Flash > Flash IDE

Reply
 
Thread Tools Display Modes
Old 03-19-2010, 04:20 AM   #1
JoakimN73
Registered User
 
JoakimN73's Avatar
Location Malmö, Sweden

Posts 43
Problems with centering SWF in browser

Hi!

I am having problems with centering the SWF (both horizontally and vertically). I don't know how to make the DIV to be centered. I usually use a table for this but it can't be done with this html solution.

Please help me out on how I can center the SWF in the browser... Anyone that knows how to edit the html file?

Best regards
Joakim Norlin

Code:
<!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" lang="en" xml:lang="en">
    <head>
        <title>MBUDM - Long text module with anchor links</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <style type="text/css">
        /*<![CDATA[*/
            html, body {
                height: 100%;
                overflow: hidden;
            }
            body {
                background: #CCCCCC;
                font: 86% Arial, "Helvetica Neue", sans-serif;
                margin: 0;                
            }
            #content {
                height: 100%;
            }
        /*]]>*/
        </style>
        
        <script type="text/javascript" src="js/swfobject.js"></script>
        <script type="text/javascript" src="js/swfmacmousewheel2.js"></script>
          <script type="text/javascript">
            var flashvars = {_xml:"textmodule.xml"};
            var params = {menu:false,allowFullScreen:true,bgcolor:'#FFFFFF'};
            var attributes = { id:'fObj'}; // give an id to the flash object
            swfobject.embedSWF("textmodule.swf", "content", "100%", "100%", "9.0.0", "expressInstall.swf",flashvars,params,attributes);
            swfmacmousewheel.registerObject(attributes.id);
        </script>
    </head>
    <body>
        <div id="content">
            <p>In order to view this site you need Flash Player 9+ support and javascript enabled.</p>
            <p>
                <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>
            </p>
        </div>
    </body>
</html>
JoakimN73 is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:58 AM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com