I'm having difficulties developing pages that include simple SWFs as part of the content. Specifically, they won't play in MSIE 6. In Firefox and Opera the pages play exactly as planned, both Mac and Windows. SWFs are located in a subdirectory of /public. Has anyone run into a similar problem? Is there a tutorial that covers this anywhere? Thank you
on 2007-06-05 22:04
on 2007-06-05 22:59
Aren't plugins handled differently in MSIE 6+? You can't use Netscape style embed tags. Look into that and I'm guessing you'll find your problem.
on 2007-06-05 23:03
http://www.jeroenwijering.com/?item=embedding_flash This should, hopefully, show you what you need to do to properly embed your swf file.
on 2007-06-05 23:19
Make sure you don't have any spaces in your file path to the SWF. When I had this problem with IE is was because of that. Also IE doesn't use src in the embed tag if I remember properly. It used the value of the param with the attribute 'movie' so make sure that path is correct. Hope that helps.
on 2007-06-06 18:59
This is directed to everybody - the problem seems to be related to serving swf's from inside VIEWS. It seems that you should be able to put a swf file in a subdirectory of RAILS_APP/public and link to that swf from an embed link in a view. Is there some special problem / way of serving flash from IE within rails?
on 2007-06-06 19:53
I recently had this exact same issue as well. The solution to my problem was exactly what Michael said, I needed: <param name="movie" value="/path/to/my_player.swf"> It's really not an issue with rails because it's your server that dishes up that content. You may wanna double check the mime type your server is spitting out too but I doubt that's part of the problem unless your server is very old (apache 1.3 or something). Not sure how the various browsers handle the type attribute but I wouldn't count on it. good luck! Tim
on 2007-06-08 07:25
Hi Folks, Can I make a suggestion here? I began writing a lengthy reply to this subject, but figured it would be more useful to write a blog post on embedding SWF content in Ruby on Rails using SWFObject. So here it is: http://blog.eleventyten.com/2007/6/8/embedding-swf... HTH, let me know if you have any problems or if you have any comments/criticisms on the article itself and I will update it appropriately. Cliff
on 2007-06-12 14:57
Cliff great post, thanks for the help on this. I followed the SWFObject documentation and it works fine in IE Rocky
on 2007-06-12 16:04
Cliff, I think you need to escape a few more < and > in the text. In the bullet that begins "There is no need to deal with ..." you have <embed> and <object> which cause problems (at least for Safari). -Rob