lib/sprout/tasks/mxmlc_helper.rb in sprout-as3-bundle-1.0.8 vs lib/sprout/tasks/mxmlc_helper.rb in sprout-as3-bundle-1.0.9
- old
+ new
@@ -85,26 +85,28 @@
end
def configure_mxmlc_application(compiler)
compiler.warnings = true
compiler.verbose_stacktraces = true
+ compiler.debug = model.use_fdb if model.use_fdb
compiler.default_background_color = model.background_color if model.background_color
compiler.default_frame_rate = model.frame_rate if model.frame_rate
if(model.width && model.height)
compiler.default_size = "#{model.width} #{model.height}"
end
end
def define_player
flashplayer player_task_name do |t|
t.swf = output_file
+ t.use_fdb = model.use_fdb
end
end
def define_fdb
fdb player_task_name do |t|
t.file = output_file
- t.kill_on_fault = true
+ t.kill_on_fault = kill_on_fault
t.run
t.continue
end
end