Forum: Ruby on Rails loadind a swf flash animation placed in the public directory

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Da4cfe713d52451086140b6ba89577e3?d=identicon&s=25 GD (Guest)
on 2007-06-08 10:53
(Received via mailing list)
Hello everyone,

I am trying to include a swf flash animation in a view with this code
in the rhtml file :

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase=",0,0,0" width=730 height=420 id="swf"
  <param name="allowScriptAccess" value="sameDomain" />
  <param name="movie" value="flash/entrance_hall.swf"/>
  <param name="quality" value="high" />
  <param name="bgcolor" value="#CCDFD9" />
  <embed src="flash/entrance_hall.swf" quality="high" bgcolor="#CCDFD9"
width=730 height=420 name="swf" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="" />

... where 'flash/entrance_hall.swf' is placed in the public directory.

It seems that rails interprets it as a link to a controller (named
HomeController in this example) since this error is launched :
ActionController::RoutingError (no route found to match "/home/flash/
entrance_hall.swf" with {:method=>:get}):

Since <%= image_tag 'file' %> is necessary to replace the html version
of <img src='images/file'> I was wondering if there was a flash_tag
that could tell rails my 'flash/entrance_hall.swf' is not a call to a

Or maybe there is another solution, may anyone help me ?

Da4cfe713d52451086140b6ba89577e3?d=identicon&s=25 GD (Guest)
on 2007-06-08 14:33
(Received via mailing list)
I've found on another what was wrong : the swf file has to be located
with absolute path '/'flash/entrance_hall.swf'  and not 'flash/
entrance_hall.swf' (/ at the beginning missing).

This topic is locked and can not be replied to.