all groups > flash actionscript > february 2006 >
You're in the

flash actionscript

group:

drag and drop


Re: drag and drop mostlyliquid
2/16/2006 4:58:17 PM
flash actionscript: Take a look at hitTest - thats probably what u want to use in that
case...

on(release) {
if (this.hitTest(that)) {
//if this movieclip is touching that movie clip
trace("hit");
}
}
Something like that?
HTH
-J
drag and drop ggogis
2/16/2006 9:18:06 PM
i have done a lot of drag and drop games in the past using code like this:

if (eval(this._droptarget) == _root.movieClipTarget) {

and it has worked for what i needed. however, here is my question/dilema:
in this code, it seems that the mouse hand must be over "movieClipTarget". how
can i have it so that if the movie clip i am dragging is over any part of the
movieClipTarget it will work regardless of where my mouse pointer is?

make sense?

thanks!
Re: drag and drop mark (sixstringtheoryDOTcom)
2/18/2006 12:00:00 AM
[quoted text, click to view]

Ditch the droptarget property. It's been deprecated and if you ever need
to use these drag n drops in Breeze they won't work.

AddThis Social Bookmark Button