I embedded flash to my site using this:
print swf('myflash.swf');
into my page.tpl file however it is not recognizing the orig dimensions when using this:
print swf('myflash.开发者_开发问答swf',array('height'=>400,'width'=>700));
But the flash is showing up, only the dimensions had the problems. I have been searching and searching around in Google and drupal forums to no avail for a few days now..
If anyone out there had the same issue please help I am so stuck!
The swf function from the SWF Tools module is expecting something more like this:
print swf ('myflash.swf', array('params'=>array('height'=>400,'width'=>700)));
If params doesn't work, here are the other keyed values it is looking for:
// Initialise any $options array elements that weren't passed by the caller
$options += array(
'params' => array(),
'flashvars' => array(),
'othervars' => array(),
'methods' => array(),
);
精彩评论