Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4015218
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:35:32+00:00 2026-05-20T09:35:32+00:00

I’m low level as3 programmer and I need help whit this code: I have

  • 0

I’m low level as3 programmer and I need help whit this code:

I have gallery XML file:

 <gallery>
    <item>
        <id>1</id>
        <strana>0</strana>
        <naslov>Lokacije</naslov>
        <aktuelno>1</aktuelno>
        <slika>1.jpg</slika>
    </item>
    <item>
        <id>2</id>
        <strana>2</strana>
        <naslov>Coaching</naslov>
        <aktuelno>1</aktuelno>
        <slika>2.jpg</slika>
    </item>
    <item>
        <id>3</id>
        <strana>0</strana>
        <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
        <aktuelno>0</aktuelno>
        <slika>3.jpg</slika>
    </item>  
</gallery>

And:

var loader: URLLoader = new URLLoader();
loader.load(new URLRequest(“gallery.xml”);

var xml = new XML(evt.target.data);
for each(var item in xml..item) {
    centralniText.htmlText = item.slika;
}

only shows last item from XML file:

3.jpg

I want all. Please help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T09:35:33+00:00Added an answer on May 20, 2026 at 9:35 am

    After storing your loaded xml data in an XML object:

    var xml:XML = XML(URLLoader(event.target).data); 
    

    All you have to do is return an xml list value from the previous XML object’s children() method:

    var xmlList:XMLList = xml.children();
    

    Then you can set it as your TextField object’s htmlText property’s value:

    centralniText.htmlText = xmlList;
    

    [UPDATE]

    To access a specific element you can do the following:

    trace(xmlList.slika[0]); // outputs: 1.jpg
    trace(xmlList.slika[1]); // outputs: 2.jpg
    trace(xmlList.slika[2]); // outputs: 3.jpg
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have just tried to save a simple *.rtf file with some websites and
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have some data like this: 1 2 3 4 5 9 2 6
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have thousands of HTML files to process using Groovy/Java and I need to
I have a reasonable size flat file database of text documents mostly saved in
I'm parsing an XML file, the creators of it stuck in a bunch social
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.