Topic: Flash and Ruby on Rails

Hi, all!
There is one great tutorial on how to communicate with Rails from Flash movie:
I tried communicating with LoadVars and sendAndLoad method. Yes, everything works, but only when I test flash movie from the Flash 8 application. When I use the same movie embedded in my Rails application, nothing happens. Why?? Are there any security policies in Flash 8 or what?
Why it is not working in Rails, when the flash movie and rails app in the same server on localhost?
By the way, when I played only with send method of the LoadVars, everything worked.

Re: Flash and Ruby on Rails

Probably security related.  Do you have a cross domain policy set up?

If not you can give that a try.  Just create an xml file at your site root and add this code:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
  SYSTEM " … policy.dtd">
  <allow-access-from domain="*" />

That will allow access from anyone and anything.  If you google "cross domain policy" colin mook's name will come up.  He has a great walkthrough if you require something more specific.