Please be gentle and try to spell out answers in detail as I'm a
newbie who knows very little about Javascript and ins and outs of web
publishing stuff in general.  I've always just published my SWFs
(sometimes built using Flash, sometimes built using Flex) using the
html template code that those tools generate.  I am now trying to use
SWFObject and flashvars for the first time.  I have created the html
below to launch a .swf.  I named this testindex.html and have it in a
directory on my site which I have password protected.  As soon as I
click on either of the links, I get the javascript popup that shows I
passed the correct data to establish my flashvars, but then instead of
seeing my .swf load, I get a 403 Access Forbidden message.  What am I
doing wrong?  Why doesn't this work?



<!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>physioSim Interactive Textbook Demo</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">
                        function loadSWF(welcome_xml){
                                 var flashvars = {};
                             flashvars.welcomeURL = welcome_xml;
                             alert("loadSWF called with "+flashvars.welcomeURL);
                            var params = {};
                             var attributes = {};
                             swfobject.embedSWF("PhysioBookLoader.swf",
"myAlternativeContent", "973", "500", "9.0.0", false, flashvars,
params, attributes);

                        }
                </script>
        </head>
        <body>
        <p><a href="" onclick="loadSWF('xml/welcomes/
vitalsWelcome.xml')">Load Vitals Book</a></p>
        <p><a href="" onclick="loadSWF('xml/welcomes/
vitalsWelcomeAbr.xml')">Load Vitals Book Abridged</a></p>
                <div id="myAlternativeContent">
                        <p> If you want to use the physioSim Interactive 
Textbook, you need
Flash!</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>
                </div>
        </body>
</html>
--~--~---------~--~----~------------~-------~--~----~
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