I'd like to share how to integrate Drupal with Flex over JSON, and then visualize that data with Flare. I hope this is the right spot to put this.

Its as easy as this:

1. IN DRUPAL TEMPLATE.PHP
function phptemplate_views_view_list_{viewname}($view, $nodes, $type) {
foreach ($nodes as $i => $nid) {
$node = node_load($nid->nid);
$output[]= json_encode($node);
}
return 'var videos=['.implode(',',$output).']';
}

2. IN THE HTML-TEMPLATE

function getData(){ $.getScript("http://example.com/view", function(){ /*$(videos).each(function(i){ $('#result').append('
'+this.nid+"<\/div>"); });*/ $("#${application}").get(0).initData(videos); }); }

3. IN FLEX
ExternalInterface.addCallback("initData", initData);
ExternalInterface.call('getData');