I'm trying to increment a variable name so that it checks a hitTest against all items on the same level with the name "Card+"num. When I try to use this type of grammar in a hitTest statement, though, I get an error message.
I get the message: "Expected a field name after the '.' operator" when I type
I'm sure that this is easier than I'm making it for myself. Any help is appreciated...Code:for (var cn = 0; cn<31; cn++) if(cn <= 10) if(this.hitTest(_parent."Card0"+cn) { trace("Hit!")


Reply With Quote