A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: draging stuff

  1. #1
    junior member
    Join Date
    Dec 2003
    Location
    the shire
    Posts
    89

    draging stuff

    Hi,
    What I want to do is have a key which drags when you click it, and you need to drag to the lock which will open when the key is in that area.

    I know the drag actions but I don't really know how to do the other part. Something with hitTest I guess but I can't figure it out.

    Thanks


    "Let us be rid of it-- once and for all! Come on, Mr. Frodo. I can't carry it for you...but I can carry you."

  2. #2
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    code:

    this.onEnterFrame = function() {
    if(_root.key.hitTest(_root.doorarea)) {// both of these are mc's
    _root.doorarea.play();
    }
    };

    So tired of all the fighting....

    http://joejoe2288.kawanda.net

  3. #3
    junior member
    Join Date
    Dec 2003
    Location
    the shire
    Posts
    89
    Thanks!

    "Let us be rid of it-- once and for all! Come on, Mr. Frodo. I can't carry it for you...but I can carry you."

  4. #4
    Flashkit Veteran joejoe2288's Avatar
    Join Date
    Apr 2004
    Location
    Hickville, Oregon
    Posts
    2,554
    Not a problem if you need anymore help just shout
    So tired of all the fighting....

    http://joejoe2288.kawanda.net

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