Index: README.txt =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/swfobject_api/README.txt,v retrieving revision 1.1.2.3 diff -u -p -r1.1.2.3 README.txt --- README.txt 14 Aug 2007 03:35:10 -0000 1.1.2.3 +++ README.txt 1 Oct 2008 14:32:11 -0000 @@ -9,46 +9,44 @@ This module makes it easier to add flash Installation ------------------------------------- - 1) Please module into modules directory - 2) Download SWFObject library from: - http://blog.deconcept.com/swfobject/#download + 1) Place module into modules directory + 2) Download SWFObject library 2 from: + http://code.google.com/p/swfobject/ 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); + +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['no_flash'] - - \ No newline at end of file + +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['no_flash']