Welcome, Guest
  • Author Topic: Need help on a particular code.  (Read 1912 times)

    Chris Maggs

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Need help on a particular code.
    « on: 04/13/04, 20:46 »
    We'll I read about performing collision detecting on two movie clips and did the code over and over and my dynamic text box won't show the value of true or false when my two clips collide. Heres what my script looks like for the two clips

    onClipEvent (mouseDown) {
    startDrag("", true, 4, 70, 396, 273);
    }
    onClipEvent (mouseUp) {
    stopDrag();
    }

    and

    onClipEvent (enterFrame) {
    _root.status=this.hitTest(_root.car);
    ;
    }


    I posted this same topic on another forum but no helped, can some try to tell me the problem

    Mattias Robo

    • Mods
    • Systems Administrator
    • *****
    • Posts: 555
      • View Profile
      • nook
    Re:Need help on a particular code.
    « Reply #1 on: 04/15/04, 03:26 »

    Hi.

    Write it like this and it should work fine.

    [script]
    onClipEvent (mouseDown) {
       this.startDrag(true, 4, 70, 396, 273);
    }
    onClipEvent (mouseUp) {
       stopDrag();
    }
    onClipEvent (enterFrame) {
       _root.status = this.hitTest(_root.mc1);
    }
    [/script]

    I can send you a .fla if you need.

    ::: mattias
    « Last Edit: 04/15/04, 03:52 by Mattias Robo »
         "I've figured it out. It's not the fords... it's what's IN them!.."

    Chris Maggs

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Re:Need help on a particular code.
    « Reply #2 on: 04/15/04, 11:03 »
    Yup it worked!  Thanks alot!