// $Id: README.txt,v 1.1.2.2 2007-08-14 01:56:18 arthuregg Exp $ SWFObject_api Module Description ------------------------------------- This module makes it easier to add flash content to sites Installation ------------------------------------- 1) Please module into modules directory 2) Download SWFObject library from: http://blog.deconcept.com/swfobject/#download 3) Place the swfobject.js file into modules/swfobject_api/ 4) Place the expressinstall.swf file into modules/swfobject_api/ 5) Activate module in admin/build/modules 6) Configure the module via admin/settings/swfobject_api Usage ------------------------------------ Adding flash to your theme is as simple as: $url = "myflashfile.swf"; //path to flash file $params = array('width' => 100, 'height' => 100 ); $variables = array('foo' => 'bar'); print theme("swfobject_api", $url, $params, $variables); Example: 320, 'height' => 240, ); $vars = array( 'file' => base_path() . path_to_theme() .'/files/song.mp3', 'image' => base_path() . path_to_theme() ./files/image.jpg', ); print theme("swfobject_api", base_path() . path_to_theme() . '/flash/mediaplayer.swf', $params, $vars); ?> Advanced Usage ------------------------------------ You can change the class and id of the div wrapping the flash file with: $param['div_id'] $param['class'] You can change the "No flash detected" message with $param['message'] You can also override how swfobject_api writes it's flash by using a theme override function for theme_swfobject_api