Setting up Flash in Rails

Just a quick gotcha that got me tonight:
public/crossdomain.xml
public/movies/movie1.swf
Before I put my movies in their own subdirectory, i.e., when they were at the same level as crossdomain.xml, I was receiving a *** Security Sandbox Violation *** in the Flash Debug Console. After I put them in the movies/ directory, the violation went away. In short: # create a crossdomain.xml file And make it more secure than that -- that's only for development. # Put your movies below it # Load them into your app (I love haml):
%object{:width => "700", :height => "100"}
  %param{:name => "movie", :value => "movies/loggedInTest2.swf"}
    %embed{:src => "movies/loggedInTest2.swf", :width => "700", :height => "100"}