Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
embedding Adobe Flash Player content using SWFObject 2
JavaScript PHP
Tree: 93c832a69e

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
ESwfObjectWidget.php
README.md
changelog.txt
readme_en.txt
readme_ru.txt

README.md

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();
Something went wrong with that request. Please try again.