A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Load XML data to Flash with AS2

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1

    Load XML data to Flash with AS2

    Hello to everybody!

    Like many other members I'm new in flash and actionscript , so I need some help from the pros.

    I have a XML file like this:

    Code:
    <root>
       <Event TextOne="TextShow1" TextTwo="TextShow2"/>
       <Event TextOne="TextShow3" TextTwo="TextShow4"/>
       <Event TextOne="TextShow5" TextTwo="TextShow6"/>
    </root>
    All I want is to load the XML data in Flash in two dynamic text fields (TextOne_mc and TextTwo_mc) and make the TextOne_mc to show me first the "TextShow1" then the "TextShow3" etc and the TextTwo_mc to show me first "TextShow2" then "TextShow4" etc,but when I'm done with it,TextOne_mc shows me "TextShow5" and TextTwo_mc shows me "TextShow6" only,so I understand that I'm not done with it correctly and something missing. .

    I hope you understood.Sorry if you don't understand my explanation.

    Thank you!!

  2. #2
    Senior Member Wancieho's Avatar
    Join Date
    May 2002
    Posts
    370
    Yo, checkout this indepth tutorial: http://www.kirupa.com/web/xml/index.htm

    There are many tutorials out there to help with the basics.

    Btw, id avoid using attributes to much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center