k i really hope somone doesnt tell me this is imposible lol but ive been try to figurethis out ok
my text box is dynamic and i am gettign the text for it from a mysql database and using php to pass it to flash now this is my function i have setup to display the info section
function showinfo() {
var n;
content.text1.htmlText = “”;
content.text1.htmlText += “<table border=‘0’ cellspacing=‘0’ cellpadding=‘0’><tr><td>Band Information</td></tr><tr><td><br> “+this[“info”+“1”]+”</td></tr><tr><td><br><br>Band Members”;
for (n=1; n<=5; n++) {
content.text1.htmlText += “<a href=”#" onclick=“window.open('bio.php?page=”+[“name”+n]+"’,‘Bioinfo’,‘toolbar=no,status=no,menubar=no,scrollbars=no,width=400,height=250’);">"+this[“name”+n]+"</a>";
}
content.text1.htmlText += “</td></tr></table>”;
}
ok that works good except for the line that makes the links, the links do nothing when clicked on. can someone help me on this please im going nuts
heres teh php code that sends the data into flash notei didnt include the connection onpurpose
$sql = “SELECT * FROM $page”;
$result = mysql_query($sql);
$i=1;
while ($row = mysql_fetch_row($result)) {
// $row = mysql_fetch_array($result);
$info = str_replace(" “,”+",$row[0]);
$rString .= “&info”.$i."=".$info;
$i++;
}
$i=1;
$sql = “SELECT * FROM bandmembers”;
$result = mysql_query($sql);
while ($row = mysql_fetch_row($result)) {
$name = str_replace(" “,”+",$row[1]);
$rString .= “&name”.$i."=".$name;
$i++;
}
$rString = str_replace(" “,”+",$rString);
echo $rString."&";
?>
this is the code that i have on the button that is used to initiate the loading of the info section
on (release) {
var vars3 = new LoadVars();
vars3.onLoad = showinfo;
vars3.page = “info”;
vars3.sendAndLoad(“info.php”, vars3, “POST”);
}