@Ken

While we appeciate people helping others on the list, your statements and
code just is not correct at all! What you ahve posted will steer pople in
the wrong direction. All SWFObject includes and code declarations should be
placed within the <head>.

SWFObject code *SHOULD NEVER* be placed within the element you are
replacing!

I think you should re-examine the documentation and code generator, as it
places all the code exactly where is should:
http://www.bobbyvandersluis.com/swfobject/generator/index.html


Based on Gwenh's original post it should look like:

<!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></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">
   var flashvars = {};
   var params = {};
   var attributes = {};
   swfobject.embedSWF("Everyday_Women.swf", "myContent", "495", "330",
"9.0.0", "expressInstall.swf", flashvars, params, attributes);
  </script>
 </head>
 <body>
  <div id="myContent">
   <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>



@Gwenh

- please post your page, as I don;t see anything immediately wrong with your
code snippet

- just a quick pointer on using the generator - unless you need to set a
param definitively, leave it blank. SWFObject has defaults which cover the
most used param values.



Aran

On Mon, Jul 13, 2009 at 12:17 PM, Ken Hackenberg <[email protected]> wrote:

> Your code is inserted incorrectly. The generated code from the code
> generator goes within the id container like this:
> -- start 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"; 
> <http://www.w3.org/1999/xhtml>lang="en" xml:lang="en">
>     <head>
>         <title></title>
>         <meta http-equiv="Content-Type" content="text/html;
> charset=iso-8859-1" />
>     </head>
>     <body>
>         <div id="myContent">
>            <script type="text/javascript" src="swfobject.js"></script>
>         <script type="text/javascript">
>             var flashvars = {};
>             var params = {};
>             params.play = "true";
>             params.loop = "true";
>             params.menu = "false";
>             params.quality = "best";
>             params.scale = "noscale";
>             params.wmode = "transparent";
>             params.bgcolor = "FFFFFF";
>             var attributes = {};
>             attributes.id = "myContent";
>             attributes.align = "middle";
>             swfobject.embedSWF("Everyday_Women.swf", "myContent", "495",
> "330",
> "9.0.0", "expressInstall.swf", flashvars, params, attributes);
>         </script>
>             <a 
> href="http://www.adobe.com/go/getflashplayer";<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>
>
> -- end code ---
>
>  Sincerely;
> Ken Hackenberg
>
>   [image: Xzone9]
> 1855 E Southern Ave
> Suite 205
> Mesa AZ 85204
> (480) 699-9182
> [email protected]
> www.xzone9.com
>
> AOL IM- khkenberg
>
> This communication is considered confidential, and solely for the recipient
> intended where use by any other identity is considered fraudulent. Upon
> receiving this communication in error, please notify [email protected].  
> All email
> transmitted is scanned for viruses.
>
> ------------------------------------------
>
>
>
>
> Gwenh wrote:
>
> I'm new to embedding flash. I'm trying to embed an slideshow on my
> site. I uploaded the swf file, the swfobject.js and expressInstall to
> my server under the same directory. When I used the code generator to
> write the code this is what it gave me:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
> www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" 
> <http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>>
> <html xmlns="http://www.w3.org/1999/xhtml"; <http://www.w3.org/1999/xhtml> 
> lang="en" xml:lang="en">
>       <head>
>               <title></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">
>                       var flashvars = {};
>                       var params = {};
>                       params.play = "true";
>                       params.loop = "true";
>                       params.menu = "false";
>                       params.quality = "best";
>                       params.scale = "noscale";
>                       params.wmode = "transparent";
>                       params.bgcolor = "FFFFFF";
>                       var attributes = {};
>                       attributes.id = "myContent";
>                       attributes.align = "middle";
>                       swfobject.embedSWF("Everyday_Women.swf", "myContent", 
> "495", "330",
> "9.0.0", "expressInstall.swf", flashvars, params, attributes);
>               </script>
>       </head>
>       <body>
>               <div id="myContent">
>                       <a href="http://www.adobe.com/go/getflashplayer"; 
> <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/get_flash_player.gif> 
> alt="Get Adobe Flash player" /></a>
> </div>
> </body>
> </html>
>
> I tested this locally in Dreamweaver and it doesn't work. Dreamweaver
> generated this code with a modified swfobject that did work but I
> still can't get the flash embedded on my site. This is the code
> generated by Dreamweaver:
> <html>
> <head>
> <body>
> <center>
> <object id="FlashID" classid="clsid:D27CDB6E-
> AE6D-11cf-96B8-444553540000" width="495" height="330">
>   <param name="movie" value="Everyday_Women.swf">
>   <param name="quality" value="high">
>   <param name="wmode" value="opaque">
>   <param name="swfversion" value="8.0.35.0">
>   <!-- This param tag prompts users with Flash Player 6.0 r65 and
> higher to download the latest version of Flash Player. Delete it if
> you don’t want users to see the prompt. -->
>   <param name="expressinstall" value="Scripts/expressInstall.swf">
>   <!-- Next object tag is for non-IE browsers. So hide it from IE
> using IECC. -->
>   <!--[if !IE]>-->
>   <object type="application/x-shockwave-flash"
> data="Everyday_Women.swf" width="495" height="278">
>     <!--<![endif]-->
>     <param name="quality" value="high">
>     <param name="wmode" value="opaque">
>     <param name="swfversion" value="8.0.35.0">
>     <param name="expressinstall" value="Scripts/expressInstall.swf">
>     <!-- The browser displays the following alternative content for
> users with Flash Player 6.0 and older. -->
>     <div>
>       <h4>Content on this page requires a newer version of Adobe Flash
> Player.</h4>
>       <p><a href="http://www.adobe.com/go/getflashplayer"; 
> <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/get_flash_player.gif> 
> alt="Get Adobe Flash player" width="112"
> height="33" /></a></p>
>     </div>
>     <!--[if !IE]>-->
>   </object>
>   <!--<![endif]-->
> </object></td></tr>
> <tr height=15><td>
> <script type="text/javascript">
> <!--
> swfobject.registerObject("FlashID");
> //-->
> </script>
> </body>
> </html>
>
> If anyone can help it would be thoroughly appreciated.
> >
>
>
>
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

<<inline: xzone9_logo_v3_x48.gif>>

Reply via email to