Page 1 of 1

Flash menu with php

Posted: Wed Dec 15, 2004 11:17 am
by volkan
Hi,
I currently using a TOP LINKS on my website
http://volkan-dil.co.uk/html/index.php

I want to convert this to a Flash Dropdown menu, with the links assined by a file called link.php

Here is my current settings:

LINK.php

Code: Select all

<?

//Links

$link1name = "Home";
$link1 = "index.php";

$link2name = "Model Reveiws";
$link2 = "modules.php?op=modload&name=Reviews&file=index&req=All";

$link3name = "My Account";
$link3 = "user.php";

$link4name = "Videos";
$link4 = "modules.php?op=modload&name=Downloads&file=index";

$link5name = "Web Links";
$link5 = "modules.php?op=modload&name=Web_Links&file=index";

$link6name = "Top 10 List";
$link6 = "modules.php?op=modload&name=Top_List&file=index";

$link7name = "About RCE";
$link7 = "wrap.php?file=team.htm";

$link8name = "Logout";
$link8 = "user.php?module=NS-User&op=logout";


//Flash settings

$link1 = str_replace(""", "'", $link1);
$link1 = str_replace("&", "-ampersand-", $link1);
$link1name = str_replace(""", "'", $link1name);
$link1name = str_replace("&", "-ampersand-", $link1name);
$link2 = str_replace(""", "'", $link2);
$link2 = str_replace("&", "-ampersand-", $link2);
$link2name = str_replace(""", "'", $link2name);
$link2name = str_replace("&", "-ampersand-", $link2name);
$link3 = str_replace(""", "'", $link3);
$link3 = str_replace("&", "-ampersand-", $link3);
$link3name = str_replace(""", "'", $link3name);
$link3name = str_replace("&", "-ampersand-", $link3name);
$link4 = str_replace(""", "'", $link4);
$link4 = str_replace("&", "-ampersand-", $link4);
$link4name = str_replace(""", "'", $link4name);
$link4name = str_replace("&", "-ampersand-", $link4name);
$link5 = str_replace(""", "'", $link5);
$link5 = str_replace("&", "-ampersand-", $link5);
$link5name = str_replace(""", "'", $link5name);
$link5name = str_replace("&", "-ampersand-", $link5name);
$link6 = str_replace(""", "'", $link6);
$link6 = str_replace("&", "-ampersand-", $link6);
$link6name = str_replace(""", "'", $link6name);
$link6name = str_replace("&", "-ampersand-", $link6name);
$link7 = str_replace(""", "'", $link7);
$link7 = str_replace("&", "-ampersand-", $link7);
$link7name = str_replace(""", "'", $link7name);
$link7name = str_replace("&", "-ampersand-", $link7name);
$link8 = str_replace(""", "'", $link8);
$link8 = str_replace("&", "-ampersand-", $link8);
$link8name = str_replace(""", "'", $link8name);
$link8name = str_replace("&", "-ampersand-", $link8name);


?>
Not not good with flash, can anybody help me?

Posted: Wed Dec 15, 2004 4:30 pm
by rehfeld
what do you want help with?

Posted: Wed Dec 15, 2004 6:52 pm
by volkan
i want to know an easy way to make a flash vertical dropdown menu, with the links assigned buy a php script.

Posted: Wed Dec 15, 2004 10:38 pm
by genetix
make a movie clip of the bar coming down. Then somehow you will have to figure out a way to mimic the movie for every link on the php file before showing an ending bar.

The first problem is with your PHP page. You have to setup the variables to be displayed for actionscript instead of PHP. Dont quote me on this but I think its & instead of $ for a variable and they must be echoed onto a php page.

I'm not entirely sure if the variable stuff is correct since I am learning php orienatated flash right now.

I would try http://www.flash-kit.com and go under tutorials. Then select actionscript and go to the last page(most recent tutorials). Find one on like a php/flash counter and learn off that.