Use the online generator: 
http://www.bobbyvandersluis.com/swfobject/generator/index.html

--------------------------------------------------
From: "kip" <[email protected]>
Sent: Sunday, March 22, 2009 5:22 PM
To: "SWFObject" <[email protected]>
Subject: Re: Can't view swf in html page after embedding

>
>
> HiSsam,
> I went and download the firebug...OMG where has this been all my
> life?
> I am going to love that little plugin. Thanks for letting me know
> about it.:)
>
> I am cleaning up the file structure and still not having luck with
> the .swf file...but I am also downloading the AIR generator as Gary
> says that will generate better code for me.
>
> I will keep you posted, just wanted to say THANK YOU!
>
> On Mar 22, 3:05 pm, kip <[email protected]> wrote:
>> Hi Sam...Thanks for taking the time to help me out. It is appreciated
>> more than you know.
>>
>> Okay, here is what I did, and I do have a minor success....but not a
>> major one. :(
>>
>> I deleted the nav_cont before, so I put that back in... duh... and
>> embedded the menu.swf into that.
>>
>> The movie now plays in the html design window of Dreamweaver (success)
>> but not on the web page itself, and now I cannot even see the black
>> box where the menu should reside as was showing before.
>>
>> Also, do I need the ACrunactivex.js on the main root directory? I
>> removed it just in case... if I need it, I will put it back but felt
>> it might conflict with the other .js file.
>>
>> I cleaned up the coding and got rid of unnecessary stuff on most of
>> the other pages, but don't understand how those files can effect this
>> test page...but I believe it can so I did my best there.
>> Please understand I am a student learning this stuff...so my
>> experience is limited. I have never had trouble interfacing an swf
>> into an html file before now. I am still unsure as to why it is giving
>> me such a hard time now.
>>
>> The URL to view ishttp://www.jackpinewebdesign.com/test.html
>>
>> but I did go and clean up the html, xhtml with the tool provided in
>> DW.
>>
>> Thanks for your patience.
>>
>> K.
>>
>> On Mar 22, 2:22 pm, Sam Sherlock <[email protected]> wrote:
>>
>> > you still have excess code and your repeating bits to.
>>
>> > I am viewing this urlhttp://www.jackpinewebdesign.com/
>>
>> > 1) don't see why you need - check if you actually need what your page 
>> > is
>> > referancing get rid of what you don't
>>
>> > <script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
>>
>> > 2) don't have the swfobject code twice.
>>
>> > 3) Make sure the container with the correct id IS in the page mark up
>>
>> > 4) you have freedom to put files where ever the page can source them - 
>> > your
>> > using a Scripts/ dir (I keep dirs lowercase)
>>
>> > 5) moving style upwards in source code, and script down is also a good 
>> > idea
>>
>> > these last two points are wandering OT but might help you longer term 
>> > and
>> > might not be causing your troubles now but it clouds your situation ~ 
>> > but
>> > point 3 may solve the issue
>>
>> > - S
>>
>> > 2009/3/22 kip <[email protected]>
>>
>> > > Okay, so this is what I did...
>> > > I moved the swfobject.js file, menu.xml file and the menu.swf to the
>> > > main file structure in the root directory... I had them in a separate
>> > > file called flash.... Now they reside in the main root of the site.
>> > > After replacing my code with your code, I now get a black box showing
>> > > in FF, and IE... but it still will not play. At least I can see the
>> > > area where the movie should reside and play. Progress. The 404 error
>> > > code now displays
>> > > /* SWFObject v2.1 <http://code.google.com/p/swfobject/>
>> > > Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby
>> > > van der Sluis
>> > > This software is released under the MIT License <http://
>> > >www.opensource.org/licenses/mit-license.php>
>> > > */
>> > > ......
>>
>> > > Here is the new link I am now just working on getting this wot work 
>> > > in
>> > > an html page:
>>
>> > >http://www.jackpinewebdesign.com/test.html
>>
>> > > On Mar 22, 1:28 pm, Sam Sherlock <[email protected]> wrote:
>> > > > currently
>> > > > 1) your page has no swfobject.js the page can't find it
>> > > > 2) then your swfobject setup will look for the swf file herehttp://
>> > >www.jackpinewebdesign.com/menu.swf-whichit won't find - see how I
>> > > > have altered the code below
>>
>> > > > - S
>>
>> > > > 2009/3/22 kip <[email protected]>
>>
>> > > > > Sorry:
>>
>> > > > if the swfobject file is in a folder js in the root of your site 
>> > > > and the
>> > > > menu is where it was - firebug found both of these issues ~ it will 
>> > > > help
>> > > you
>> > > > loads :) available for either OSX or windoze ~ it will list js 
>> > > > error and
>> > > > missing files (it has add-ons of its own but 1 step at a time :] )
>>
>> > > > or you can try various files in turnhttp://
>> > >www.jackpinewebdesign.com/swfobject.js=err404
>>
>> > > > <script type="text/javascript" src="/js/swfobject.js"></script>
>>
>> > > > > <script type="text/javascript">
>> > > > > var flashvars = {};
>> > > > > var params = {};
>> > > > > params.quality = "high";
>> > > > > params.scale = "noscale";
>> > > > > params.wmode = "transparent";
>> > > > > var attributes = {};
>>
>> > > > swfobject.embedSWF("/flash_files/new_bounce/menu.swf", "menu_cont",
>> > > "500",
>> > > > "300", "8.0.0",
>> > > > "expressInstall.swf", flashvars, params, attributes);
>>
>> > > > > </script>
>> > > > > On Mar 22, 12:20 pm, Sam Sherlock <[email protected]> wrote:
>> > > > > > Have your read the documentation?
>> > > > >http://code.google.com/p/swfobject/wiki/documentation
>>
>> > > > > > this is nothttp://
>> > > > >www.jackpinewebdesign.com/Scripts/AC_RunActiveContent.js< not
>> > > > > > swfobject
>> > > > > > thishttp://
>> > > swfobject.googlecode.com/svn/tags/swfobject_2_1/swfobject.js<
>> > > > > > swfobject
>>
>> > > > > > your swfobject code/vars etc I was refering to would look like 
>> > > > > > (if
>> > > using
>> > > > > > dynamic embed)
>>
>> > > > > > <script type="text/javascript">
>>
>> > > > > > var flashvars = {};
>> > > > > > var params = {};
>> > > > > > var attributes = {};
>>
>> > > > > > swfobject.embedSWF("myContent.swf", "myContent", "300", "120",
>> > > > > > "9.0.0","expressInstall.swf", flashvars, params, attributes);
>>
>> > > > > > </script>
>>
>> > > > > > if the code perplexes you you can generate it usinghttp://
>> > > > >www.bobbyvandersluis.com/swfobject/generator/index.html
>>
>> > > > > > hth - S
>>
>> > > > > > 2009/3/22 kip <[email protected]>
>>
>> > > > > > > It won't play. It uploads fine. Here is a link to the page I 
>> > > > > > > am
>> > > trying
>> > > > > > > to put it on for right now...
>> > > > > > >http://www.jackpinewebdesign.com/about.html
>>
>> > > > > > > Here is the page 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>
>> > > > > > > <title>JPWD:: About</title>
>> > > > > > > <meta http-equiv="Content-Type" content="text/html;
>> > > > > > > charset=iso-8859-1" />
>> > > > > > > <meta name="Description" content="My name is Karen Eckstrom 
>> > > > > > > and I
>> > > have
>> > > > > > > lived in the Hutchinson, MN. area for over 25 years. We 
>> > > > > > > raised our
>> > > > > > > family here and I am currently working towards that degree
>> > > completing
>> > > > > > > my junior year. My current GPA is 3.99 and my goal is to 
>> > > > > > > graduate
>> > > at
>> > > > > > > the very top of my class. I then want to grow my business to 
>> > > > > > > become
>> > > a
>> > > > > > > leader in the Multimedia/Web Design industry in Minnesota." 
>> > > > > > > />
>> > > > > > > <meta name="Keywords" content="Jack Pine Web Design, Karen
>> > > Eckstrom,
>> > > > > > > Minnesota, Multimedia, Web Design, Hutchinson, MN, Minnesota"
>> > > /><!--
>> > > > > > > ImageReady Styles (Untitled-2) -->
>>
>> > > > > > > <!-- End ImageReady Styles -->
>> > > > > > > <link href="jpwd_main.css" rel="stylesheet" type="text/css" 
>> > > > > > > />
>> > > > > > > <link href="about.css" rel="stylesheet" type="text/css" />
>> > > > > > > <script src="Scripts/AC_RunActiveContent.js"
>> > > type="text/javascript"></
>> > > > > > > script>
>> > > > > > > </head>
>> > > > > > > <body style="background-color:#FFFFFF;">
>> > > > > > > <!-- ImageReady Slices (Untitled-2) -->
>> > > > > > > <div id="Table_01">
>> > > > > > > <div id="jpwd-logo-about_">
>> > > > > > > <img id="jpwd_logo_about"
>> > > > > src="images/jpwd_logo_about.jpg"
>> > > > > > > width="196" height="70" alt="Jack Pine Web Design" /> </div>
>> > > > > > > <div id="nav-bar">
>> > > > > > > <div id="nav-bar_">
>> > > > > > > <script type="text/javascript">
>> > > > > > > AC_FL_RunContent( 
>> > > > > > > 'codebase','http://download.macromedia.com/pub/
>> > > > > > > shockwave/cabs/flash/
>> > > > > > > swflash.cab#version=9,0,28,0<
>> > > > >http://download.macromedia.com/pub/%0Ashockwave/cabs/flash/%0Aswflash..
>> > > .>
>> > > > > > > ','width','500','height','300','title','navigation
>> > > > > > > menu','src','flash_files/new_bounce/
>> > > > > > > menu','quality','high','pluginspage','
>> > >http://www.adobe.com/shockwave/
>> > > > > > > download/download.cgi?
>> > > > > > > P1_Prod_Version=ShockwaveFlash<
>> > > > >http://www.adobe.com/shockwave/%0Adownload/download.cgi?%0AP1_Prod_Ve..
>> > > .>
>> > > > > > > ','wmode','transparent','menu','false','movie','flash_files/
>> > > > > > > new_bounce/menu' ); //end AC code
>> > > > > > > </script><noscript><object classid="clsid:D27CDB6E-
>> > > > > > > AE6D-11cf-96B8-444553540000" codebase="
>> > >http://download.macromedia.com/
>> > > > > > > pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0<
>> > > > >http://download.macromedia.com/%0Apub/shockwave/cabs/flash/swflash.ca..
>> > > .>"
>> > > > > > > width="500"
>> > > > > > > height="300" title="navigation menu">
>> > > > > > > <param name="movie"
>> > > value="flash_files/new_bounce/menu.swf" /
>>
>> > > > > > > <param name="quality" value="high" />
>> > > > > > > <param name="wmode" value="transparent" />
>> > > > > > > <param name="menu" value="false" />
>> > > > > > > <embed src="flash_files/new_bounce/menu.swf" width="500"
>> > > > > > > height="300" quality="high" 
>> > > > > > > pluginspage="http://www.adobe.com/
>> > > > > > > shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash<
>> > > > >http://www.adobe.com/%0Ashockwave/download/download.cgi?P1_Prod_Versi..
>> > > .>
>> > > > > > > "
>> > > > > > > type="application/x-shockwave-flash" wmode="transparent"
>> > > > > > > menu="false"></embed>
>> > > > > > > </object>
>> > > > > > > </noscript>
>> > > > > > > </div>
>>
>> ...
>>
>> read more ยป
> >
> 

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