Jump to content

Open Links


timmah1

Recommended Posts

I'm building an rss reader in flash. I have the rss displaying with no problem, the problem is, I need each title to open the web page to a particular site.

The link is the same for every header, so I assumed it wouldn't be that hard, but since I'm very new Flash and followed a tutorial to get this working, I have no idea how to do this

 

Can somebody look at my Action Script and help me out?

 

import fl.managers.StyleManager;

var logFormat:TextFormat = new TextFormat();
logFormat.font = "Verdana";
logFormat.size = 10;
logFormat.bold = true;

StyleManager.setStyle("textFormat", logFormat);

var rssLoader:URLLoader = new URLLoader ();
var rssURL:URLRequest = new URLRequest("http://www.vegasdsports.com/feeds/nba.php");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);

var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;

function rssLoaded(evt:Event):void {
rssXML = XML(rssLoader.data);
//trace(rssXML);

for(var item:String in rssXML.channel.item) {
	liLog.addItem( {label:rssXML.channel.item[item].title} );
}
}
for(var item:String in rssXML.channel.item) {
liLog.onRelease = function:void() {
getURL("http://www.vegasdsports.com/feeds/nfl.php");
}
};

 

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/165393-open-links/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.