Skip to content

embedding Adobe Flash Player content using SWFObject 2

Notifications You must be signed in to change notification settings

guoyu07/swf-object-widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESwfobjectWidget embedding Adobe Flash Player content using SWFObject 2.

More details about SWFObject see on http://code.google.com/p/swfobject/

Usage

in a view:

[php]
$this->beginWidget('ext.yiiext.widgets.swfobject.ESwfObjectWidget',array(
	// The tag name. It used flash container. Defaults to 'div.
	'tag'=>'div',
	// Html options for container.
	'htmlOptions'=>array(),
	// Flash url.
	'swfUrl'=>'/files/movie.swf',
	// Flash width.
	'width'=>100,
	// Flash height.
	'height'=>50,
	// Flash Player version required.
	'version'=>'8',
	// Array of flash vars.
	'flashvars'=>array(),
	// Array of params.
	'params'=>array(),
	// Array of attributes.
	'attributes'=>array(),
	// Callback function.
	'callbackFn'=>false,
	// Script position.
	'scriptPosition'=>CClientScript::POS_READY
));
Alternative text will be show if flash not installed.
$this->endWidget();

About

embedding Adobe Flash Player content using SWFObject 2

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 88.5%
  • PHP 11.5%