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.
Works fine
and I also added the 'fullScreen' option in line 131:
'allowFullScreen'=>array('type'=>'boolean'),
Thanks,
schmunk
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', ) ); ?>
Params validation :)
My proposition (I am using this modyfication):
define( '_CHECK_JSPARAMETERS', YII_DEBUG );
or simply remove this define and check for YII_DEBUG value in code.
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.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.