Current time: 04-17-2014, 05:13 PM Hello There, Guest! (LoginRegister)

swfobject not working
07-22-2010, 03:52 AM
Post: #1
swfobject not working
Hi¡

I have this code working perfect in my local machine but online it doesnt work..
am I doing something wrong?


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" xml:lang="en" lang="en">
    <head>
        <title>TITLE</title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <link rel="StyleSheet" href="style/main.css" type="text/css" media="screen,print" />
        <script type="text/javascript" src="js/swfobject.js"></script>
        <script type="text/javascript" src="js/flashscaler.js"></script>
        <script type="text/javascript">
            var flashvars = {};
            var params = { scale: "noScale" };
            var attributes = {};
            function swfobjectCallback(e) {
                if (e.success==false){
                    scale.disable();
                }
            }
            swfobject.embedSWF("index.swf", "flashmovie", "100%", "100%", "8", false, flashvars, params, attributes, swfobjectCallback);
        </script>
    </head>
    <body>
        <div id="flashcontent">
            <div id="flashmovie">
                <h2>SORRY!</h2>
                <p>We have detected that you do not have the Flash Player plugin required to view this website.</p>
                <p>Download the latest <a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Flash Player</a> for free! It takes just a few minutes to download and install.</p>
            </div>
        </div>
        <script type="text/javascript">
               scale = new FlashScaler("flashcontent",760,420);
        </script>
    </body>
</html>
Find all posts by this user
07-22-2010, 08:24 AM
Post: #2
RE: swfobject not working
Obvious question: Have you uploaded js/swfobject.js, js/flashscaler.js, and index.swf?
Find all posts by this user


Forum Jump: