Hi N

Your code mixes swfobject 1.x syntax with swfobject 2.x syntax.  they're
incompatible.

Assuming your link to "/js/swfobject.js" is pointing to the swfobject 2.1
file, you should replace the 1.x syntax with updated 2.x syntax.

Three other observations:

1. You need to use unique <div> IDs... you have two "flashcontent"s, and
this won't work.  The following examples use flashcontent1 and flashcontent2

2. You specified wmode transparent. You should only use this if you really,
really mean it, as it taxes the CPU quite heavily and causes many bugs in
Flash Player.  If you *do* intend to use it, you don't need to specify a
background color, as it won't be visible.

3. Your code is in the <body>. The best practice for SWFObject 2.x is to
place the code in the <head> of your document.

So... all of this should be replaced:

<script language="javascript" type="text/javascript" >
// <![CDATA[
var so = new SWFObject("/flash/GlobalEVPres.swf", "movie", "120px", "600px",
"8", "#CCCCCC");
so.useExpressInstall("/js/expressinstall.swf");
so.addParam("wmode","transparent");
so.write("flashcontent");
// ]]>
</script>

<script language="javascript" type="text/javascript">
// <![CDATA[
var so = new SWFObject("/flash/2008_IMD_banner.swf", "movie", "120px",
"600px", "8", "#CCCCCC");
so.useExpressInstall("/js/expressinstall.swf");
so.addParam("wmode","transparent");
so.write("flashcontent");
// ]]>
</script>

with this (put in the <head>, not the <body>):

<script language="javascript" type="text/javascript" >
// <![CDATA[

var flashvars = {};
var params = { wmode: "transparent" };
var attributes = {};

swfobject.embedSWF("/flash/GlobalEVPres.swf", "flashcontent1", "120", "600",
"8", "/js/expressinstall.swf", flashvars, params, attributes);

swfobject.embedSWF("/flash/2008_IMD_banner.swf", "flashcontent2", "120",
"600", "8", "/js/expressinstall.swf", flashvars, params, attributes);

// ]]>
</script>


- philip



On Mon, Mar 23, 2009 at 7:25 AM, craftne <craf...@yahoo.com> wrote:

