add swf to asset pipeline. Fixes #1311

This commit is contained in:
Reinier Balt 2012-07-16 17:38:44 +02:00
parent 7c1cd2a144
commit 22e166c370
5 changed files with 5 additions and 2 deletions

View file

@ -28,4 +28,4 @@
//= require niftycube
//= require superfish
//= require supersubs
//= require swfobject
//= require swf_fu

Binary file not shown.

Binary file not shown.

View file

@ -1,5 +1,5 @@
<% @swf_count ||= 0 -%>
<div class="open-flash-chart"><%= swf_tag "open-flash-chart.swf",
<div class="open-flash-chart"><%= swf_tag asset_path("open-flash-chart"),
:flashvars => { 'width' => width, 'height' => height, 'data' => data},
:parameters => { 'allowScriptAccess' => 'sameDomain', 'wmode' => 'transparent'},
:div_id => "chart_#{@swf_count+=1}",