Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.