A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: hitTest help - How do i string the names?

  1. #1

    hitTest help - How do i string the names?

    How can i string the names that appear in the hitTest? For example if you had 3 MCs and they were named Object1, Object2, and Object3. how can i string them togethter so this hitTest script would work:

    onCLipEvent (enterFrame) {
    if (this.hitTest(objectstring) == true )

  2. #2
    M.D. mr_malee's Avatar
    Join Date
    Dec 2002
    Chuck it in a for loop

    onClipEvent (load){
    maxobjects = 3

    onClipEvent (enterFrame){
    for (i=0,i<maxobjects,i++)
    if (hitTest(object[i])

    should work
    lather yourself up with soap - soap arcade

  3. #3
    thanks! it works!

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