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 swfobject.js file into modules/swfobject_api/ 4) Activate module in admin/build/modules Usage ------------------------------------ Adding flash to your theme is as simple as: $url = "myflashfile.swf"; //path to flash file $params = array('width' => 100, 'height' => 100 ); print theme("swfobject_api", $url, $params); 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); ?> You can also override how swfobject_api writes it's flash by using a theme override function for theme_swfobject_api