Groups | Blog | Home
all groups > flash data integration > september 2005 >

flash data integration : URL's in RSS Readers



Si Fi
9/3/2005 11:02:32 PM
I have a movie that pulls sports headlines from the BBC Sports xml feed.

I can display the data ok, however, when i click on the stories, i'm not taken
to the relevent page, in fact nothing happens. The url is present in the xml,
so am I missing something:

http://www.yourbirmingham.co.uk/sport.htm

Many Thanks
Si Fi
9/16/2005 10:35:06 PM
Can anyone help??
Dimitar
9/17/2005 2:43:14 AM
First of all, there 's some problem with your flash code, as your swf makes
recalls every second after you click get data. This is... well, don't need to
charge the server side in this brutal way, make it autoupdate every minute, or
5 minutes :-)

Whenever you are binding the data from the XML, if the URL is a part of the
Object attributes (XML attribute or childNode to the main Node Objects), then
you can just assign an event to the cell as:

//suppose the url property is with name Link in the binded Xml objects.
// Llistener object.
var dgListener:Object = new Object();
dgListener.cellPress = function(evt_obj:Object) {
var Link_str:String = evt_obj.target.getItemAt(evt_obj.itemIndex).Link;
_global.getURL(Link_str, "_blank")l
};

// Add listener to your DataGrid
Sample_dg.addEventListener("cellPress", dgListener);

Dimitar
Si Fi
9/17/2005 9:36:36 AM
Thanks for your reply.

I may have seen a problem with the php file that i use to get the external XML
feed from:

<?php

$dataURL =
"http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/england/west_midlands/rss.xm
l";

//note that this will not follow redirects
readfile($dataURL);

?>

See where it says '//note that this will not follow redirects', is this php
file then not the cause of the link's not being followed. If so I have no idea
what I should have in the php file, this is a unkown area for me.
AddThis Social Bookmark Button