Ok
well I think I at least have a clue as what needs to be done
but I will admit that I don't have any idea as how to get there.
what I have
I have an as2 xml quiz that does NOT assign a weight (or value) to individual questions.
It instead divides the the correct questions by the total questions and multiplies x100 to achieve the percent total.
what I need
I need to declare a value for each question. (to be assigned in the XML)
I believe I need to create a variable in my as2 code
I believe I need to add an attribute to the child nodes (ie weight)
I believe I need to add a "value" or "weight" attribute to the external XML file
lastly I believe I need some line of math that would add up the "weight" of
each of the individual questions on Quiz completion.
I have tried every variation of this that my feeble mind could come up with
and never with any success.
again array work and xml are all new to me and on top of that I have been attempting AS3 so the differences have been tripping me up further.
I have attached a .as file (it is on the timeline but I figured you don't need the .fla) and the .xml file so you can see it all in its entirety.
thanks to anyone that can help me on this.




LinkBack URL
About LinkBacks





Reply With Quote


Bookmarks