actionscript 3 - Is there a reason a function won't accept a number higher than 4 in AS3? -


you know reason why function won't accept number higher 4?

this i'm doing. works 0-4, once hit 5 or higher, "a term undefined , has no properties." if put number 5 in there, works fine, it's not issue xml.. reason function won't accept higher 4. weirding me out..... can't see explanation it.

loadepsynopsis(5);  function loadcharsynopsis(charnumber:number):void { synopsisbox.titletext.text = bxml.characterlist.character[charnumber].charactername; synopsisbox.descriptiontext.text = bxml.characterlist.character[charnumber].characterdesc; }  

the value of "bxml.characterlist" 5 characters long, indexing higher returning "null", has no "charactername" property.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -