A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: this.hitTest(anyinstanceofamc)???

  1. #1
    Senior Member flashfriend8's Avatar
    Join Date
    Oct 2004
    Posts
    146

    this.hitTest(anyinstanceofamc)???

    I need to be able to tell if a certain movieclip named sqr0, instance of mc square, is touching any other instance of square on the stage, preferably with hitTest.
    Thanks,
    ap
    I have no idea where this is going.

  2. #2
    Member
    Join Date
    Jan 2006
    Posts
    62
    look like this

    for(n in _root){
    if(_root[n]._name != "sqr0" and _root[n]._name !="" ){
    if(sqr0.hitTest(_root[n])){
    trace("touch "+_root[n]._name);
    }
    }
    }
    Come from PeKing of China

  3. #3
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    dude you posted this before, an i answered http://www.flashkit.com/board/showth...73#post3500473
    New sig soon

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