Changing SWF filenames in script code
Hello,
Can someone help me with inserting my Xara animation onto my web page.
I have created a banner with Xara Animation and would like to put on my site,
I have uploaded the saved swf file to my images folder for site but am not sure were i put the file name within the
code given by Xarra a copy of zara code bellow,
any help with this would be awesome.
Cheers,
Newbie Steve
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="468" height="61">
<param name="movie" value="xar26AD.swf" />
<param name="quality" value="high" />
<param name="menu" value="true" />
<EMBED src="xar26AD.swf" quality="high" bgcolor="#FFFFFF" WIDTH="468" HEIGHT="61" NAME="yourmovie" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
<video src="xar26AD.swf" controls width="100%" height="100%"></video>
</object>
Re: Changing SWF filenames in script code
Quote:
Originally Posted by
persuit179
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="468" height="61">
<param name="movie" value="xar26AD.swf" />
<param name="quality" value="high" />
<param name="menu" value="true" />
<EMBED src="xar26AD.swf" quality="high" bgcolor="#FFFFFF" WIDTH="468" HEIGHT="61" NAME="yourmovie" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
<video src="xar26AD.swf" controls width="100%" height="100%"></video>
</object>
The bold items should be the important bits. The code above is looking for a file names xar26AD.swf in the same directory as the page/script. You should be able to add a relative path to that (or failing that, an absolute path), such as "images/xar26AD.swf" (or "../images/xar26AD.swf", if the page/script is in a directory that is the same level as the images directory).
-- Ben
Re: Changing SWF filenames in script code
If you are using Xara for your site building, just drag'n'drop the .swf file onto your Xara page and the code will be created for you when published.
Remember to size the created placeholder to the size of the banner as Xara will only create a 192x192pixel placeholder.
Re: Changing SWF filenames in script code
Hey Ben,
Thanks for the reply i will try this and see what happens....
Thanks again
Steve
Hey Sledge,
Unfortunately im not using Xara for this one would be all to easy otherwise :) will keep in mind for next one.
Thanks
Steve