RoR with flash + XML

Hi all,

I have a question about RoR with flash + XML. I am trying to develop an application with flash + XML. Basicly, the program uses flash to display the information from XML file. When I embed the flash player into my RoR, flash player actually doesnt display the information from the XML file. However, when I tried to embed the flash player into an .html file, it can properly display my flash player and read the data from XML file. Any idea? Btw, I used javascript to connect the RoR with flash player.

Thanks in advance,