Hi Chris,
Thanks a lot for your reply.
I tried to change the server code to use csv as below:
Query = "SELECT * FROM uploaded_data";
$Result = mysql_query( $Query );
/* fetching data and output as xml */
//print "<data>\n";
print "table_id|start|finish|pbx|type|local_ip|remote_ip|duration|
min_mos|av_mos|hop|max|jitb|jitter|latency|pkloss|pklo|pkrc|pksn|phone|
codec|startday|finishday|month_No|month|year|startdate|finishdate|
weekday|starttime|finishtime|file_id|file_name|username|date_inserted
\n";
while( $Row = mysql_fetch_object( $Result ) )
{
print $Row->table_id.'|'.$Row->start.'|'.$Row->finish.'|'.$Row-
>pbx.'|'.$Row->type.'|'.$Row->local_ip.'|'.$Row->remote_ip.'|'.$Row-
>duration.'|'.$Row->min_mos.'|'.$Row->av_mos.'|'.$Row->hop.'|'.$Row-
>max.'|'.$Row->jitb.'|'.$Row->jitter.'|'.$Row->latency.'|'.$Row-
>pkloss.'|'.$Row->pklo.'|'.$Row->pkrc.'|'.$Row->pksn.'|'.$Row-
>phone.'|'.$Row->codec.'|'.$Row->startday.'|'.$Row->finishday.'|'.$Row-
>month_No.'|'.$Row->month.'|'.$Row->year.'|'.$Row->startdate.'|'.$Row-
>finishdate.'|'.$Row->weekday.'|'.$Row->starttime.'|'.$Row-
>finishtime.'|'.$Row->file_id.'|'.$Row->file_name.'|'.$Row-
>username.'|'.$Row->date_inserted.'\n';
}
?>
I use the same code in mxml file to convert the csv to array:
public function resultHandler(event:ResultEvent):void {
d =new DelimitedTextConverter('|').parse(event.result as
String).nodes.data; ;
generateTreemapData();
}
It doesn't show the treemap yet. Did I do anything wrong? Should I
replace the "event.result as String" with anything else so that it can
read from my server code?
Tracy
On Oct 23, 10:43 pm, Chris Gemignani