Native: Element {#Element}

Extends the Element native object to include the loadSwiff method to load a swiff into the element.

Demo

Element Method: loadSwiff {#Element:loadSwiff}

Loads a .swf file into the Element. Mostly helpful when chaining.

Arguments

Identical to the Swiff object arguments, but omit the container.

  1. path - (string) The path to the .swf file passed to Swiff.
  2. properties - (obj) The options to pass to Swiff.

Syntax

$('element').loadSwiff('test.swf',{
  id: 'test_movie',
  width: 550,
  height: 200,
  params: {
    wmode: 'transparent'
  }
});

Returns