Page 1 of 2

How to embed a swf flash rotator SOLVED :)

Posted: Thu Mar 26, 2009 12:18 pm
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

Re: How to embed a swf flash rotator

Posted: Fri Mar 27, 2009 9:14 am
by buntrosgali
ahh ok np sorry bout that. so any advice on how to do this?

Re: How to embed a swf flash rotator

Posted: Fri Mar 27, 2009 5:50 pm
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...

Re: How to embed a swf flash rotator

Posted: Mon Mar 30, 2009 10:43 am
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?

Re: How to embed a swf flash rotator

Posted: Mon Mar 30, 2009 10:06 pm
by buntrosgali
anyone shed any light on this for me?

Re: How to embed a swf flash rotator

Posted: Tue Mar 31, 2009 12:21 am
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.

Re: How to embed a swf flash rotator

Posted: Tue Mar 31, 2009 9:18 am
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?

Re: How to embed a swf flash rotator

Posted: Tue Mar 31, 2009 10:51 pm
by Nullig
Use the swfobject module.

Nullig

Re: How to embed a swf flash rotator

Posted: Wed Apr 01, 2009 9:49 am
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.

Re: How to embed a swf flash rotator

Posted: Wed Apr 01, 2009 5:53 pm
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?

Re: How to embed a swf flash rotator

Posted: Wed Apr 01, 2009 6:00 pm
by Nullig
If you read the help for the swfobject tag, you'll see how to format the tag parameters.

Nullig

Re: How to embed a swf flash rotator

Posted: Wed Apr 01, 2009 7:56 pm
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.

Re: How to embed a swf flash rotator

Posted: Wed Apr 01, 2009 9:27 pm
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.

Re: How to embed a swf flash rotator

Posted: Tue Apr 07, 2009 12:09 pm
by buntrosgali
still havent got this working :( anyone offer any other help?

Re: How to embed a swf flash rotator

Posted: Tue Apr 07, 2009 12:45 pm
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.