djozusa
April 22nd, 2003, 05:29 PM
I have a Flash menu embeded in a php page and want to have the selected page display the proper content without changing pages and have Flash to detect the page and display the proper submenu.
That said, this is what I have tried so far with no luck.
Flash button Script:
on (press) {
var page = "home"
getURL ("index.php", "_self", "POST");
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PHP Script:
<?php
$page_id=$_POST['page'];
?>
If the variable was passed I would add it the embeded flash script like so:
value="flash/header.swf?page_id=< ?php print "page_id"; ?>"
src="flash/header.swf?page_id=< ?php print "page_id";?>"
Any help is greatly appreciated, and if there is a better way to do what I'm aiming for please let me know.
Thanks.
That said, this is what I have tried so far with no luck.
Flash button Script:
on (press) {
var page = "home"
getURL ("index.php", "_self", "POST");
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PHP Script:
<?php
$page_id=$_POST['page'];
?>
If the variable was passed I would add it the embeded flash script like so:
value="flash/header.swf?page_id=< ?php print "page_id"; ?>"
src="flash/header.swf?page_id=< ?php print "page_id";?>"
Any help is greatly appreciated, and if there is a better way to do what I'm aiming for please let me know.
Thanks.