So I have an Error 1009: Cannot access a property, blah, blah, blah too.
I'm assuming the experts here will be able to identify the problem immediately. I'm sure where the problem is, I just don't know how to address it. Here's what I'm looking at:
========================================================
bttn2.addEventListener(MouseEvent.CLICK, checkZips);
function checkZips(e:Event):void {
var azipcode:* = new RegExp("(0-9){5}", "g");
var thebigstring:String = xmlEPG.toXMLString();
//so here is the array of all the zip codes
var allzipcodes:* = thebigstring.match(azipcode);
for (var i:* = 0;i<allzipcodes.length;i++)
{
if (inputField.text == allzipcodes)
{responseText.text="Please enter a valid 5-digit zip code.";break;}
else
{responseText.text = "Yes! You may drop off this package at the later drop-off time.";
break;}
}
}
========================================================
I'm 99.9% positive that the error is coming from line 8, which is:
var allzipcodes:* = thebigstring.match(azipcode);
This is the second tab of my app, 3rd frame. The xml is loaded in frame 1 and that tab works perfectly. Any clues?
Thanks in advance!!
Brad