iLLuZZiOn
01-04-2003, 01:55 PM
$self = $PHP_SELF;
$pagelink = explode("/", $self);
if ($pagelink[2] == index.php) {
$current = true;
}
else {
$current = false;
}
echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"120\" height=\"30\">
<param name=\"movie\" value=\"button.swf?label=Home&link=index.php¤t=$current\">
<param name=\"quality\" value=\"high\">
<embed src=\"button.swf?label=Home&link=index.php¤t=$current\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"120\" height=\"30\"></embed></object>";
i repeat this code a few times for each button
now the label bit works, but i can figure out how to do the other stuff
on frame 1 i would like to have a script that checks if $current is true or false
if true sends to frame 2 and stops, if false sends to frame 3 and stops
the next thing is when the button is pressed it goes to the page specified in the variable $link
shouldnt be too hard for u guys :P
$pagelink = explode("/", $self);
if ($pagelink[2] == index.php) {
$current = true;
}
else {
$current = false;
}
echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"120\" height=\"30\">
<param name=\"movie\" value=\"button.swf?label=Home&link=index.php¤t=$current\">
<param name=\"quality\" value=\"high\">
<embed src=\"button.swf?label=Home&link=index.php¤t=$current\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"120\" height=\"30\"></embed></object>";
i repeat this code a few times for each button
now the label bit works, but i can figure out how to do the other stuff
on frame 1 i would like to have a script that checks if $current is true or false
if true sends to frame 2 and stops, if false sends to frame 3 and stops
the next thing is when the button is pressed it goes to the page specified in the variable $link
shouldnt be too hard for u guys :P