flash

An extension for embedding Flash movies.
3 followers

This is a small extension based on a modified version of jquery.flash.js, which in turn is a jQuery plugin for embedding Flash movies.

MD5 file checksums:

  • 6addfc67605e1232aeca6b3bc56426f7 flash-0.2.tar.bz2
  • 963ff415aa23357fda711241e757b2a2 flash-0.2.zip

Resources

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

<?
$this->beginWidget('application.extensions.flash.EJqueryFlash',
                   array(
                         'name'=>'flash1',
                         'htmlOptions'=>array('src'=>'http://jquery.lukelutman.com/plugins/flash/example.swf'),
                        )
                  );
?>
You need Flash Player.
<? $this->endWidget('application.extensions.flash.EJqueryFlash');  ?>
 
<?
$this->widget('application.extensions.flash.EJqueryFlash',
               array(
                     'name'=>'flash2',
                        'htmlOptions'=>array(
                                             'src'=>'http://jquery.lukelutman.com/plugins/flash/example.swf', 
                                             'text'=>'You need Flash Player'),
                        )
                  );
?>

Change Log

20090429 0.2

  • Fixed some copy&paste bugs :P

20090421

  • Initial release.

Total 3 comments

#5002 report it
redguy at 2011/09/05 08:03am
Params validation :)

My proposition (I am using this modyfication):

define( 'CHECK_JS_PARAMETERS', YII_DEBUG );

or simply remove this define and check for YII_DEBUG value in code.

#1031 report it
schmunk at 2010/01/05 07:01am
Works fine

and I also added the 'fullScreen' option in line 131:

'allowFullScreen'=>array('type'=>'boolean'),

Thanks, schmunk

#1652 report it
rnysmile at 2009/05/24 04:03am
great!

It is very easy to use!

I found the Documentation has a mistake:

<?
$this->widget('application.extensions.flash.EJqueryFlash',
               array(
                     'name'=>'flash2',
                        'htmlOptions'=>array(
                                             'src'=>'http://jquery.lukelutman.com/plugins/flash/example.swf', 
                                             'text'=>'You need Flash Player'),
                        )
                  );
?>

should be :

<?
$this->widget('application.extensions.flash.EJqueryFlash',
               array(
                     'name'=>'flash2',
                     'text'=>'You need Flash Player'),
                        'htmlOptions'=>array(
                                             'src'=>'http://jquery.lukelutman.com/plugins/flash/example.swf',                         )
                  );
?>

Leave a comment

Please to leave your comment.

Create extension