Hi, I have a little .swf movie I''d like to have in my page. Is there a rails way of linking it? Thanks, Peter
No. But you could use http://blog.deconcept.com/flashobject/ and build a Rails Helper around it. btw. Campfire (37Signals, DHH) also seems to use flash. I took a look at the HTML sources a few days ago and they seem to include the Macromedia Flash/JS bridge, which also contains functions for embedding a swf. On 2/25/06, Peter Michaux <petermichaux@gmail.com> wrote:> > Hi, > > I have a little .swf movie I''d like to have in my page. Is there a > rails way of linking it? > > Thanks, > Peter > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon - http://rsaccon.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060225/857dae24/attachment.html
Peter > I have a little .swf movie I''d like to have in my page. Is there a > rails way of linking it? It''s not a Rails way, but the standard html way works fine: Example (C&Pasted from a working app.) : <html> .... <p> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="550" HEIGHT="400" id="CGAintro" ALIGN=""> <PARAM NAME=movie VALUE="your_movie.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#003366> <EMBED src="your_movie.swf" tppabs="your_movie.swf" loop=false quality=high bgcolor=#003366 WIDTH="550" HEIGHT="400" NAME="CGAintro" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> </EMBED> </OBJECT> </p> <p><%= link_to "Skip intro" , {:action => :home} %></p> Alain
Hi Alain, Thanks for the code snip. Where is your file "your_movie.swf"? Peter On 2/25/06, Alain Ravet <arav2132@biz.tiscali.be> wrote:> Peter > > I have a little .swf movie I''d like to have in my page. Is there a > > rails way of linking it? > > It''s not a Rails way, but the standard html way works fine: > > Example (C&Pasted from a working app.) : > > <html> > .... > <p> > <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" > WIDTH="550" HEIGHT="400" id="CGAintro" ALIGN=""> > <PARAM NAME=movie VALUE="your_movie.swf"> > <PARAM NAME=loop VALUE=false> > <PARAM NAME=quality VALUE=high> > <PARAM NAME=bgcolor VALUE=#003366> > <EMBED src="your_movie.swf" tppabs="your_movie.swf" loop=false > quality=high bgcolor=#003366 WIDTH="550" HEIGHT="400" NAME="CGAintro" > ALIGN="" > TYPE="application/x-shockwave-flash" > PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> > </EMBED> > </OBJECT> </p> > <p><%= link_to "Skip intro" , {:action => :home} %></p> > > > Alain > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Peter > Thanks for the code snip. Where is your file "your_movie.swf"? In the public root : <rails_app_root>/public/your_movie.swf Alain
Alain, I tested but seems not working for me. Got a message like movie not loaded I pasted your code in a rhtml file, and include the .swf in the public directory Any help Rgs Alain Ravet wrote:> Peter > > I have a little .swf movie I''d like to have in my page. Is there a > > rails way of linking it? > > It''s not a Rails way, but the standard html way works fine: > > Example (C&Pasted from a working app.) : > > <html> > .... > <p> > <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > > codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" > WIDTH="550" HEIGHT="400" id="CGAintro" ALIGN=""> > <PARAM NAME=movie VALUE="your_movie.swf"> > <PARAM NAME=loop VALUE=false> > <PARAM NAME=quality VALUE=high> > <PARAM NAME=bgcolor VALUE=#003366> > <EMBED src="your_movie.swf" tppabs="your_movie.swf" loop=false > quality=high bgcolor=#003366 WIDTH="550" HEIGHT="400" NAME="CGAintro" > ALIGN="" > TYPE="application/x-shockwave-flash" > PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> > </EMBED> > </OBJECT> </p> > <p><%= link_to "Skip intro" , {:action => :home} %></p> > > > Alain-- Posted via http://www.ruby-forum.com/.
Hi Rgs, I got this working but had a problem at first also. My problem was I didn''t notice that the .swf filename is written twice in Alain''s code. When I changed both then everything was ok. It was even ok if I moved the file into my images directory and used ''images/theFIle.swf'' twice in Alain''s code. Peter On 2/27/06, chems <zair@bluewin.ch> wrote:> Alain, > > I tested but seems not working for me. Got a message like movie not > loaded > I pasted your code in a rhtml file, and include the .swf in the public > directory > Any help > > Rgs
I''ve have another problem, every time I go to another page the flash dissapears, It''s like the link changes. I''m using the flash in a layout placed in every page of the system. Can you help me please?! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Carlos Aldas wrote:> I''ve have another problem, every time I go to another page the flash > dissapears, It''s like the link changes. > > I''m using the flash in a layout placed in every page of the system. > > Can you help me please?!Check the generated HTML. Make sure it''s pointing to the URL you expect it to. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.