Jump to content

javascript/flash movie not loaded


oneill2004uk

Recommended Posts

having problems with something i bought off a website contacted support and they got the script to work and he said it was only because i had a class div instead of ID so i changed everything and positioned it and it doesn't work now :) and he wont show me how to do it again

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Untitled Document</title><script type="text/javascript" src="banner-rotator/swfobject.js"></script><script type="text/javascript">var flashvars = {};flashvars.folderPath = "banner-rotator/";var params = {};params.scale = "noscale";params.salign = "tl";params.wmode = "transparent";var attributes = {};swfobject.embedSWF("banner.swf", "BannerDiv", "600", "260", "9.0.0", false , flashvars, params, attributes);</script></head><body><div id="BannerDiv"></div></body></html>

this what the code should look like but it still doesn't workthis is my website Visit My Websiteit just says movie not loaded when i right click it.all files except the html file is in a folder called banner-rotator.paths should be relative to the html folder which is what they are i think.getting to the point where i might just pay someone to do 3 weeks i've been trying to figure it out. :)

Link to comment
Share on other sites

if all you had to do was switch from class to div, why did you have to redo everything? It sounded like just a simple mismatch. like you had

<div class="bennerDIV">

instead of the way you had it. why won't he show you again if you paid for it? :)you think everything's in the right directory, have you verified?

Link to comment
Share on other sites

Move the second script tag, the one with the large block of code, in the body after the div. There's an error because the div doesn't exist yet by the time that code runs.The swfobject library is a free library though, is that what you paid for?

Link to comment
Share on other sites

Move the second script tag, the one with the large block of code, in the body after the div. There's an error because the div doesn't exist yet by the time that code runs.The swfobject library is a free library though, is that what you paid for?
it all comes as a package you have there image transitions aswell i think its worth it for $37 its nothing really is it.i think i moved the things you wanted me to do but still no joy :)i'll quite happily give someone my ftp details if they fancy a go its driving me potty.
instead of the way you had it. why won't he show you again if you paid for it? you think everything's in the right directory, have you verified?
well he only said that i'd put a class div instead of id div thats why i re-did everything because i thought it was a easy change and i had a position changethe website its off is flashxml, only cost like $37 i suppose your paying for the flash controls in the movie aswell and theres a editable flash file so and that.
Link to comment
Share on other sites

I understand, you're paying for a Flash movie and just using swfobject to embed it.The documentation for swfobject is here:http://code.google.com/p/swfobject/wiki/documentationYou're using the second method, dynamic publishing. Note that it tells you to pass the container's ID, not class, to the embed function. There may be a size issue. Add this CSS to the head section:

<style type="text/css">html, body, #BannerDiv {  width: 100%;  height: 100%;}</style>

Other than that, look for Javascript errors. If you're using IE, the Javascript error indicator is a yellow icon in the status bar in the lower left.

Link to comment
Share on other sites

It looks like on your site you're using this to embed the movie:swfobject.embedSWF("/banner.swf", "BannerDiv", "600", "260", "9.0.0", false , flashvars, params, attributes);With a slash before the filename, that's going to look for the file here:http://t-oneill.co.uk/banner.swfYou can pull that up to show it doesn't exist, so it's not finding the SWF. If the SWF is in the same directory as the HTML file, remove the slash. If it's in a subdirectory, add the path.

Link to comment
Share on other sites

remove the folder path param and try

<div id="BannerDiv"></div><script type="text/javascript">var flashvars = {};var params = {};params.scale = "noscale";params.salign = "tl";params.wmode = "transparent";var attributes = {};swfobject.embedSWF("banner-rotator/banner.swf", "BannerDiv", "600", "260", "9.0.0", false , flashvars, params, attributes);</script>

this should now, make the swf load, but it can't find the location of sample images.Now the settings.xml file points to images2.xml, which does not seem to exist, But! images.xml does, so change the name to reflect this.settings.xml

