posted
k, I have a shopping cart, and I have 6 items, and a hittest, when i drop the item into the shopping cart it is supposed to disappear and give me a total.
So far, when i try to test it, like I move the item, and drop it, and I have a trace to test if it hits, so far it seems that the hittest tests as true NO MATTER WHERE I choose to drop the item.
function Rel() { this.stopDrag(); //onClipEvent(enterFrame) //{ if (this, hitTest(Cart_mc)) { trace("Hit!"+this); } else { trace("Missed :("+this); } //} }
It seems that this (being what I am dragging) and the Cart will always test as hitting no matter where I drop the item. Is there something I am missing here.
IP: Logged |
Blayne Bradley
unregistered
posted
Ok after some more googling ive found someone who did it as if ( this.hittest(movieclup)){ actions }
which makes alot more sense and seems to work.
IP: Logged |