A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Help please w/Taipei-type game

Hybrid View

  1. #1
    Senior Kid
    Join Date
    Jan 2002
    Location
    I am right behind ya
    Posts
    274
    or you can use onClipevent on the mc

    onClipEvent(mouseDown)

    {

    for (var cn = 0; cn<31; cn++)
    {
    if(this['Tile'+cn].hitTest(this._xmouse, this._ymouse))
    {
    this.tileTouch ++;
    }
    }

    same difference
    -The Dancin kidd

  2. #2
    Flash Explorer
    Join Date
    Sep 2005
    Posts
    52
    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:
    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;
    	//}
    //}
    }
    But variable 'cn' still does not increment. I clicked on the "Taipei" window twice and my trace command traced 40 zeroes..
    Do you have any ideas what I'm doing wrong?

    Thanks!
    Pacem!
    --T
    "Clearly I cannot choose the cup in front of you!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center