Jump to content

Very new to ActionScript/Flash, need help!!


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

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.