prchakal, on 02 February 2010 - 11:29 PM, said:
Hi,
On this topic you can know all about the swfobject extension.
How to use:
Download and decompress all in
'extensions' dir.
Usage:
<?php $this->widget('ext.swfobject.ESwfObject', array(
'width' => '896',
'height' => '703',
'swfFile' => Yii::app()->baseUrl . '/swf/home.swf',
'playerVersion' => '9.0.0',
'params' => array('menu' => 'false', 'quality' => 'high', 'wmode' => 'transparent'),
'flashvars' => array(),
'attributes' => array(),
));
?>
So simple

I have problem when adding more than one flash file into different content id.
For example:
<?php $this->widget('ext.swfobject.ESwfObject', array(
'width' => '896',
'height' => '703',
'swfFile' => Yii::app()->baseUrl . '/swf/home.swf',
'playerVersion' => '9.0.0',
'params' => array('menu' => 'false', 'quality' => 'high', 'wmode' => 'transparent'),
'flashvars' => array(),
'attributes' => array(),
));
?>
then
<?php $this->widget('ext.swfobject.ESwfObject', array(
'width' => '896',
'height' => '703',
'swfFile' => Yii::app()->baseUrl . '/swf/footer.swf',
'playerVersion' => '9.0.0',
'params' => array('menu' => 'false', 'quality' => 'high', 'wmode' => 'transparent'),
'flashvars' => array(),
'attributes' => array(),
));
?>
This script override home.swf and just display footer.swf.
Any suggestion in this case? Thanks.
Nevermind, Problem solved when used count