>
> Hi Curtis and ALL
>
> It didn't work, don't know what I'm doing wrong. The two embedded
> banner swf files don't appear in the parent swf file that loads in
> http://www.nancycraft.net/webwork.html, but they do play in the swf
> file. Also, from the text editor testing in a browser only shows the
> adobe logo.
> ( they are the banner top center thumbnail for International Migrants
> Day and the banner right center thumbnail, yellow and green, Building
> Global Alliances)
>
> Here's my code.
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
> www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head>
> <meta http-equiv="Content-Type" content="text/html;
> charset=ISO-8859-1" />
> <title>Web projects Nancy Craft has created</title>
> <meta name="robots" content="noarchive" />
> <meta name="keywords" content="" />
> <meta name="description" content=""/>
> <meta name="rating" content="General" />
> <meta name="author" content="nancy craft" />
> <meta name="copyright" content="© 2006–2009 nancy craft" />
> <link rel="shortcut icon" href="favicon.ico" />
> <link rel="icon" type="image/gif" href="animated_favicon1.gif" />
> <link rel="stylesheet" type="text/css" href="nancycraft.css" />
>        <script type="text/javascript" src="/js/swfobject.js"></script>
>
>                <script type="text/javascript">
>                        swfobject.registerObject("NCPortfoliowebwork",
> "8.0.0", "/js/
> expressInstall.swf");
>                </script>
>
> <style type="text/css">
>
> </style>
>
> </head>
>
> <body>
> <div id="main">
>        <div id="movie">
>                        <object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> width="870" height="860" id="NCPortfoliowebwork"
> name="NCPortfoliowebwork">
>                                <param name="movie"
> value="/flash/NCPortfoliowebwork.swf" />
>
>                                <param name="play" value="true" />
>                                <param name="quality" value="high" />
>                                <param name="scale" value="exactfit" />
>                                <param name="salign" value="tl" />
>                                <param name="wmode" value="transparent" />
>                                <param name="devicefont" value="true" />
>                                <param name="seamlesstabbing" value="true"
> />
>                                <param name="swliveconnect" value="true" />
>                                <!--[if !IE]>-->
>
>                                <object type="application/x-shockwave-flash"
> data="/flash/
> NCPortfoliowebwork.swf" width="870" height="860">
>                                        <param name="play" value="true" />
>                                        <param name="quality" value="high"
> />
>                                        <param name="scale" value="exactfit"
> />
>                                        <param name="salign" value="tl" />
>                                        <param name="wmode"
> value="transparent" />
>                                        <param name="devicefont"
> value="true" />
>                                        <param name="seamlesstabbing"
> value="true" />
>                                        <param name="swliveconnect"
> value="true" />
>
>                                <!--<![endif]-->
>                                        <a href="
> http://www.adobe.com/go/getflashplayer";>
>                                                <img src="
> http://www.adobe.com/images/shared/download_buttons/
> get_flash_player.gif<http://www.adobe.com/images/shared/download_buttons/%0Aget_flash_player.gif>"
> alt="Get Adobe Flash player" />
>                                        </a>
>                                <!--[if !IE]>-->
>                                </object>
>                                <!--<![endif]-->
>                        </object>
>
>
>
> <script language="javascript" type="text/javascript" >
>                  // <![CDATA[
>                         var so = new SWFObject("/flash/GlobalEVPres.swf",
> "movie",
> "120px", "600px", "8", "#CCCCCC");
>
> so.useExpressInstall("/js/expressinstall.swf");
>                                         so.addParam("wmode","transparent");
>                                         so.write("flashcontent");
>                                         // ]]>
> </script>
>
> <script language="javascript" type="text/javascript">
>          // <![CDATA[
>                         var so = new
> SWFObject("/flash/2008_IMD_banner.swf", "movie",
> "120px", "600px", "8", "#CCCCCC");
>
> so.useExpressInstall("/js/expressinstall.swf");
>                                         so.addParam("wmode","transparent");
>                                         so.write("flashcontent");
>                                         // ]]>
> </script>
>
>                </div>
>
> <div id="topbar"></div>
> <div id="navbar"></div>
> <div id="mastinfo">n     a     n
>     c     y
>        c     r
>     a     f     t
>     <a class="details" href="references.html">CONTACT
> DETAILS</a></div>
>
> <div id="textpanel">
> <!--<h1>miscellaneous</h1>
> <p class="summary"></p>--></div>
> <div id="footer"></div>
> <div id="navtext"><p class="citydate"><em>Hover over menu items <br /
> >to reveal drop down lists</em></p><ul class="menu1">
> <li class="drop">
> <li><a href="index.html" title="Nancy's home page">HOME</a>
> <li><a href="achievements.html" title="Nancy's
> achievements">ACHIEVEMENTS</a>
>
> <li class="drop"><a href="cgfns_job.html" title="Nancy's past
> experience">EMPLOYERS</a>
>
> <table><tr><td>
> <ul>
>
>                <li><a href="cgfns_job.html" title="Nancy's job at CGFNS
> International">CGFNS INTERNATIONAL</a></li>
>                <li><a href="grafikpharm_job.html" title="Nancy's job at
> Grafikpharm">GRAFIKPHARM</a></li>
>                <li><a href="pride_job.html" title="Nancy's job at Pride
> Publishing">PRIDE PUBLISHING</a></li>
>                <li><a href="cream_job.html" title="Nancy's job at Cream
> Advertising">CREAM ADVERTISING</a></li>
>                <li><a href="rte_integrated_job.html" title="Nancy's job at
> RT&E">REESE, TOMASES & ELLICK</a></li>
>
>                <li><a href="freelance.html" title="The companies Nancy has
> freelanced for">FREELANCE</a></li>
> </ul></td></tr></table></a>
>
> <li class="drop"><a href="billboards.html" title="Nancy's creative
> work">PORTFOLIO</a>
>
> <table><tr><td>
> <ul>
> <li><a href="ads.html" title="Ads that Nancy has created">ADS</a></li>
>        <li><a href="billboards.html" title="Billboards, banners and signs
> that Nancy has created">BILLBOARDS</a></li>
>        <li><a href="books.html" title="Books that Nancy has
> created">BOOKS</
> a></li>
>
>        <li><a href="brochures.html" title="Brochures that Nancy has
> created">BROCHURES</a></li>
>        <li><a href="calendars.html" title="Calendars that Nancy has
> created">CALENDARS</a></li>
>        <li><a href="events.html" title="Events that Nancy has done creative
> work for ">EVENTS</a></li>
>        <li><a href="websiteurls.html" title="\Web sites and CSS docs that
> Nancy has created"><strong>HTML and CSS</strong></a></li>
>        <li><a href="logos.html" title="Logos that Nancy has
> created">LOGOS</
> a></li>
>        <li><a href="magazines.html" title="Magazines that Nancy has
> created">MAGAZINES</a></li>
>
>        <li><a href="miscellaneous.html" title="Forms and other things that
> Nancy has created">MISCELLANEOUS</a></li>
>        <li><a href="photography.html" title="Nancy's
> photography">PHOTOGRAPHY</a></li>
>        <li><a href="webwork.html" title="Web sites, banners and
> presentations that Nancy has created">WEB WORK</a></li>
>
> </ul></td></tr></table></a>
>
> <li class="drop"><a href="software_skills.html" title="Nancy's
> software skills">SKILLS</a>
>
> <table><tr><td>
> <ul>
>
>                <li><a href="software_skills.html" title="Nancy's software
> skills">SOFTWARE</a></li>
>                <li><a href="hardware_skills.html" title="Nancy's hardware
> skills">HARDWARE</a></li>
>                <li><a href="creative_skills.html" title="Nancy's creative
> skills">CREATIVE</a></li>
>                <li><a href="management_skills.html" title="Nancy's
> management
> skills">MANAGEMENT</a></li>
>                <li><a href="technical_skills.html" title="Nancy's technical
> skills">TECHNICAL</a></li>
> </ul></td></tr></table></a>
>
> <li><a href="education.html" title="Nancy's education">EDUCATION</a>
> <li class="drop"><a href="testimonials.html" title="Testimonials
> regarding Nancy's history">TESTIMONIALS</a>
> <li class="drop"><a href="references.html" title="Nancy's references
> and contact details">REFERENCES</a>
> <li class="drop"><a class="last" href="interests.html" title="Nancy's
> interests and goals">INTERESTS</a>
> <li><a href="community.html" title="Nancy's charity work">COMMUNITY
> VOLUNTEERISM</a>
>
> </li></ul></a>
> </div></div>
> </body>
> </html>
>
> Thanks so much.
>
> N ty.html" title="Nancy's charity work">COMMUNITY
> VOLUNTEERISM</a>
>
> </li></ul></a>
> </div></div>
> </body>
> </html>
>
> Thanks so much.
>
> N
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to swfobject@googlegroups.com
To unsubscribe from this group, send email to 
swfobject+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to