Jump to content

Very new to ActionScript/Flash, need help!!


timmah1

Recommended Posts

I'm trying really hard to make this work.

 

I need to be able make everything wrap (wordWrap) within the field, as well as not show the html characters.

 

I am very new to ActionScript/Flash, and followed tutorials to get this far, and I cannot figure this out.

 

Can anybody look at this and show me what I'm doing wrong?

 


import fl.managers.StyleManager; 
import fl.events.ListEvent;
import fl.controls.List;

var logFormat:TextFormat = new TextFormat(); 
logFormat.font = "Verdana"; 
logFormat.color = 0xc60001;
logFormat.size = 9; 
logFormat.bold = true; 
logFormat.wordWrap = 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); 

for(var item:String in rssXML.channel.item) { 
liLog.addItem( {label:rssXML.channel.item[item].title+"\n"+rssXML.channel.item[item].description,link:rssXML.channel.item[item].link} ); 
} 
} 

liLog.addEventListener(ListEvent.ITEM_CLICK,clickedLogF); 


function clickedLogF(e:ListEvent){ 
navigateToURL(new URLRequest((liLog.getItemAt(e.index).link))); 
}

 

I can upload the .fla for anybody that wants to take a look

 

Thank you in advance

Link to comment
https://forums.phpfreaks.com/topic/165979-very-new-to-actionscriptflash-need-help/
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.