Plugins - swfobject_helper
Add to favoritesThis plugin is based in FlashObject? plugin created by Lipsiasoft but this plugin use SWFOBJECT and not FlashObject?, with SWFObject you can replace content of div with swf file and use adobe expressinstall to update flashplayer to required flashplayer version defined in your code.
This helper_tag only copy SWFObject.js (best js lib for place SWF files in HTML) to javascripts rails folder and copy expressinstall.swf file to swfs folder, to see more information about the amazing SWFObject access http://blog.deconcept.com/swfobject/ or access the page of project in google code, http://code.google.com/p/swfobject/ and the group http://groups.google.com/group/swfobject/
Benefits of this plugin: Your HTML still be valid in w3c validators. You can use alternative contents for users without flashplayer, if exist one :D. Simplify your rails views. Simplify how to send flashvars to swf file. Probably this way will be the adobe default way to use swf in html(http://blog.deconcept.com/2007/10/02/swfobject-2-0-beta/) to see more benefits access http://blog.deconcept.com/swfobject/#whyitsbetter
How to install: script/plugin install http://swfobjecthelper.googlecode.com/svn/trunk/swfobject_helper
How to use: include js in your view <%= javascript_include_tag “swfobject” %>
The is very simple for add a Flash in your page add this: <%= swfobject_tag ”/source/of/your/flash.swf”, :div_id => “id_of_div” %>
It’s really simple…. To se more informations about how use read the readme file inside the project.
Thanks to Davide D’Agostino(Lipiasoft) e SWFObject guys.
http://code.google.com/p/swfobjecthelper/
http://swfobjecthelper.googlecode.com/svn/trunk/swfobject_helper
Rails' (MIT)
Assets
