AS3 Question

Out of context: Reply #13

  • Started
  • Last post
  • 14 Responses
  • kumori040

    Just thinking out loud, but this is how i would try to approach it:

    Each time you reload your XML file using your Timer, you can look at the length of the Headlines nodes. If the length is greater than what it was the last time the XML was loaded, you can then update the display with any new articles.

    Let's assume 10 headlines are available the first time, and each headline is added to the stage inside its own TextField. When the XML file is updated, it finds 12 headlines. Since there are two more now, you could run a loop to format, position, and add the new ones to the display stack, maybe positioning them above the old ones.

View thread