Thank you for your help so far; I still can't get this to work.
What I have now is, in my "Taipei" mc, the following code:
But variable 'cn' still does not increment. I clicked on the "Taipei" window twice and my trace command traced 40 zeroes..Code:onClipEvent (load) { cardTouch = 0; } onClipEvent(mouseDown) { //for (var cn = 0; cn<31; cn++) { //if (cn<=10) { //if (this['Card0'+cn].hitTest(this._xmouse, this._ymouse)) { //this.cardTouch++; //} //} else { if (this['Card'+cn].hitTest(this._xmouse, this._ymouse)) { this.cardTouch++; }trace (cardTouch); //cardTouch = 0; //} //} }
Do you have any ideas what I'm doing wrong?
Thanks!




Reply With Quote