<settings><generalOptions imagesXML="images2.xml" styleCSS="style2.css" bannerWidth="930" bannerHeight="380" randomImages="false" randomTransitions="true" imageFitting="bestFit" autoStart="true" firstWithTransition="true" autoTiming="true" pauseOnMouseOver="false" loadNextImageInBack="true" backgroundColor=""/><transitions value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107"/><imageEffects type="random" zoomPercent="20" duration="5" direction="left" hZoomPos="random" vZoomPos="random"/><preloaderOptions show="false" hAlign="center" vAlign="center" padding="20" size="30"/><controlsOptions show="true" hPos="center" vPos="top" padding="10" alignment="horizontal" numbersOverNextButton="false"/><controlsOrder value="previous,numbers,next"/><textOptions show="true" embedFont="false" hPos="random" vPos="random" width="0" height="0" padding="10" distance="5"/><textEffects slide="true" alpha="false" blur="false" appear="random" function="random" method="easeOut" duration="1.3" bodyDelay="0.4"/><textBackground type="wide" headColor="0x333333" alpha="55" bodyColor="0x002244" padding="5" cornerRadius="3"/><buttonOptions shape="circle" size="26" symbolSize="55" spacing="2"/><buttonColors back="0x000000" symbol="0xFFFFFF" alpha="60"/><buttonColorsOver back="0xFFFFFF" symbol="0x000000" alpha="100"/><numberColors back="0x000000" symbol="0xFFFFFF" alpha="60"/><numberColorsOver back="0xFFFFFF" symbol="0x000000" alpha="100"/><selectedNumberColors back="0x000000" symbol="0xFF7777" alpha="60"/></settings>

this should allow the flash file to find the sample images, and start showing them.images.xml

<slideshow>	<photo image="images/01.jpg" url="http://www.flashxml.net/banner-rotator.html" target="_blank" duration="4" effect="zoom" zoompercent="200" direction="out" hzoompos="left" vzoompos="right"><head>Download the new FlashXML Banner Rotator</head><body>it's FREE</body></photo>	<photo image="images/02.jpg" url="http://www.flashxml.net/banner-rotator.html" target="_blank" duration="4" effect="zoom" zoompercent="200" direction="out" hzoompos="center" vzoompos="center"><head>You probably won't need another banner rotator</head><body>More than 70 customizable properties</body></photo>	<photo image="images/03.jpg" url="http://www.flashxml.net/banner-rotator.html" target="_blank" duration="4" effect="kenburns" direction="right"><head>Customizable Zoom and Ken Burns image effects</head><body>and more than 100 image transitions</body></photo>	<photo image="images/04.jpg" url="http://www.flashxml.net/banner-rotator.html" target="_blank" duration="4" effect="kenburns" direction="top"><head>Fully customizable control buttons</head><body>You can show / hide each control and specify each control's order</body></photo>−	<photo image="images/05.jpg" url="http://www.flashxml.net/banner-rotator.html" target="_blank" duration="4" effect="kenburns" direction="bottom"><head>The text is HTML formatted, with any possible <font color="#ff0000">color</font>, <b><i>style,</i></b> <font size="30">size</font> and <a href="http://www.flashxml.net" target="_blank">link</a></head><body>The text could be CSS formatted as well</body></photo>	<photo image="images/06.jpg" url="http://www.flashxml.net/banner-rotator.html" target="_blank" duration="4" effect="zoom" zoompercent="200" direction="out" hzoompos="right" vzoompos="left"><head>Click <a href="http://www.flashxml.net/banner-rotator.html" target="_blank">here</a> to read instructions on how to install this Banner Rotator on your website for FREE</head></photo></slideshow>

Link to comment
Share on other sites

THATS IT!!! :) you've done it!it works on my proper pageit was that images.xml file of course images2xml doesn't exsist i know where its got that from now, on there website you can generator a custom settings file which chnages the image transitions and colours and things it must be corrupt i'll let them know.thanks alot! yippppeee will show u my website when its done now! :)thanks again really can't thank you enough :) i thought i was doing everything as they said, just why couldn't the support guy tell me he renamed that text to images.xml i'll never know :(

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...