Make a swf file available in your template.
Last modified: February 9, 2008 - 06:03
So there is a flash file used in the sites template, ie. on every page. This is a very simple example to illustrate method. You can see that width, height are based on the flash file, usually we force this to be exact for a template since it will often line up with non-flash elements. Also, a background color is set.
In your _phptemplate_variables section of your template.php, add this in side the case 'page': switch.
<?php
case 'page':
$vars['swf_logo'] = swf(
"http://example.com/files/banner.swf",
array('width' => '526', 'height' => '58', 'bgcolor' => '#001647'), FALSE,
array('html_alt' => '<h1>Name of site if flash is disabled.</h1>')
);
?>Then in the page.tpl.php:
<?php
print $swf_logo
?>at the appropriate spot.

_phptemplate_variables(), deprecated.
http://drupal.org/node/132442
In 6.x, _phptemplate_callback() is no longer supported. It has been rolled in to the main theme() function. _phptemplate_variables() has also been deprecated. Can someone upgrade the above. I'm to newby in Drupal to commit myself to this.