I found one more easier way to communicate with back end system with client using ruby on rails and flash when I was working with one of my rubystar guy. Now one more way of ajaxing easily.
And I cannot forget to tell about SWFObject which is one of the great tool make flash developers life easier. This javascript piece of code in HTML helped me to communicate with flash variables and serverside data (like Rails objects) without diving into the my bulk of my code. If you are not using it then you are tring to makes your complicated.
<div id="myFlash"> Some text for google serach engine </div>
<script type="text/javascript">
var currentTime = new Date();
// this is avoid catching when append with flash files
var filePath = "/myFlash.swf?"+currentTime.getSeconds();
var foo= new SWFObject(filePath, "tutor", "683", "400", "8");
foo.addParam("scale", "noscale");
foo.addParam("allowScriptAccess", "all");
foo.addVaraible("flash Variable", "<%= variable %>" )
//your flash variable will updated with ruby variable
foo.write("myFlash");
</script>
Recent Comments