Hi,
I have this following PHP code :
$sql = "SELECT article_id FROM my_articles WHERE is_published=1 " .
"ORDER BY date_published DESC";
$result = mysql_query($sql, $conn);
if (mysql_num_rows($result) == 0) {
echo " <br>
";
echo " There are currently no articles to view.
";
} else {
while ($row = mysql_fetch_array($result)) {
outputStory($row['article_id'], TRUE);
}
}
which the output successfully display in XHTML.
Is the outputStory($row[‘article_id’], TRUE); can be displayed directly in Flash?
I try to make test in Flash as following :
myData = new LoadVars()
myData.ref = this
myData.load("http://witheld/witheld/witheld/myoutput.php")
myData.onLoad = function(succes){
if(succes){
//trace ("data loaded")
for(var i=0; i<this.result; i++){
this.ref["result"+i].mainText_txt.text = this["result"+i]
// this.ref["Comments_txt"+i].text = this["Comments_txt"+i]
//this.ref["holder_mc"+i].loadMovie(this["Image"+i])
}
} else trace("Error loading data")
}
The result says that the data is loaded but why I see blank screen? FYI : font is embedded.
Can anyone please help me?
Thanks