A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Draggable Movie Clip - Help

  1. #1
    Junior Member
    Join Date
    Jan 2009
    Posts
    2

    Unhappy Draggable Movie Clip - Help

    Hi Guys

    I wonder if you can help

    I have created a draggable movie clip and what i want to do is....
    when the movie clip is dragged to a certain area of the stage i want some text to appear? When the movie clip is then moved away again from this area the text to disappear.

    What is the best way to do this, or any tuts you know of that could help?

    Cheers

  2. #2
    Space Midget Wrangler
    Join Date
    Sep 2002
    Posts
    129
    You could do a hittest on an invisible shape in the target area. That would do the trick.
    A little pain never hurt anyone

  3. #3
    Junior Member
    Join Date
    Jan 2009
    Posts
    2
    Cheers plasnid....

    the use of a hittest on an invisible shape worked great!!!

    Thanks for your fast response!


    onClipEvent (enterFrame) {
    if (_root.circle, hitTest(_root.block)) {
    _root.text = "Hit";
    } else {
    _root.text = "Miss";
    }
    }

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