Yii 1.1: 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 4 comments

#12793 report it
Trejder at 2013/04/12 04:34am
No Flash at Mac

Just a small notice, for those who are unaware. There is no Flash on Mac or any other Apple product! Keep in mind, that if you're using Flash anywhere within page, you're making it less accessible (or no accessible at all) to Mac/Apple users!

If you're using Flash only for playing movies, consider streaming standard video and HTML5 tag for playing videos.

If you're using it for some interactive content like games etc., consider rewriting them in pure HTML 5, CSS 3 and Javascript.

#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