How to embed a swf flash rotator SOLVED :)

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

How to embed a swf flash rotator SOLVED :)

Post by buntrosgali »

...  ok i need a small bit of help here.

I want to embed this flash rotator into my  ...
...

my flash gadget

now i have it working there as  ...
...  stand alone static page on my hosting  ...
... . I now want to embed this into my content  ...
...  site.


the source for this page shown is this
Quote





if ( ...
... .macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
' ...
... ', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
...
...  'loop', 'true',
'scale', 'showall',
'wmode', 'window',
...
... .macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="590" ...
... :2083/viewer/home%2fpigsacom%2fcontent_management_system%2fflashcarousel/ ...
... .swf" />





...
...  HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/ ...
... >



{stylesheet}
{* This is how all the stylesheets attached to this  ...
...  are linked to *}

























but this is  ...
...  working as you can see here my site

i think its just a  ...
...  the javescript isnt linking right, can anyone suggest how to get it working?

...
...  folder called mywebsitename.com/cms


and the flash content is inside a  ...
...  called mywebsitename.com/cms/flashcarousel
Last edited by buntrosgali on Wed Apr 08, 2009 11:42 am, edited 1 time in total.
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: How to embed a swf flash rotator

Post by buntrosgali »

ahh ok np sorry bout that. so any advice on how to do this?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: How to embed a swf flash rotator

Post by Dr.CSS »

Not really as it seems you are missing part of it in your post and it's not clear on what steps you are taking to try and get it to work...
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: How to embed a swf flash rotator

Post by buntrosgali »

here is the folder containing all the files to make the carousel work


folder

i have succesfully embed the swf into a static page here

working static page

what im trying to learn is how to embed this into cms page like this?

page i want to embed into

i just dont know how to link the code into the template to make it work, ive attempted it but havent had success

any help from this?
Last edited by buntrosgali on Mon Mar 30, 2009 10:45 am, edited 1 time in total.
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: How to embed a swf flash rotator

Post by buntrosgali »

anyone shed any light on this for me?
sleepingcavalry
Forum Members
Forum Members
Posts: 19
Joined: Thu Feb 05, 2009 1:37 am

Re: How to embed a swf flash rotator

Post by sleepingcavalry »

i had an issue with a similar component that ended up being solved by making the page uncachable. Its an option in page preferences, uncheck it and then give it a try.
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: How to embed a swf flash rotator

Post by buntrosgali »

tried that but it didnt make any difference i dont think i am linking the javascript properly anyone else any ideas please :(

p,s making the page uncacheable would that not affect its search engine friendlyness?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: How to embed a swf flash rotator

Post by Nullig »

Use the swfobject module.

Nullig
tomgsd
Forum Members
Forum Members
Posts: 74
Joined: Tue Feb 12, 2008 10:00 am

Re: How to embed a swf flash rotator

Post by tomgsd »

This looks like an issue with the path to the XML file.  Have you checked that your XML is in the same directory as the SWF?  When I go to http://www.pigsflymedia.com/cms/albuminfo.xml I get a "Not Found" page. 

When loading XML into Flash, you need to place the file in a folder relative to where the SWF is embedded, not stored.

This is almost certainly the problem here.
Green Sheep Design Ltd. - www.greensheep.co.uk
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: How to embed a swf flash rotator

Post by buntrosgali »

i have uploaded the swfobject tag

and simply put the tag line

{swfobject swf=http://www.mysite.com/cms/uploads/iTunesAlbumArt.swf}

but it doesn't show anything.

there was no swfobject.js in the download module and from reading the documentation i took that i need this in the uploads folder so i entered one in, however the js file for this particular flash component is AC_RunActiveContent.js so i made the code in the template this



{stylesheet}
{* This is how all the stylesheets attached to this template are linked to *}













this isnt working either :(

my page



in regards to tomgsd  the xml page is now in same uploads folder as the swf object.

http://www.mysite.com/cms/uploads/albuminfo.xml



this is driving me mad!!! any other suggestions?
Last edited by buntrosgali on Wed Apr 08, 2009 11:43 am, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: How to embed a swf flash rotator

Post by Nullig »

If you read the help for the swfobject tag, you'll see how to format the tag parameters.

Nullig
tomgsd
Forum Members
Forum Members
Posts: 74
Joined: Tue Feb 12, 2008 10:00 am

Re: How to embed a swf flash rotator

Post by tomgsd »

Try your SWF file in the /cms directory (ie, at: http://www.pigsflymedia.com/cms/albuminfo.xml).  The location you posted (http://www.pigsflymedia.com/cms/uploads/albuminfo.xml) isn't working because your SWF is set up to look for the XML in the same directory as the page in which it is embedded.
Green Sheep Design Ltd. - www.greensheep.co.uk
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: How to embed a swf flash rotator

Post by buntrosgali »

i have read the documentation and followed it point by pont by  i still cant get it working.

i have offered $10 to anyone who can explain this to me and help me get it working.
buntrosgali
Forum Members
Forum Members
Posts: 167
Joined: Thu Apr 17, 2008 9:02 pm

Re: How to embed a swf flash rotator

Post by buntrosgali »

still havent got this working :( anyone offer any other help?
tomgsd
Forum Members
Forum Members
Posts: 74
Joined: Tue Feb 12, 2008 10:00 am

Re: How to embed a swf flash rotator

Post by tomgsd »

Just checked the page you posted before (http://www.pigsflymedia.com/cms).

The code you are using to embed is the following:

Code: Select all

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="590" height="300">
  <param name="movie" value="http://www.pigsflymedia.com/cms/uploads/iTunesAlbumArt.swf">
  <param name="quality" value="high">
  <embed src="http://www.pigsflymedia.com/cms/uploads/iTunesAlbumArt.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="590" height="300"></embed>
</object>
This is currently looking for the SWF file in the wrong location (http://www.pigsflymedia.com/cms/uploads ... bumArt.swf).  Try changing the path to: "http://www.pigsflymedia.com/cms/iTunesAlbumArt.swf"

here:

Code: Select all

<param name="movie" value="http://www.pigsflymedia.com/cms/uploads/iTunesAlbumArt.swf">
and here:

Code: Select all

<embed src="http://www.pigsflymedia.com/cms/uploads/iTunesAlbumArt.swf" quality="high" .....
(if you are using the object tag I think both locations should change automatically).

When I browse directly to your SWF (at http://www.pigsflymedia.com/cms/iTunesAlbumArt.swf) I see it working fine.  Don't move anything else, make the changes above and see if that works.  If not, let me know and I'll have another look.
Green Sheep Design Ltd. - www.greensheep.co.uk
Post Reply

Return to “Layout and Design (CSS & HTML)”