XML attributes - FLASH
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: XML attributes - FLASH

  1. #1
    Registered User
    Join Date
    Jun 2012
    Posts
    1

    XML attributes - FLASH

    hello..
    im a new member here..
    i have a problem with XML on flash..

    in my case, i want to access the attributes value of my XML..

    this xml has the same structure with my xml..
    Code:
    [SIZE="3"][SIZE="2"]<quiz>
    <nodeQuestion id_question="1" question="What is the first letter of alphabet?">
      <answer status="true">A</answer> 
      <answer status="false">B</answer> 
      <answer status="false">C</answer> 
      <answer status="false">D</answer> 
    </nodeQuestion>
    <nodeQuestion id_question="2" question="What is the first letter of alphabet?">
      <answer status="false">A</answer> 
      <answer status="true">B</answer> 
      <answer status="false">C</answer> 
      <answer status="false">D</answer> 
    </nodeQuestion>
    </quiz>
    i have made 2 array based on that XML, named question_array and answer_array which follow question_array

    how can i access the "status" attribute from asnwer_array????

    my answer_array is consist of the nodeValue of the answernode..

    should i make another array that consist of the answernode?

    anybody can help me please?
    thx before..

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    756
    AS2 or AS3?

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

Poll by Flashkit.com