My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Flash  
It is possible to embed and display Flash content. It is also possible to confirm the Flash Player's version number and whether it has been installed or not.
jQuery.flash, jQuery.fn.flash, jQuery.flash.version
en, ja
Updated Feb 26, 2010 by nakajim...@gmail.com

jQuery.flash and jQuery.fn.flash both require flash

<Require feature="flash" />

Confirming the presence of Flash Player

jQuery.flash can be used to confirm the presence of Flash Player

  if ($.flash) {
    console.log('Detects Flash Player.');
  }

Confirming the Flash Player version number

jQuery.flash.version can be used to confirm the Flash Player's version number

  console.log('Major version: ' + $.flash.version);

Displaying Flash Content

jQuery.fn.flash can be used to display embedded Flash content

  $('#container').flash('http://example.com/data.swf');

Parameters can be specified. At this time, the parameter name and a value can be defined as a set.

  $('#container').flash('http://example.com/data.swf', {
    width: 50, height: 100
  });

Moreover, flashVars can be specified. At this time, the parameter name and a value can be defined as a set.

  $('#container').flash('http://example.com/data.swf', {
    width: 50, height: 100,
    flashVars: { comment: 'Say Hello!' }
  });
Comment by project member nakajim...@gmail.com, May 28, 2009

$.flash の不具合は 1.0.2 で修正しました。

Comment by lzampe...@gmail.com, Sep 20, 2010

there is a new jquery plugin for flash embedding named JFE.. check it @ http://www.eightclaws.com


Sign in to add a comment
Powered by Google Project Hosting