Module ActionView::Helpers::FlashObjectHelper::InstanceMethods
In: lib/flashobject_view_helper.rb

Methods

Public Instance methods

Returns a path to a Flash object. The src can be supplied as:

  • a full path, such as "/assets/applet.swf"
  • a file name such "applet.swf"
  • a file name without an extension, such as "applet"

All of the above are expanded to "/assets/applet.swf"

Returns a set of tags that display a Flash object within an HTML page.

Options:

  • :div_id - the HTML id of the div element that is used to contain the Flash object; default "flashcontent"
  • :flash_id - the id of the Flash object itself.
  • :background_color - the background color of the Flash object; default white
  • :flash_version - the version of the Flash player that is required; default "7"
  • :size - the size of the Flash object, in the form "100x100". Defaults to "100%x100%"
  • :variables - a Hash of initialization variables that are passed to the object; default {:lzproxied => false}
  • :parameters - a Hash of parameters that configure the display of the object; default {:scale => ‘noscale’}
  • :fallback_html - HTML text that is displayed when the Flash player is not available.

The following options are for developers. They default to true in development mode, and false otherwise.

  • :check_for_javascript_include - if true, the return value will cause the browser to display a diagnostic message if the FlashObject JavaScript was not included.
  • :verify_file_exists - if true, the return value will cause the browser to display a diagnostic message if the Flash object does not exist.

(This method is called flashobject_tags instead of flashobject_tag because it returns a sequence of HTML tags: a div, followed by a script.)

[Validate]