Thanks for the quick reply, here is how I understood the article at
http://www.kirupa.com/developer/actionscript/flashphpxml_integration.htm
the fla file has just 1 text box.
This is set as - dynamic text, instance name= sites_txt, multiline, render as html.
There are 2 layers, one with the text box and the other with the action script.
Frame 1 of the action script= #include “sites.as”
This loads this externl actionscript file…
function lv(l, n, t, e, f) {
if (l == undefined) {
l = new LoadVars();
l.onLoad = function() {
var i;
n.htmlText = “”;
if (t == undefined) {
n.htmlText += “<b>”+this[“title”+e]+"</b><br>";
} else {
for (i=0; i<this.n; i++) {
n.htmlText += “<class=‘menu_item’><a href=’”+this[“link”+i]+"’>"+this[“title”+i]+"</a><br>";
}
}
};
}
l.load(f);
}
lv(sites_txt, “cycle”, null, “sites.php”);
I’m sure the MySQL/PHP part is OK as the script.php code generates this…
&n=12&id0=3&&title0=Canned_Laughter&&link0=http://www.cannedlaughter.net&&id1=4&&title1=Voetsjoeba&&link1=http://www.voetsjoeba.com&&id2=5&&title2=Kirupa&&link2=http://www.kirupa.com&&id3=6&&title3=Spoono&&link3=http://www.spoono.com&&id4=7&&title4=ReadyMadeMag&&link4=http://www.readymademag.com&&id5=9&&title5=Weebl and Bob&&link5=http://www.weebl.jolt.co.uk&&id6=10&&title6=Link 10&&link6=http://www.aamukaste.org&&id7=12&&title7=Flip Flop Flyin&&link7=http://www.flipflopflyin.com&&id8=15&&title8=KirupaForum&&link8=http://www.kirupaforum.com&&id9=16&&title9=Razyr&&link9=http://www.razyr.com/blog&&id10=17&&title10=Senocular&&link10=http://senocular.com&&id11=18&&title11=May 1st Reboot&&link11=http://www.may1reboot.com&&
the script.php file ( without my db comnnection info) is …
<?php
mysql_pconnect (“MY DATABASE CONNECTION DETAILS ARE IN HERE”);
mysql_select_db (“MY DATABASE”);
$qResult = mysql_query (“SELECT * FROM sites ORDER BY id ASC”);
$nRows = mysql_num_rows($qResult);
$rString ="&n=".$nRows;
for ($i=0; $i< $nRows; $i++){
$row = mysql_fetch_array($qResult);
$rString .="&id".$i."=".$row[‘id’]."&"."&title".$i."=".$row[‘title’]."&".
"&link".$i."=http://".$row[‘link’]."&";
}
echo $rString."&";
?>