Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorante
    • CommentTimeJun 15th 2007
     
    Hi. I am having a lot of problems with inserting flash objects in my web site. I started with template from macromedia.com editable in photoshop and then i made some changes in coffee cup. This is my adress www.cilipi.bravehost.com. In the beginning everything worked just fine, without any problems loading in Mozilla or IE 6,7 , Opera, everyting worked just fine.

    Afterawile i placed my first flash object to page. I created a navigation bar, more correctly one button at www.hypergurl.com and copy pasted code and at first look everything was functioning. Later i found out that IE is having problems loading that flash object. First an alert message pops out and asks to install adobe flash player, then i need to activate flash object to use it...

    I was looking for reasons and trying hard to solve that, even studyied this script but i am simply beginner aand i really need some step by step help.

    I will paste my flash code here so you can see it and possbile insert that script in it so i could have a complete code to copy paste it. First some questions lol

    1. how to insert script in coffeecup?
    2. where to put it in code?
    3. installation? what to upload to my server?

    ok here is a code that is used right now

    this is that flash navbar--



    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
    WIDTH=130 HEIGHT=28>
    <PARAM NAME=movie VALUE="servo.swf?tarframe=_self&exbackground=808080&makenavfield0=igre&makenavurl0=http://www.cilipi.bravehost.com/pinball1.html">
    <PARAM NAME=loop VALUE=false>
    <PARAM NAME=menu VALUE=false>
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=scale VALUE=noborder>
    <PARAM NAME=salign VALUE=LT>
    <PARAM NAME=wmode VALUE=transparent>
    <PARAM NAME=bgcolor VALUE=#000000>

    <EMBED src="servo.swf?tarframe=_self&exbackground=808080&makenavfield0=igre&makenavurl0=http://www.cilipi.bravehost.com/pinball1.html" loop=false menu=false quality=high scale=noborder salign=LT wmode=transparent bgcolor=#000000 WIDTH=130 HEIGHT=28 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>

    </OBJECT>

    <a href="http://www.guistuff.com/"><img border="0" src="http://www.guistuff.com/images/11dot.gif" width="1" height="1"></a>

    <script language = "javascript">
    <!--
    theObjects = document.getElementsByTagName("object");
    for (var i = 0; i < theObjects.length; i++) {
    theObjects[i].outerHTML = theObjects[i].outerHTML;}
    //-->
    </script>


    THAT IS THE CODE NOW IN MY HTML CODE - BODY.

    I also placed one poll from neomyz and code looks like this

    <!-- NEOMYZ WEB POLL CODE STARTS HERE -->
    <!-- DO NOT EDIT BELOW THIS LINE -->
    <a href="http://www.neomyz.com/poll">
    <script language="JavaScript" src="http://www.neomyz.com/shared/getpoll.aspx?1b55e5fef9a2b7c8">
    </script></a>
    <noscript><a href="http://www.neomyz.com/poll">
    www.neomyz.com/poll</a><br>
    Create your own web poll in less than 3 minutes,<br>
    and gain valuable feedback from your site visitors.<br>
    Your browser does not seem to support JavaScript,<br>
    the poll will not be displayed.<br></noscript>
    <!-- NEOMYZ WEB POLL CODE ENDS HERE -->

    please help me, because i am desperate for 3 days now trying finally to solve this. i would really appreciate that so as my visitors and friends. thank you very much in advance and i hope that we will solve this finally. i tried posting at lots of forums but they remained def.

    THANK YOU!

    www.cilipi.bravehost.com check my code if you have time.

    its wysiwyg

    thank you
    • CommentAuthorAran
    • CommentTimeJun 15th 2007
     
    Ante.

    There are 4 things you need to do:

    1. Download the swfobject javascript file from http://blog.deconcept.com/swfobject/swfobject.zip and place the swfobject.js file in the same location as your html page on your server.

    2. include the javascript file on your page to be able to use it by adding the below line within the <head> tag of your page:

    <script type="text/javascript" src="swfobject.js"></script>

    3. make a <div> tag where your flash content (or alternate content if they don't have flash) will display on your page. Place the below where your old flash <object> tag started (delete all the old flash code inside <object> to </object> by adding the following code:

    <div class="content" id="flashcontent">
    You do not have the required Flash plugin installed, or your browser does not support Javascript. This content requires flash version 5. <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank">Get the latest flash player</a>
    </div>

    4. Add the required swfobject code to display the flash file. Paste this code right after the end of you </div> tag:

    <script language="JavaScript" type="text/javascript">
    var so = new SWFObject("servo.swf", "servo", "154", "39", "5", "000000");
    so.addVariable("tarframe", "_self");
    so.addVariable("exbackground", "808080");
    so.addVariable("makenavfield0", "igre");
    so.addVariable("makenavurl0", "http://www.cilipi.bravehost.com/pinball1.html");
    so.setAttribute("scale", "noborder");
    so.setAttribute("salign", "LT");
    so.setAttribute("wmode", "transparent");
    so.write("flashcontent");
    </script>
    • CommentAuthorante
    • CommentTimeJun 16th 2007
     
    hi. thank you for replying. i tried with that but soemthing is wrong. when i go to preview something is messed up. instead of picture i get just black background. this is the code that i messed up. please, could you fix it for me.

    this is the second part of my head tag where i included script, take a look

    }
    #Layer4 {
    position:absolute;
    left:364px;
    top:540px;
    width:208px;
    height:134px;
    z-index:3;
    }
    -->
    </style>
    <script type="text/javascript" src="swfobject.js"></script>
    </head>


    this is the code of flash object!

    <div class="content" id="flashcontent">
    You do not have the required Flash plugin installed, or your browser does not support Javascript. This content requires flash version 5. <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank">Get the latest flash player</a>
    </div><script language="JavaScript" type="text/javascript">
    var so = new SWFObject("servo.swf", "servo", "154", "39", "5", "000000");
    so.addVariable("tarframe", "_self");
    so.addVariable("exbackground", "808080");
    so.addVariable("makenavfield0", "igre");
    so.addVariable("makenavurl0", "http://www.cilipi.bravehost.com/pinball1.html");
    so.setAttribute("scale", "noborder");
    so.setAttribute("salign", "LT");
    so.setAttribute("wmode", "transparent");
    so.write("flashcontent");
    </script>

    help me please.
    • CommentAuthorAran
    • CommentTimeJun 16th 2007 edited
     
    ante.

    Can you post your swfobject html page you are having problems with. I cannot see any swfobject code on www.cilipi.bravehost.com

    On first look, the swfobject code looks correct
    • CommentAuthorante
    • CommentTimeJun 17th 2007
     
    hi aran.

    i removed it!

    this code looks correct now?
    • CommentAuthorAran
    • CommentTimeJun 17th 2007
     
    Ante.

    I cannot see any swfobject code on the homepage of www.cilipi.bravehost.com. Please give me the EXACT html page you want to to look at.
    • CommentAuthorkmfrontain
    • CommentTimeJun 18th 2007
     
    Hi. I am a newbie to embedding flash as well. It took me a few days to discover the deconcept blog and this forum. My flash always comes up as the words "load fail" on the web page. Using the information you gave Ante, I at last managed to see a black box, but the words "load fail" are now in the box.

    Here's the address for test page I'm using the embed code on:

    http://soulstonechronicles.bravehost.com/draft.html

    And here's the code:

    <html>
    <HEAD>
    <META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
    <BODY>Purchase The Soulstone Chronicles:
    <META content="MSHTML 6.00.2900.2180" name=GENERATOR>

    <div>

    <script type="text/javascript" src="swfobject.js"></script>

    <div id="flashcontent">
    This text is replaced by the Flash movie.
    </div>

    <script type="text/javascript" src="swfobject.js"></script>

    <div id="flashcontent">
    <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank">Get the latest flash player</a>
    </div>

    <script language="JavaScript" type="text/javascript">
    var so = new SWFObject("kmfrontain.swf", "kmfrontain", "400", "360", "5", "");
    so.addVariable("tarframe", "_self");
    so.addVariable("exbackground", "808080");
    so.addVariable("makenavfield0", "igre");
    so.addVariable("makenavurl0", "http://soulstonechronicles.bravehost.com/kmfrontain.swf");
    so.setAttribute("scale", "noborder");
    so.setAttribute("salign", "LT");
    so.setAttribute("wmode", "transparent");
    so.write("flashcontent");
    </script>

    </div>

    <script language="JavaScript" type="text/javascript">
    var so = new SWFObject("kmfrontain.swf", "kmfrontain", "400", "360", "5", "000000");
    so.addVariable("tarframe", "_self");
    so.addVariable("exbackground", "808080");
    so.addVariable("makenavfield0", "igre");
    so.addVariable("makenavurl0", "http://soulstonechronicles.bravehost.com/kmfrontain.swf");
    so.setAttribute("scale", "noborder");
    so.setAttribute("salign", "LT");
    so.setAttribute("wmode", "transparent");
    so.write("flashcontent");
    </script>
    </DIV><DIV></DIV>

    </FONT></FONT></P></BODY>
    </html>

    I loaded swfobject.js to the folder containing the same files that my web page uses. http://soulstonechronicles.bravehost.com/swfobject.js

    I'd appreciate any help you can give me. I have no clue where to go from here. I just cut and past html usually, relying on real programmers who know what they're doing. This is the first time I can't get something to work.

    Thanks,
    Karen
    • CommentAuthorphilip
    • CommentTimeJun 18th 2007 edited
     
    hi karen

    the Flash file loaded correctly. "load fail" is not an Adobe or SWFObject error message... the 'load fail' message was displayed in your Flash SWF. this means the SWF has been embedded on the page, but the content you're trying to load into the SWF is failing to load. is this a video player or something?

    regardless, you have a number of small things to correct on your page.


    1. There should only be one link to the external SWFObject file (you have two) and it should be located in the head of your page.

    2. Whenever you create more than one instance of a SWFObject (in other words, whenever you add more than one SWF to your page) you need to give the SWFObject variable (typically "var so") a unique name. The first one could be "var so1", the second one could be "var so2", etc.

    3. Same goes for the ID of the DIV that will contain the Flash movie. IDs are supposed to be unique, you can't use the same one twice on a page. you're currently using "flashcontent" twice.

    4. META tags should only be in the head of your document.

    5. you have a bunch of improperly nested tags, including FONT and DIV.



    here's a cleaned up version of your code. i understand you usually just copy and paste (many of us start off that way), but your code shows that you don't understand the very basics of HTML structure. for instance, you can't put a block-level element like "div" into a paragraph "p" tag. i suggest taking a few minutes to review HTML structure at www.w3schools.com or similar site. this is in no way a knock against you, it's just friendly advice... when you get the basics down, you'll be amazed how much better your code will work, and how much quicker you can create pages!

    - philip



    <html>
    <HEAD>
    <META content="MSHTML 6.00.2900.2180" name=GENERATOR>
    <script type="text/javascript" src="swfobject.js"></script>
    </HEAD>

    <BODY>
    <p>Purchase The Soulstone Chronicles:</p>
    <div id="flashcontent">
    <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank">Get the latest flash player</a>
    </div>

    <script language="JavaScript" type="text/javascript">
    var so = new SWFObject("kmfrontain.swf", "kmfrontain", "400", "360", "5", "#000000");
    so.addVariable("tarframe", "_self");
    so.addVariable("exbackground", "808080");
    so.addVariable("makenavfield0", "igre");
    so.addVariable("makenavurl0", "http://soulstonechronicles.bravehost.com/kmfrontain.swf");
    so.setAttribute("scale", "noborder");
    so.setAttribute("salign", "LT");
    so.setAttribute("wmode", "transparent");
    so.write("flashcontent");
    </script>

    </BODY>
    </html>
    • CommentAuthorkmfrontain
    • CommentTimeJun 18th 2007
     
    Thank you, Philip. The help is much appreciated.

    I'm not sure what you mean about it being a video player. I thought swf objects loaded automatically using Adobe or Macromedia or something. For me, the load fail happens whether I use Opera, Firefox, Netscape or IE. I can't see the flash file. I can only load it by clicking the local html file generated by the program that created the flash file, which was Flash Slideshow Maker. But when I cut and paste the same code from that html file into my draft page for Bravenet, I get load fail once again and can no longer see the swfobject.

    I'm trying to replace a working slideshow created by Slide.com. Slide.com does not allow linking on each frame. Mine does, but I can't see to get the file to work.
    • CommentAuthorkmfrontain
    • CommentTimeJun 18th 2007
     
    Here's the original embed code created by Flash Slideshow Maker. It isn't javascript and it only works when I click the local html file on my hard drive. It won't work on line.

    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="480" height="360" id="tech" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="kmfrontain.swf" />
    <param name="quality" value="high" />
    <embed src="kmfrontain.swf" quality="high" width="480" height="360" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    • CommentAuthorphilip
    • CommentTimeJun 18th 2007
     
    what i meant was "what is this SWF supposed to be doing?" you just answered my question: it's a slideshow player.

    that means the "load fail" message you're getting is probably because the slideshow SWF can't find the images and/or configuration file it's supposed to load. again, "load fail" is not an Adobe error message or a SWFObject error message. it was programmed into your SWF by the company that produced the slideshow SWF file.

    if your slideshow works locally but doesn't work when loaded onto your server, it's likely due to one of three things:

    1. the slideshow files (images, configuration files) might not have been uploaded to the server

    2. your path names might not match what's on the server. are the images supposed to be in the same folder as the SWF?

    3. the server might not be configured to handle certain file types correctly (this is unlikely in this case)



    - philip
    • CommentAuthorphilip
    • CommentTimeJun 18th 2007
     
    the Adobe embed code shows an ID of "tech". you should probably edit the following SWFObject code to match. it also has a different width. while you're at it, it wouldn't hurt to change the Flash version requirement to "6"... "5" is a bit unusual:

    was:

    var so = new SWFObject("kmfrontain.swf", "kmfrontain", "400", "360", "5", "#000000");


    should be:

    var so = new SWFObject("kmfrontain.swf", "tech", "480", "360", "6", "#000000");
    • CommentAuthorkmfrontain
    • CommentTimeJun 18th 2007
     
    Ah. I have some things to frig about with. There's a slides xml thingy here. I'll try loading that up, and if that doesn't work, I'll try loading each frame. Thank you again, Philip.

    And I will go read up on html. I get spinny and have headaches when I work at it too long. Obvious sign of confusion, eh? ;-)

    Thanks.
    • CommentAuthorkmfrontain
    • CommentTimeJun 18th 2007
     
    Yay! It was the xml thingy that was missing.

    LOL. Newbies.
    • CommentAuthormona_m
    • CommentTimeJun 23rd 2007 edited
     
    thanks for your help!!
    • CommentAuthorAran
    • CommentTimeJun 24th 2007 edited
     
    You still have a lot of old legacy javascript on the page. You should be able to get rid of all the old detection and insertion code and just have the below:

    <!-- saved from url=(0013)about:internet -->
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Cat Greenleaf Features/Lifestyle Reporter</title>
    <script type="text/javascript" src="swfobject.js"></script>
    <style type="text/css">
    <!--
    body {
    background-color: #1C0B06;
    }
    -->
    </style>
    </head>
    <body>
    <div align="center">
    <div id="flashcontent">
    <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank">Get the latest flash player</a>
    </div>
    <script language="JavaScript" type="text/javascript">
    var so = new SWFObject("index.swf", "index2", "900", "540", "2", "#1C0B06");
    so.addVariable("tarframe", "_self");
    so.addVariable("exbackground", "#1C0B06");
    so.addVariable("makenavfield0", "igre");
    so.addVariable("makenavurl0", "http://www.catgreenleaf.com/index.html");
    so.setAttribute("scale", "noborder");
    so.setAttribute("salign", "LT");
    so.setAttribute("wmode", "transparent");
    so.write("flashcontent");
    </script>
    </div>
    </body>
    </html>