timmah1 Posted July 9, 2009 Share Posted July 9, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.