2 Replies Latest reply on Apr 30, 2008 1:52 PM by mannerism

    Limiting char lenght from xml

      Hi, I need to strip headlines that are longer then 40 characters and to add "..." and the end of the string.

      I'm importing feed from xml into xmlConnector component and rendering thru listBox component.

      I have code that can maybe help:

      if (label.length > 40){
      label = label.substring(0,40) + " ...";

      but I cannot target headlines that are coming from xml.

      Any idea how I can do this? Thanks.

      link to .fla file: http://headmade.net/flash/stripping_headlines.zip