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.
protected/extensionsSee 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'), ) );
Total 4 comments
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.
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.
and I also added the 'fullScreen' option in line 131:
'allowFullScreen'=>array('type'=>'boolean'),
Thanks, schmunk
It is very easy to use!
I found the Documentation has a mistake:
should be :
Leave a comment
Please login to leave your comment.