for(var i:int=0;i<stringArray.length;i++)
{
if(stringArray[i]==""||stringArray[i]==null)
{
trace("Element at "+i+" found empty");
}
}
I have a string array in AS3. Now I want to check if a particular element at index i is not set, how can i do this?
Error I get with the above code when a string that is not set arrives is as follows -
RangeError: Error #1125: The index 2 is out of range 2.