Page 1 of 1

flash content and opera

Posted: Mon Dec 24, 2007 3:16 am
by lleighh
I've placed a flash object in my home page template here ... http://www.theprocess.com/dev/cm/

It causes Opera to either crash or show nothing at all. It shows wacky results in firefox .. the flash is too small or at the bootom of the page.  >:(

IE 6 and 7 seems to be the only one that shows the page correctly. My client wants it to show similar results in all these browsers.

I've used fckeditor to place the flash and I've tried an iframe. Neither way worked across the board. Is there a different way to doing flash in cmsms?

Re: flash content and opera

Posted: Mon Dec 24, 2007 5:53 am
by calguy1000
And this relates to CMS made simple specifically how?

Re: flash content and opera

Posted: Mon Dec 24, 2007 12:25 pm
by lleighh
Is there a different way to doing flash in cmsms?
sorry to have been so cryptic. i want a method of putting in flash that renders a similar result in three browsers, at least.

Re: flash content and opera

Posted: Mon Dec 24, 2007 5:37 pm
by Nullig
For Flash, you should use swfobject.

http://blog.deconcept.com/swfobject/

Nullig

Re: flash content and opera

Posted: Tue Dec 25, 2007 11:49 pm
by lleighh
Nullig wrote: For Flash, you should use swfobject.

http://blog.deconcept.com/swfobject/

Nullig
Where does this script go within the cms made simple file structure? Do I put the code (below) in the template?

Code: Select all

<__script__ type="text/javascript" src="swfobject.js"></__script>
		
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<__script__ type="text/javascript">
   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
   so.write("flashcontent");
</__script>

Re: flash content and opera

Posted: Wed Dec 26, 2007 6:26 am
by Dr.CSS
Yes, or else I believe you may be able to put it in a Global Content Block with {literal} your code {/literal} and you may be able to put it in the Content: edit box the same way...

Re: flash content and opera

Posted: Wed Dec 26, 2007 4:39 pm
by Nullig
This part goes in your template header:

Code: Select all

<__script__ type="text/javascript" src="swfobject.js"></__script>
This part goes where you want the movie to show. If it's the same on all pages, then put it in the template. If not, put it in the page content or a GCB.

Code: Select all

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

<__script__ type="text/javascript">
   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
   so.write("flashcontent");
</__script>
Nullig

Re: flash content and opera

Posted: Thu Dec 27, 2007 12:23 am
by lleighh
Okay, I understand where to put the code now but all the files in the swfobject zip ... where does it go? in the root?

Re: flash content and opera

Posted: Thu Dec 27, 2007 1:17 am
by Nullig
I usually create a scripts directory under my uploads directory, where I keep custom scripts.

Nullig