"Micromedia flesh" ? Sounds like Macromedia Flash's dirty cousin! :)


In regards to your actual issue, it sounds like a relative pathing issue.

If your web page is located at:
http://localhost:3000/items/selectedCategoryItems

and you set your swf location as:
swf/rotateItems.swf

does the swf actaully exist at:
http://localhost:3000/items/swf/rotateItems.swf ?

The path you set to your swf is relative to the host page.

If the swf loads external assets like xml or image files, it will also be
relative to the host page unless you set the BASE param for your swf to
correctly parent your relative path.


If you could supply a link to your actual page, then people on the list can
have a look and give you further help....


Aran





On Mon, Jan 11, 2010 at 2:49 PM, technical help <[email protected]
> wrote:

> I have been self-learning Rails for last 6 months and bulding a web
> application using Rails 2.3. I am using your swfobject to display
> Micromedia flesh. The swf does display on the web page only where is
> located on the root folder. for example, the URL looks like below
>
> http://localhost:3000/
> Here is the problem, if the web page is located under the sub folder,
> the URL like below, it does not display the flesh, and I check the
> Rails console, it seems to have taken rotateItems.swf as a parameter
> in Rails.
>
> URL looks like below
> http://localhost:3000/items/selectedCategoryItems
>
>
> Console message
> Processing ItemsController#javascripts to js [GET]
>  Parameters: {"id"=>"swfobject"}
>
> Notes, i add the following javascript to the application.html.erb
> under the layouts folder
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> <head>
>  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
> <script type="text/javascript" src="javascripts/swfobject.js"></
> script>
> <script type="text/javascript">
>  swfobject.embedSWF("swf/rotateItems.swf", "flash_Content", "500",
> "90", "9.0.0", "expressInstall.swf");
> </script>
> </head>
> <body>
>  <div id="page">
>     <div id="flash_Content"></div>
>      <div id="content">
>        <%= yield %>
>      </div>
> </body>
> </html>
>
> Please reply and give me some hints how to resolve this issue.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>
>
>
>
--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.

Reply via email to